CMS 3D CMS Logo

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

#include <TriggerNames.h>

Public Types

using IndexMap = std::vector< std::pair< std::string_view, unsigned int >>
 
using Strings = std::vector< std::string >
 

Public Member Functions

void initializeTriggerIndex ()
 
TriggerNamesoperator= (TriggerNames const &)
 
TriggerNamesoperator= (TriggerNames &&)=default
 
ParameterSetID const & parameterSetID () const
 
std::size_t size () const
 
unsigned int triggerIndex (std::string_view name) const
 
std::string const & triggerName (unsigned int index) const
 
 TriggerNames ()=default
 
 TriggerNames (edm::ParameterSet const &pset)
 
 TriggerNames (TriggerNames const &)
 
 TriggerNames (TriggerNames &&)=default
 
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

using edm::TriggerNames::IndexMap = std::vector<std::pair<std::string_view, unsigned int>>

Definition at line 57 of file TriggerNames.h.

using edm::TriggerNames::Strings = std::vector<std::string>

Definition at line 58 of file TriggerNames.h.

Constructor & Destructor Documentation

edm::TriggerNames::TriggerNames ( )
default
edm::TriggerNames::TriggerNames ( edm::ParameterSet const &  pset)
explicit

Definition at line 22 of file TriggerNames.cc.

References edm::ParameterSet::id().

23  : psetID_{pset.id()}, triggerNames_{pset.getParameter<Strings>("@trigger_paths")} {
25  }
std::vector< std::string > Strings
Definition: MsgTools.h:18
void initializeTriggerIndex()
Definition: TriggerNames.cc:38
Strings triggerNames_
Definition: TriggerNames.h:93
ParameterSetID psetID_
Definition: TriggerNames.h:91
edm::TriggerNames::TriggerNames ( TriggerNames const &  iOther)

Definition at line 27 of file TriggerNames.cc.

References psetID_.

28  : psetID_{iOther.psetID_}, triggerNames_{iOther.triggerNames_} {
30  }
void initializeTriggerIndex()
Definition: TriggerNames.cc:38
Strings triggerNames_
Definition: TriggerNames.h:93
ParameterSetID psetID_
Definition: TriggerNames.h:91
edm::TriggerNames::TriggerNames ( TriggerNames &&  )
default

Member Function Documentation

void edm::TriggerNames::initializeTriggerIndex ( )

Definition at line 38 of file TriggerNames.cc.

References indexMap_, mergeVDriftHistosByStation::name, and triggerNames_.

38  {
39  unsigned int index = 0;
40  indexMap_.reserve(triggerNames_.size());
41  for (auto const& name : triggerNames_) {
42  indexMap_.emplace_back(name, index);
43  ++index;
44  }
45  std::sort(indexMap_.begin(), indexMap_.end(), PairSort());
46  }
IndexMap indexMap_
Definition: TriggerNames.h:94
Strings triggerNames_
Definition: TriggerNames.h:93
TriggerNames & edm::TriggerNames::operator= ( TriggerNames const &  iOther)

Definition at line 32 of file TriggerNames.cc.

References eostools::move(), and groupFilesInBlocks::temp.

32  {
33  TriggerNames temp(iOther);
34  *this = std::move(temp);
35  return *this;
36  }
def move
Definition: eostools.py:511
TriggerNames()=default
TriggerNames& edm::TriggerNames::operator= ( TriggerNames &&  )
default
ParameterSetID const & edm::TriggerNames::parameterSetID ( ) const
std::size_t edm::TriggerNames::size ( void  ) const

Definition at line 59 of file TriggerNames.cc.

References triggerNames_.

Referenced by ntupleDataFormat._Collection::__iter__(), ntupleDataFormat._Collection::__len__(), EventShapeDQM::analyze(), HeavyIonUCCDQM::analyze(), SUSY_HLT_InclusiveHT::analyze(), SUSY_HLT_DoubleMuon_Hadronic::analyze(), SUSY_HLT_PhotonHT::analyze(), SUSY_HLT_PhotonMET::analyze(), HLTTauDQMTagAndProbePlotter::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(), MuonRecoOneHLT::analyze(), BTVHLTOfflineSource::analyze(), DQMExample_Step1::analyze(), SUSY_HLT_SingleLepton::analyze(), HeavyFlavorValidation::analyze(), HLTMuonMatchAndPlot::analyze(), SplitVertexResolution::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(), FWFileEntry::filterEventsWithCustomParser(), edm::TriggerResultsByName::getAndCheckIndex(), JetMETHLTOfflineSource::isHLTPathAccepted(), TrigObjTnPHistColl::PathSelector::operator()(), pat::TriggerObjectStandAlone::packPathNames(), HLTEventSelector::select(), heppy::TriggerBitChecker::syncIndices(), GsfElectronDataAnalyzer::trigger(), DQMAnalyzer::trigger(), TriggerOutputBranches::triggerNames(), edm::EventBase::triggerNames_(), edm::TriggerResultsByName::TriggerResultsByName(), and pat::TriggerObjectStandAlone::unpackPathNames().

