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.

References looper::cfg, and selectedTauDecayModes_.

5  {
6  selectedTauDecayModes_ = cfg.getParameter<vstring>("select");
7 }
vector< string > vstring
Definition: ExoticaDQM.cc:7

Member Function Documentation

◆ operator()()

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

◆ selectedTauDecayModes_

vstring TauGenJetDecayModeSelectorImp::selectedTauDecayModes_
private

Definition at line 32 of file TauGenJetDecayModeSelector.h.

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