CMS 3D CMS Logo

TauGenJetDecayModeSelector.cc
Go to the documentation of this file.
2 
4 
6  selectedTauDecayModes_ = cfg.getParameter<vstring>("select");
7 }
8 
10  std::string tauGenJetDecayMode = JetMCTagUtils::genTauDecayMode(tauGenJet);
11  for (vstring::const_iterator selectedTauDecayMode = selectedTauDecayModes_.begin();
12  selectedTauDecayMode != selectedTauDecayModes_.end();
13  ++selectedTauDecayMode) {
14  if (tauGenJetDecayMode == (*selectedTauDecayMode))
15  return true;
16  }
17  return false;
18 }
19 
21 
std::string genTauDecayMode(const reco::CompositePtrCandidate &c)
Definition: JetMCTag.cc:70
#define DEFINE_FWK_MODULE(type)
Definition: MakerMacros.h:16
bool operator()(const reco::GenJet &) const
Jets made from MC generator particles.
Definition: GenJet.h:23
TauGenJetDecayModeSelectorImp(const edm::ParameterSet &, edm::ConsumesCollector &iC)
std::vector< std::string > vstring