CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Types | Private Attributes
TauGenJetDecayModeSelectorImp Class Reference

#include <TauGenJetDecayModeSelector.h>

Public Member Functions

bool operator() (const reco::GenJet &) const
 
 TauGenJetDecayModeSelectorImp (const edm::ParameterSet &, edm::ConsumesCollector &iC)
 

Private Types

typedef std::vector< std::string > vstring
 

Private Attributes

vstring selectedTauDecayModes_
 

Detailed Description

Definition at line 23 of file TauGenJetDecayModeSelector.h.

Member Typedef Documentation

typedef std::vector<std::string> TauGenJetDecayModeSelectorImp::vstring
private

Definition at line 31 of file TauGenJetDecayModeSelector.h.

Constructor & Destructor Documentation

TauGenJetDecayModeSelectorImp::TauGenJetDecayModeSelectorImp ( const edm::ParameterSet cfg,
edm::ConsumesCollector iC 
)
explicit

Definition at line 5 of file TauGenJetDecayModeSelector.cc.

References edm::ParameterSet::getParameter(), and selectedTauDecayModes_.

5  {
7 }
vector< string > vstring
Definition: ExoticaDQM.cc:8
T getParameter(std::string const &) const
Definition: ParameterSet.h:303

Member Function Documentation

bool TauGenJetDecayModeSelectorImp::operator() ( const reco::GenJet tauGenJet) const

Definition at line 9 of file TauGenJetDecayModeSelector.cc.

References JetMCTagUtils::genTauDecayMode(), selectedTauDecayModes_, and AlCaHLTBitMon_QueryRunRegistry::string.

9  {
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 }
std::string genTauDecayMode(const reco::CompositePtrCandidate &c)
Definition: JetMCTag.cc:70

Member Data Documentation

vstring TauGenJetDecayModeSelectorImp::selectedTauDecayModes_
private

Definition at line 32 of file TauGenJetDecayModeSelector.h.

Referenced by operator()(), and TauGenJetDecayModeSelectorImp().