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 58 of file TriggerNames.h.

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

Definition at line 57 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(), indexMap_, psetID_, and triggerNames_.

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

Member Function Documentation

ParameterSetID const & edm::TriggerNames::parameterSetID ( ) const
TriggerNames::Strings::size_type edm::TriggerNames::size ( void  ) const

Definition at line 31 of file TriggerNames.cc.

References triggerNames_.

Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), EventShapeDQM::analyze(), HLTTauDQMTagAndProbePlotter::analyze(), HeavyIonUCCDQM::analyze(), SUSY_HLT_InclusiveHT::analyze(), SUSY_HLT_DoubleMuon_Hadronic::analyze(), SUSY_HLT_PhotonHT::analyze(), SUSY_HLT_PhotonMET::analyze(), SUSY_HLT_DoubleEle_Hadronic::analyze(), QcdPhotonsDQM::analyze(), SUSY_HLT_Muon_Hadronic::analyze(), SUSY_HLT_VBF_Mu::analyze(), SUSY_HLT_DiJet_MET::analyze(), SUSY_HLT_MuEle_Hadronic::analyze(), SUSY_HLT_alphaT::analyze(), HotlineDQM::analyze(), SUSY_HLT_Razor::analyze(), DQMExample_Step1::analyze(), MuonRecoOneHLT::analyze(), SUSY_HLT_SingleLepton::analyze(), HeavyFlavorValidation::analyze(), HLTMuonMatchAndPlot::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(), PdfSystematicsAnalyzer::filter(), SimpleSystematicsAnalyzer::filter(), FWFileEntry::filterEventsWithCustomParser(), edm::TriggerResultsByName::getAndCheckIndex(), triggerExpression::PathReader::init(), JetMETHLTOfflineSource::isHLTPathAccepted(), TrigObjTnPHistColl::PathSelector::operator()(), pat::TriggerObjectStandAlone::packPathNames(), pat::PATTriggerProducer::produce(), HLTEventSelector::select(), heppy::TriggerBitChecker::syncIndices(), GsfElectronDataAnalyzer::trigger(), DQMAnalyzer::trigger(), TriggerOutputBranches::triggerNames(), edm::EventBase::triggerNames_(), edm::TriggerResultsByName::TriggerResultsByName(), and pat::TriggerObjectStandAlone::unpackPathNames().

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

Definition at line 24 of file TriggerNames.cc.

References indexMap_.

Referenced by CaloTowerAnalyzer::analyze(), BeamMonitor::analyze(), HcalRaddamMuon::analyze(), HLTHiggsSubAnalysis::analyze(), HLTScalers::analyze(), HcalHBHEMuonAnalyzer::analyze(), HLTExoticaSubAnalysis::analyze(), L1Muon2RecoTreeProducer::analyze(), HLTEventAnalyzerRAW::analyzeTrigger(), HLTEventAnalyzerAOD::analyzeTrigger(), HLTBitComputer::compute(), L1MetFilterRecoTreeProducer::doMetFilters(), HLTBitVariable::eval(), HLTOfflineDQMTopSingleLepton::MonitorSingleLepton::fill(), HLTOfflineDQMTopDiLepton::MonitorDiLepton::fill(), EwkElecTauHistManager::fillHistograms(), EwkMuTauHistManager::fillHistograms(), JetMETHLTOfflineSource::fillMEforEffAllTrigger(), JetMETHLTOfflineSource::fillMEforTriggerNTfired(), CastorDigiMonitor::fillTrigRes(), 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(), ZCounting::initHLT(), JetMETHLTOfflineSource::isHLTPathAccepted(), TrigObjTnPHistColl::PathSelector::operator()(), pat::TriggerObjectStandAlone::packPathNames(), hltdqm::passTrig(), CandidateTriggerObjectProducer::produce(), HLTEventSelector::select(), egHLT::OffHelper::setTrigInfo(), GsfElectronDataAnalyzer::trigger(), DQMAnalyzer::trigger(), and edm::TriggerResultsByName::triggerIndex().

24  {
25  IndexMap::const_iterator const pos = indexMap_.find(name);
26  if (pos == indexMap_.end())
27  return indexMap_.size();
28  return pos->second;
29  }
IndexMap indexMap_
Definition: TriggerNames.h:86
std::string const & edm::TriggerNames::triggerName ( unsigned int  index) const

Definition at line 22 of file TriggerNames.cc.

References triggerNames_.

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

TriggerNames::Strings const & edm::TriggerNames::triggerNames ( ) const

Definition at line 20 of file TriggerNames.cc.

References triggerNames_.

Referenced by accept(), acceptHLT(), DQMHcalIsolatedBunchAlCaReco::analyze(), HLTInspect::analyze(), dimuonHLTFilterCheck::analyze(), B2GDoubleLeptonHLTValidation::analyze(), B2GHadronicHLTValidation::analyze(), B2GSingleLeptonHLTValidation::analyze(), TopSingleLeptonHLTValidation::analyze(), TopDiLeptonHLTValidation::analyze(), HLTScalers::analyze(), IsoTrackCalibration::analyze(), StudyHLT::analyze(), HcalIsoTrkAnalyzer::analyze(), IsoTrig::analyze(), CSCEfficiency::applyTrigger(), L1MetFilterRecoTreeProducer::doMetFilters(), MuScleFit::duringLoop(), HLTOfflineDQMTopSingleLepton::MonitorSingleLepton::fill(), HLTOfflineDQMTopDiLepton::MonitorDiLepton::fill(), FWHLTValidator::fillOptions(), FWHLTTriggerTableView::fillTable(), CastorDigiMonitor::fillTrigRes(), PhysDecl::filter(), AlCaIsolatedBunchSelector::filter(), AlCaIsolatedBunchFilter::filter(), AlCaIsoTracksProducerFilter::filter(), AlCaHEMuonFilter::filter(), AlCaHBHEMuonFilter::filter(), AlCaLowPUHBHEMuonFilter::filter(), AlCaIsoTracksFilter::filter(), CSCEfficiency::filter(), pat::PackedTriggerPrescales::getPrescaleForName(), triggerExpression::PathReader::init(), HLTHighLevel::init(), ZCounting::initHLT(), HltComparator::initialise(), hltdqm::passTrig(), FWPathsPopup::postEvent(), AlCaIsoTracksProducer::produce(), HLTEventSelector::select(), triggerExpression::Data::setEvent(), and edm::TriggerResultsByName::triggerNames().

20 { return triggerNames_; }
Strings triggerNames_
Definition: TriggerNames.h:85

Member Data Documentation

IndexMap edm::TriggerNames::indexMap_
private

Definition at line 86 of file TriggerNames.h.

Referenced by triggerIndex(), and TriggerNames().

ParameterSetID edm::TriggerNames::psetID_
private

Definition at line 83 of file TriggerNames.h.

Referenced by parameterSetID(), and TriggerNames().

Strings edm::TriggerNames::triggerNames_
private

Definition at line 85 of file TriggerNames.h.

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