test
CMS 3D CMS Logo

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

#include <TriggerNames.h>

Public Types

typedef std::map< std::string,
unsigned int > 
IndexMap
 
typedef std::vector< std::string > Strings
 

Public Member Functions

ParameterSetID const & parameterSetID () const
 
Strings::size_type size () const
 
unsigned int triggerIndex (std::string const &name) const
 
std::string const & triggerName (unsigned int index) const
 
 TriggerNames ()
 
 TriggerNames (edm::ParameterSet const &pset)
 
Strings const & triggerNames () const
 

Private Attributes

IndexMap indexMap_
 
ParameterSetID psetID_
 
Strings triggerNames_
 

Detailed Description

Definition at line 55 of file TriggerNames.h.

Member Typedef Documentation

typedef std::map<std::string, unsigned int> edm::TriggerNames::IndexMap

Definition at line 60 of file TriggerNames.h.

typedef std::vector<std::string> edm::TriggerNames::Strings

Definition at line 59 of file TriggerNames.h.

Constructor & Destructor Documentation

edm::TriggerNames::TriggerNames ( )

Definition at line 7 of file TriggerNames.cc.

7 { }
edm::TriggerNames::TriggerNames ( edm::ParameterSet const &  pset)

Definition at line 9 of file TriggerNames.cc.

References edm::ParameterSet::getParameter(), edm::ParameterSet::id(), cmsHarvester::index, indexMap_, psetID_, and triggerNames_.

9  {
10 
11  triggerNames_ = pset.getParameter<Strings>("@trigger_paths");
12 
13  unsigned int index = 0;
14  for (Strings::const_iterator iName = triggerNames_.begin(),
15  iEnd = triggerNames_.end();
16  iName != iEnd;
17  ++iName, ++index) {
18  indexMap_[*iName] = index;
19  }
20  psetID_ = pset.id();
21  }
std::vector< std::string > Strings
Definition: MsgTools.h:18
IndexMap indexMap_
Definition: TriggerNames.h:89
Strings triggerNames_
Definition: TriggerNames.h:88
ParameterSetID psetID_
Definition: TriggerNames.h:86

Member Function Documentation

ParameterSetID const & edm::TriggerNames::parameterSetID ( ) const

Definition at line 42 of file TriggerNames.cc.

References psetID_.

Referenced by PrescalerFHN::filter(), triggerExpression::Data::setEvent(), and edm::TriggerResultsByName::TriggerResultsByName().

42 { return psetID_; }
ParameterSetID psetID_
Definition: TriggerNames.h:86
TriggerNames::Strings::size_type edm::TriggerNames::size ( void  ) const

Definition at line 39 of file TriggerNames.cc.

References triggerNames_.

Referenced by QcdPhotonsDQM::analyze(), MuonRecoOneHLT::analyze(), DQMExample_Step1::analyze(), HeavyFlavorValidation::analyze(), HLTHiggsSubAnalysis::analyze(), HcalDigiMonitor::analyze(), HLTExoticaSubAnalysis::analyze(), JetAnalyzer::analyze(), MuScleFit::duringLoop(), HLTBitVariable::eval(), FWHLTTriggerTableView::fillAverageAcceptFractions(), EwkElecTauHistManager::fillHistograms(), EwkMuTauHistManager::fillHistograms(), JetMETHLTOfflineSource::fillMEforEffAllTrigger(), BTagHLTOfflineSource::fillMEforEffAllTrigger(), JetMETHLTOfflineSource::fillMEforEffWrtMBTrigger(), BTagHLTOfflineSource::fillMEforEffWrtMBTrigger(), JetMETHLTOfflineSource::fillMEforEffWrtMuTrigger(), BTagHLTOfflineSource::fillMEforEffWrtMuTrigger(), JetMETHLTOfflineSource::fillMEforTriggerNTfired(), BTagHLTOfflineSource::fillMEforTriggerNTfired(), FWHLTValidator::fillOptions(), FWHLTTriggerTableView::fillTable(), SimpleSystematicsAnalyzer::filter(), PdfSystematicsAnalyzer::filter(), ZeeCandidateFilter::filter(), FWFileEntry::filterEventsWithCustomParser(), edm::TriggerResultsByName::getAndCheckIndex(), triggerExpression::HLTReader::init(), HLTInclusiveVBFSource::isHLTPathAccepted(), BTagHLTOfflineSource::isHLTPathAccepted(), JetMETHLTOfflineSource::isHLTPathAccepted(), pat::TriggerObjectStandAlone::packPathNames(), HcalNZSMonitor::processEvent(), HcalRecHitMonitor::processEvent(), pat::PATTriggerProducer::produce(), HLTEventSelector::select(), GsfElectronDataAnalyzer::trigger(), DQMAnalyzer::trigger(), edm::EventBase::triggerNames_(), edm::TriggerResultsByName::TriggerResultsByName(), and pat::TriggerObjectStandAlone::unpackPathNames().

