#include <TauGenJetDecayModeSelector.h>
Public Member Functions | |
bool | operator() (const reco::GenJet &) const |
TauGenJetDecayModeSelectorImp (const edm::ParameterSet &) | |
Private Types | |
typedef std::vector< std::string > | vstring |
Private Attributes | |
vstring | selectedTauDecayModes_ |
Definition at line 24 of file TauGenJetDecayModeSelector.h.
typedef std::vector<std::string> TauGenJetDecayModeSelectorImp::vstring [private] |
Definition at line 33 of file TauGenJetDecayModeSelector.h.
TauGenJetDecayModeSelectorImp::TauGenJetDecayModeSelectorImp | ( | const edm::ParameterSet & | cfg | ) | [explicit] |
Definition at line 5 of file TauGenJetDecayModeSelector.cc.
References edm::ParameterSet::getParameter(), and selectedTauDecayModes_.
{ selectedTauDecayModes_ = cfg.getParameter<vstring>("select"); }
bool TauGenJetDecayModeSelectorImp::operator() | ( | const reco::GenJet & | tauGenJet | ) | const |
Definition at line 10 of file TauGenJetDecayModeSelector.cc.
References JetMCTagUtils::genTauDecayMode(), and selectedTauDecayModes_.
{ std::string tauGenJetDecayMode = JetMCTagUtils::genTauDecayMode(tauGenJet); for ( vstring::const_iterator selectedTauDecayMode = selectedTauDecayModes_.begin(); selectedTauDecayMode != selectedTauDecayModes_.end(); ++selectedTauDecayMode ) { if ( tauGenJetDecayMode == (*selectedTauDecayMode) ) return true; } return false; }
Definition at line 34 of file TauGenJetDecayModeSelector.h.
Referenced by operator()(), and TauGenJetDecayModeSelectorImp().