CMS 3D CMS Logo

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(), diffTreeTool::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
TriggerNames::Strings::size_type edm::TriggerNames::size ( void  ) const

Definition at line 39 of file TriggerNames.cc.

References triggerNames_.

Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), EventShapeDQM::analyze(), HeavyIonUCCDQM::analyze(), SUSY_HLT_InclusiveHT::analyze(), SUSY_HLT_PhotonHT::analyze(), SUSY_HLT_PhotonMET::analyze(), QcdPhotonsDQM::analyze(), SUSY_HLT_DoubleMuon_Hadronic::analyze(), SUSY_HLT_DoubleEle_Hadronic::analyze(), SUSY_HLT_alphaT::analyze(), SUSY_HLT_MuEle_Hadronic::analyze(), SUSY_HLT_Muon_Hadronic::analyze(), SUSY_HLT_VBF_Mu::analyze(), SUSY_HLT_DiJet_MET::analyze(), SUSY_HLT_Razor::analyze(), HotlineDQM::analyze(), MuonRecoOneHLT::analyze(), DQMExample_Step1::analyze(), SUSY_HLT_SingleLepton::analyze(), HeavyFlavorValidation::analyze(), L1Muon2RecoTreeProducer::analyze(), JetAnalyzer::analyze(), FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::analyze(), MuScleFit::duringLoop(), HLTBitVariable::eval(), FWHLTTriggerTableView::fillAverageAcceptFractions(), EwkElecTauHistManager::fillHistograms(), EwkMuTauHistManager::fillHistograms(), JetMETHLTOfflineSource::fillMEforEffAllTrigger(), JetMETHLTOfflineSource::fillMEforTriggerNTfired(), FWHLTValidator::fillOptions(), FWHLTTriggerTableView::fillTable(), SimpleSystematicsAnalyzer::filter(), PdfSystematicsAnalyzer::filter(), FWFileEntry::filterEventsWithCustomParser(), edm::TriggerResultsByName::getAndCheckIndex(), triggerExpression::PathReader::init(), JetMETHLTOfflineSource::isHLTPathAccepted(), pat::TriggerObjectStandAlone::packPathNames(), pat::PATTriggerProducer::produce(), HLTEventSelector::select(), heppy::TriggerBitChecker::syncIndices(), 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(), HTMHTAnalyzer::analyze(), BeamMonitor::analyze(), HcalRaddamMuon::analyze(), HcalHBHEMuonAnalyzer::analyze(), HLTScalers::analyze(), HLTHiggsSubAnalysis::analyze(), HLTExoticaSubAnalysis::analyze(), L1Muon2RecoTreeProducer::analyze(), HLTEventAnalyzerAOD::analyzeTrigger(), HLTEventAnalyzerRAW::analyzeTrigger(), HLTBitComputer::compute(), L1MetFilterRecoTreeProducer::doMetFilters(), HLTBitVariable::eval(), HLTOfflineDQMTopSingleLepton::MonitorSingleLepton::fill(), HLTOfflineDQMTopDiLepton::MonitorDiLepton::fill(), EwkElecTauHistManager::fillHistograms(), EwkMuTauHistManager::fillHistograms(), JetMETHLTOfflineSource::fillMEforEffAllTrigger(), JetMETHLTOfflineSource::fillMEforTriggerNTfired(), PdfSystematicsAnalyzer::filter(), SimpleSystematicsAnalyzer::filter(), HLTPathSelector::filter(), WMuNuValidator::filter(), WMuNuSelector::filter(), ZeeCandidateFilter::filter(), FWFileEntry::filterEventsWithCustomParser(), edm::TriggerResultsByName::getAndCheckIndex(), pat::PackedTriggerPrescales::getPrescaleForName(), triggerExpression::PathReader::init(), HLTHighLevel::init(), PrescalerFHN::init(), 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

Definition at line 27 of file TriggerNames.cc.

References triggerNames_.

Referenced by EventShapeDQM::analyze(), EwkMuDQM::analyze(), HeavyIonUCCDQM::analyze(), EwkElecDQM::analyze(), SUSY_HLT_InclusiveHT::analyze(), SUSY_HLT_PhotonHT::analyze(), SUSY_HLT_PhotonMET::analyze(), SUSY_HLT_DoubleMuon_Hadronic::analyze(), QcdPhotonsDQM::analyze(), SUSY_HLT_DoubleEle_Hadronic::analyze(), EwkDQM::analyze(), dimuonHLTFilterCheck::analyze(), BeamMonitor::analyze(), SUSY_HLT_alphaT::analyze(), SUSY_HLT_DiJet_MET::analyze(), SUSY_HLT_MuEle_Hadronic::analyze(), SUSY_HLT_Muon_Hadronic::analyze(), TopDiLeptonDQM::analyze(), SUSY_HLT_VBF_Mu::analyze(), HotlineDQM::analyze(), SUSY_HLT_Razor::analyze(), AnalysisRootpleProducer::analyze(), MuTriggerAnalyzer::analyze(), MuonRecoOneHLT::analyze(), DQMExample_Step1::analyze(), SUSY_HLT_SingleLepton::analyze(), HeavyFlavorValidation::analyze(), HigPhotonJetHLTOfflineSource::analyze(), HLTInfo::analyze(), JetAnalyzer::analyze(), ErsatzMEt::analyze(), IsolatedTracksCone::analyze(), ExoticaDQM::analyze(), FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::analyze(), MuScleFit::duringLoop(), AdHocNTupler::fill(), FWHLTTriggerTableView::fillAverageAcceptFractions(), FWHLTValidator::fillOptions(), FWHLTTriggerTableView::fillTable(), HLTJetMETValidation::getHLTResults(), HLTHighLevel::init(), HigPhotonJetHLTOfflineSource::isMonitoredTriggerAccepted(), FWPathsPopup::postEvent(), pat::PATTriggerProducer::produce(), L1Analysis::L1AnalysisEvent::Set(), heppy::TriggerBitChecker::syncIndices(), GsfElectronDataAnalyzer::trigger(), DQMAnalyzer::trigger(), edm::TriggerResultsByName::triggerName(), and pat::TriggerObjectStandAlone::unpackPathNames().

27  {
28  return triggerNames_.at(index);
29  }
Strings triggerNames_
Definition: TriggerNames.h:88
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().