39 { return triggerNames_.size(); }
Strings triggerNames_
Definition: TriggerNames.h:88
unsigned int edm::TriggerNames::triggerIndex ( std::string const &  name) const

Definition at line 32 of file TriggerNames.cc.

References indexMap_.

Referenced by CaloTowerAnalyzer::analyze(), HLTMonBitSummary::analyze(), HTMHTAnalyzer::analyze(), BeamMonitor::analyze(), HLTHiggsSubAnalysis::analyze(), HLTScalers::analyze(), HLTEventAnalyzerRAW::analyzeTrigger(), HLTEventAnalyzerAOD::analyzeTrigger(), CSCHaloAlgo::Calculate(), HLTBitComputer::compute(), HLTBitVariable::eval(), HLTOfflineDQMTopSingleLepton::MonitorSingleLepton::fill(), HLTOfflineDQMTopDiLepton::MonitorDiLepton::fill(), EwkElecTauHistManager::fillHistograms(), EwkMuTauHistManager::fillHistograms(), FourVectorHLTOnline::fillHltMatrix(), TrigResRateMon::fillHltMatrix(), FourVectorHLTOffline::fillHltMatrix(), JetMETHLTOfflineSource::fillMEforEffAllTrigger(), BTagHLTOfflineSource::fillMEforEffAllTrigger(), JetMETHLTOfflineSource::fillMEforEffWrtMBTrigger(), BTagHLTOfflineSource::fillMEforEffWrtMBTrigger(), JetMETHLTOfflineSource::fillMEforEffWrtMuTrigger(), BTagHLTOfflineSource::fillMEforEffWrtMuTrigger(), JetMETHLTOfflineSource::fillMEforTriggerNTfired(), BTagHLTOfflineSource::fillMEforTriggerNTfired(), PdfSystematicsAnalyzer::filter(), SimpleSystematicsAnalyzer::filter(), WMuNuValidator::filter(), WMuNuSelector::filter(), ZeeCandidateFilter::filter(), FWFileEntry::filterEventsWithCustomParser(), edm::TriggerResultsByName::getAndCheckIndex(), FourVectorHLTOnline::hasHLTPassed(), TrigResRateMon::hasHLTPassed(), FourVectorHLTOffline::hasHLTPassed(), FourVectorHLTOnline::hasL1Passed(), TrigResRateMon::hasL1Passed(), FourVectorHLTOffline::hasL1Passed(), triggerExpression::HLTReader::init(), HLTHighLevel::init(), PrescalerFHN::init(), HLTInclusiveVBFSource::isHLTPathAccepted(), BTagHLTOfflineSource::isHLTPathAccepted(), JetMETHLTOfflineSource::isHLTPathAccepted(), pat::TriggerObjectStandAlone::packPathNames(), CandidateTriggerObjectProducer::produce(), HLTEventSelector::select(), egHLT::OffHelper::setTrigInfo(), GsfElectronDataAnalyzer::trigger(), DQMAnalyzer::trigger(), and edm::TriggerResultsByName::triggerIndex().

32  {
33  IndexMap::const_iterator const pos = indexMap_.find(name);
34  if (pos == indexMap_.end()) return indexMap_.size();
35  return pos->second;
36  }
IndexMap indexMap_
Definition: TriggerNames.h:89
std::string const & edm::TriggerNames::triggerName ( unsigned int  index) const
TriggerNames::Strings const & edm::TriggerNames::triggerNames ( ) const

Member Data Documentation

IndexMap edm::TriggerNames::indexMap_
private

Definition at line 89 of file TriggerNames.h.

Referenced by triggerIndex(), and TriggerNames().

ParameterSetID edm::TriggerNames::psetID_
private

Definition at line 86 of file TriggerNames.h.

Referenced by parameterSetID(), and TriggerNames().

Strings edm::TriggerNames::triggerNames_
private

Definition at line 88 of file TriggerNames.h.

Referenced by size(), triggerName(), TriggerNames(), and triggerNames().