CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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 32 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_.

6 {
8 }
T getParameter(std::string const &) const
vector< string > vstring
Definition: ExoticaDQM.cc:75

Member Function Documentation

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

Definition at line 10 of file TauGenJetDecayModeSelector.cc.

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

11 {
12  std::string tauGenJetDecayMode = JetMCTagUtils::genTauDecayMode(tauGenJet);
13  for ( vstring::const_iterator selectedTauDecayMode = selectedTauDecayModes_.begin();
14  selectedTauDecayMode != selectedTauDecayModes_.end(); ++selectedTauDecayMode ) {
15  if ( tauGenJetDecayMode == (*selectedTauDecayMode) ) return true;
16  }
17  return false;
18 }
std::string genTauDecayMode(const reco::CompositePtrCandidate &c)
Definition: JetMCTag.cc:81

Member Data Documentation

vstring TauGenJetDecayModeSelectorImp::selectedTauDecayModes_
private

Definition at line 33 of file TauGenJetDecayModeSelector.h.

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