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(), getHLTprescales::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
tuple pset
Definition: CrabTask.py:85
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 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 HLTJetMETDQMSource::analyze(), HeavyFlavorValidation::analyze(), MuCorrMETAnalyzer::analyze(), TcMETAnalyzer::analyze(), JetMETAnalyzer::analyze(), CaloMETAnalyzer::analyze(), HcalDigiMonitor::analyze(), PFMETAnalyzer::analyze(), METAnalyzer::analyze(), FourVectorHLTOnline::analyze(), FourVectorHLTriggerOffline::analyze(), FourVectorHLTOffline::analyze(), HLTBitVariable::eval(), FWHLTTriggerTableView::fillAverageAcceptFractions(), EwkElecTauHistManager::fillHistograms(), EwkMuTauHistManager::fillHistograms(), JetMETHLTOfflineSource::fillMEforEffAllTrigger(), JetMETHLTOfflineSource::fillMEforEffWrtMBTrigger(), JetMETHLTOfflineSource::fillMEforEffWrtMuTrigger(), JetMETHLTOfflineSource::fillMEforTriggerNTfired(), FWHLTValidator::fillOptions(), FWHLTTriggerTableView::fillTable(), PdfSystematicsAnalyzer::filter(), SimpleSystematicsAnalyzer::filter(), WenuCandidateFilter::filter(), ZeeCandidateFilter::filter(), FWFileEntry::filterEventsWithCustomParser(), edm::TriggerResultsByName::getAndCheckIndex(), triggerExpression::HLTReader::init(), JetMETHLTOfflineSource::isHLTPathAccepted(), HcalNZSMonitor::processEvent(), HcalRecHitMonitor::processEvent(), HLTEventSelector::select(), GsfElectronDataAnalyzer::trigger(), DQMAnalyzer::trigger(), edm::EventBase::triggerNames_(), and edm::TriggerResultsByName::TriggerResultsByName().

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_, and pos.

Referenced by CaloTowerAnalyzer::analyze(), HLTMonBitSummary::analyze(), HLTMuonDQMSource::analyze(), HTMHTAnalyzer::analyze(), HeavyFlavorValidation::analyze(), MuCorrMETAnalyzer::analyze(), TcMETAnalyzer::analyze(), JetMETAnalyzer::analyze(), CaloMETAnalyzer::analyze(), PFMETAnalyzer::analyze(), METAnalyzer::analyze(), HLTScalers::analyze(), HLTEventAnalyzerAOD::analyzeTrigger(), HLTEventAnalyzerRAW::analyzeTrigger(), CSCHaloAlgo::Calculate(), HLTBitComputer::compute(), HLTBitVariable::eval(), EwkElecTauHistManager::fillHistograms(), EwkMuTauHistManager::fillHistograms(), FourVectorHLTOnline::fillHltMatrix(), TrigResRateMon::fillHltMatrix(), FourVectorHLTOffline::fillHltMatrix(), JetMETHLTOfflineSource::fillMEforEffAllTrigger(), JetMETHLTOfflineSource::fillMEforEffWrtMBTrigger(), JetMETHLTOfflineSource::fillMEforEffWrtMuTrigger(), JetMETHLTOfflineSource::fillMEforTriggerNTfired(), SimpleSystematicsAnalyzer::filter(), PdfSystematicsAnalyzer::filter(), WMuNuValidator::filter(), WMuNuSelector::filter(), WenuCandidateFilter::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(), JetMETHLTOfflineSource::isHLTPathAccepted(), 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().