ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
top::FakesMMConfigs Class Reference

An example of how to quickly make some plots at a certain point in the cutflow. More...

#include <FakesMMConfigs.h>

Inheritance diagram for top::FakesMMConfigs:
Collaboration diagram for top::FakesMMConfigs:

Public Member Functions

 FakesMMConfigs (const std::string &configs)
 Setup the matrix-method configurations. More...
 
virtual bool apply (const top::Event &event) const override
 
std::string name () const override
 Return the name for the cutflow table. More...
 
std::vector< std::string > configurations () const
 
virtual bool applyParticleLevel (const top::ParticleLevelEvent &) const
 This does stuff based on the information in a particle level event. More...
 

Private Attributes

std::vector< std::string > m_configurations
 

Detailed Description

An example of how to quickly make some plots at a certain point in the cutflow.

Definition at line 17 of file FakesMMConfigs.h.

Constructor & Destructor Documentation

◆ FakesMMConfigs()

top::FakesMMConfigs::FakesMMConfigs ( const std::string &  configs)

Setup the matrix-method configurations.

Parameters
configsThe MM weights configurations separated by spaces.

Definition at line 8 of file FakesMMConfigs.cxx.

8  {
9  std::istringstream iss(configs);
10  std::string config;
11  while (iss >> config) {
12  m_configurations.push_back(config);
13  }
14  }

Member Function Documentation

◆ apply()

bool top::FakesMMConfigs::apply ( const top::Event event) const
overridevirtual
Returns
True because it doesn't select any events.

Implements top::EventSelectorBase.

Definition at line 16 of file FakesMMConfigs.cxx.

16  {
17  return true;
18  }

◆ applyParticleLevel()

virtual bool top::EventSelectorBase::applyParticleLevel ( const top::ParticleLevelEvent ) const
inlinevirtualinherited

This does stuff based on the information in a particle level event.

The idea is that you implement this to return either true or false, based on the information held within the top::ParticleLevelEvent. If this function returns true, then the event is kept, otherwise it is removed. The function has a default implementation (which returns true) because it is expected that many EventSelector objects do not operate on ParticleLevelEvent objects.

Parameters
top::ParticleLevelEventthe current particle level event.
trueif the event should be kept (i.e. it passed the selector criteria), false otherwise.

Reimplemented in top::JetNGhostSelector, top::PrintEventSelector, top::PseudoTopRecoRun, top::NElectronNMuonTightSelector, top::NElectronNMuonSelector, top::NFwdElectronSelector, top::HTSelector, top::OSLeptonTightSelector, top::MLLSelector, top::MWTSelector, top::NElectronTightSelector, top::NFwdElectronTightSelector, top::NMuonTightSelector, top::OSLeptonSelector, top::METMWTSelector, top::METSelector, top::MLLWindow, top::NElectronSelector, top::NJetSelector, top::NMuonSelector, top::NPhotonSelector, top::NSoftMuonSelector, top::NTauSelector, top::SSLeptonTightSelector, top::SSLeptonSelector, top::ParticleLevelSelector, top::RecoLevelSelector, top::NVarRCJetSelector, top::NLargeJetSelector, and top::NRCJetSelector.

Definition at line 73 of file EventSelectorBase.h.

73 {return true;}

◆ configurations()

std::vector<std::string> top::FakesMMConfigs::configurations ( ) const
inline
Returns
The MM weight configurations.

Definition at line 41 of file FakesMMConfigs.h.

41 {return m_configurations;};

◆ name()

std::string top::FakesMMConfigs::name ( ) const
overridevirtual

Return the name for the cutflow table.

Returns
The word FAKESMMCONFIGS.

Implements top::EventSelectorBase.

Definition at line 20 of file FakesMMConfigs.cxx.

20  {
21  return "FAKESMMCONFIGS";
22  }

Member Data Documentation

◆ m_configurations

std::vector<std::string> top::FakesMMConfigs::m_configurations
private

Definition at line 44 of file FakesMMConfigs.h.


The documentation for this class was generated from the following files:
config
Definition: PhysicsAnalysis/AnalysisCommon/AssociationUtils/python/config.py:1
top::FakesMMConfigs::m_configurations
std::vector< std::string > m_configurations
Definition: FakesMMConfigs.h:41
config
std::vector< std::string > config
Definition: fbtTestBasics.cxx:72