CMS 3D CMS Logo

Public Member Functions | Private Types | Private Attributes

TauGenJetDecayModeSelectorImp Class Reference

#include <TauGenJetDecayModeSelector.h>

List of all members.

Public Member Functions

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

Private Types

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

Private Attributes

vstring selectedTauDecayModes_

Detailed Description

Definition at line 24 of file TauGenJetDecayModeSelector.h.


Member Typedef Documentation

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

Definition at line 33 of file TauGenJetDecayModeSelector.h.


Constructor & Destructor Documentation

TauGenJetDecayModeSelectorImp::TauGenJetDecayModeSelectorImp ( const edm::ParameterSet cfg) [explicit]

Member Function Documentation

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

Definition at line 10 of file TauGenJetDecayModeSelector.cc.

References JetMCTagUtils::genTauDecayMode(), and selectedTauDecayModes_.

{
  std::string tauGenJetDecayMode = JetMCTagUtils::genTauDecayMode(tauGenJet);
  for ( vstring::const_iterator selectedTauDecayMode = selectedTauDecayModes_.begin();
        selectedTauDecayMode != selectedTauDecayModes_.end(); ++selectedTauDecayMode ) {
    if ( tauGenJetDecayMode == (*selectedTauDecayMode) ) return true;
  }
  return false;
}

Member Data Documentation

Definition at line 34 of file TauGenJetDecayModeSelector.h.

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