59 { return triggerNames_.size(); }
Strings triggerNames_
Definition: TriggerNames.h:93
unsigned int edm::TriggerNames::triggerIndex ( std::string_view  name) const

Definition at line 52 of file TriggerNames.cc.

References newFWLiteAna::found, indexMap_, and mergeVDriftHistosByStation::name.

Referenced by CaloTowerAnalyzer::analyze(), BeamMonitor::analyze(), BTVHLTOfflineSource::analyze(), HcalRaddamMuon::analyze(), HLTHiggsSubAnalysis::analyze(), HLTScalers::analyze(), HcalHBHEMuonAnalyzer::analyze(), HLTExoticaSubAnalysis::analyze(), L1Muon2RecoTreeProducer::analyze(), HLTEventAnalyzerAOD::analyzeTrigger(), HLTEventAnalyzerRAW::analyzeTrigger(), HLTBitComputer::compute(), L1MetFilterRecoTreeProducer::doMetFilters(), HLTBitVariable::eval(), EwkElecTauHistManager::fillHistograms(), EwkMuTauHistManager::fillHistograms(), JetMETHLTOfflineSource::fillMEforEffAllTrigger(), JetMETHLTOfflineSource::fillMEforTriggerNTfired(), CastorDigiMonitor::fillTrigRes(), HLTPathSelector::filter(), FWFileEntry::filterEventsWithCustomParser(), edm::TriggerResultsByName::getAndCheckIndex(), PrescalerFHN::init(), HLTHighLevel::init(), ZCounting::initHLT(), JetMETHLTOfflineSource::isHLTPathAccepted(), TrigObjTnPHistColl::PathSelector::operator()(), pat::TriggerObjectStandAlone::packPathNames(), hltdqm::passTrig(), CandidateTriggerObjectProducer::produce(), HLTEventSelector::select(), egHLT::OffHelper::setTrigInfo(), GsfElectronDataAnalyzer::trigger(), DQMAnalyzer::trigger(), edm::TriggerResultsByName::triggerIndex(), and triggerExpression::Data::triggerIndex().

52  {
53  auto found = std::equal_range(indexMap_.begin(), indexMap_.end(), name, PairSort());
54  if (found.first == found.second)
55  return indexMap_.size();
56  return found.first->second;
57  }
IndexMap indexMap_
Definition: TriggerNames.h:94
std::string const & edm::TriggerNames::triggerName ( unsigned int  index) const

Definition at line 50 of file TriggerNames.cc.

References triggerNames_.

Referenced by EventShapeDQM::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(), HLTTauDQMTagAndProbePlotter::analyze(), QcdPhotonsDQM::analyze(), SUSY_HLT_DiJet_MET::analyze(), SUSY_HLT_Muon_Hadronic::analyze(), SUSY_HLT_VBF_Mu::analyze(), SUSY_HLT_MuEle_Hadronic::analyze(), SUSY_HLT_alphaT::analyze(), EwkDQM::analyze(), BeamMonitor::analyze(), HotlineDQM::analyze(), TopDiLeptonDQM::analyze(), MuonRecoOneHLT::analyze(), HigPhotonJetHLTOfflineSource::analyze(), DQMExample_Step1::analyze(), SUSY_HLT_SingleLepton::analyze(), HeavyFlavorValidation::analyze(), HLTMuonMatchAndPlot::analyze(), HLTInfo::analyze(), JetAnalyzer::analyze(), ExoticaDQM::analyze(), IsolatedTracksCone::analyze(), FSQ::HandlerTemplate< TInputCandidateType, TOutputCandidateType, filter >::analyze(), GeneralPurposeTrackAnalyzer::analyze(), DMRChecker::analyze(), MuScleFit::duringLoop(), FWHLTTriggerTableView::fillAverageAcceptFractions(), FWHLTValidator::fillOptions(), FWHLTTriggerTableView::fillTable(), CastorDigiMonitor::fillTrigRes(), HLTJetMETValidation::getHLTResults(), LeptonSkimming::hltFired(), HLTHighLevel::init(), HigPhotonJetHLTOfflineSource::isMonitoredTriggerAccepted(), FWPathsPopup::postEvent(), 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

Member Data Documentation

IndexMap edm::TriggerNames::indexMap_
private

Definition at line 94 of file TriggerNames.h.

Referenced by initializeTriggerIndex(), and triggerIndex().

ParameterSetID edm::TriggerNames::psetID_
private

Definition at line 91 of file TriggerNames.h.

Referenced by parameterSetID(), and TriggerNames().

Strings edm::TriggerNames::triggerNames_
private

Definition at line 93 of file TriggerNames.h.

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