CMS 3D CMS Logo

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

◆ vstring

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

Definition at line 31 of file TauGenJetDecayModeSelector.h.

Constructor & Destructor Documentation

◆ TauGenJetDecayModeSelectorImp()

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

Definition at line 5 of file TauGenJetDecayModeSelector.cc.

5  {
6  selectedTauDecayModes_ = cfg.getParameter<vstring>("select");
7 }

References looper::cfg, and selectedTauDecayModes_.

Member Function Documentation

◆ operator()()

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

Definition at line 9 of file TauGenJetDecayModeSelector.cc.

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 }

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

Member Data Documentation

◆ selectedTauDecayModes_

vstring TauGenJetDecayModeSelectorImp::selectedTauDecayModes_
private

Definition at line 32 of file TauGenJetDecayModeSelector.h.

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

TauGenJetDecayModeSelectorImp::selectedTauDecayModes_
vstring selectedTauDecayModes_
Definition: TauGenJetDecayModeSelector.h:32
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
looper.cfg
cfg
Definition: looper.py:296
vstring
vector< string > vstring
Definition: ExoticaDQM.cc:8
JetMCTagUtils::genTauDecayMode
std::string genTauDecayMode(const reco::CompositePtrCandidate &c)
Definition: JetMCTag.cc:70