CMS 3D CMS Logo

Public Types | Public Member Functions | Private Attributes

edm::TriggerNames Class Reference

#include <TriggerNames.h>

List of all members.

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 (edm::ParameterSet const &pset)
Strings const & triggerNames () const
 TriggerNames ()

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.

{ }
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_.

                                                        {

    triggerNames_ = pset.getParameter<Strings>("@trigger_paths");

    unsigned int index = 0;
    for (Strings::const_iterator iName = triggerNames_.begin(),
         iEnd = triggerNames_.end();
         iName != iEnd;
         ++iName, ++index) {
      indexMap_[*iName] = index;
    }
    psetID_ = pset.id();
  }

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().

{ return psetID_; }
TriggerNames::Strings::size_type edm::TriggerNames::size ( void  ) const

Definition at line 39 of file TriggerNames.cc.

References triggerNames_.

Referenced by JetMETAnalyzer::analyze(), MuonRecoOneHLT::analyze(), HcalDigiMonitor::analyze(), HLTHiggsSubAnalysis::analyze(), CaloMETAnalyzer::analyze(), PFMETAnalyzer::analyze(), MuCorrMETAnalyzer::analyze(), QcdPhotonsDQM::analyze(), METAnalyzer::analyze(), HeavyFlavorValidation::analyze(), TcMETAnalyzer::analyze(), MuScleFit::duringLoop(), HLTBitVariable::eval(), FWHLTTriggerTableView::fillAverageAcceptFractions(), EwkMuTauHistManager::fillHistograms(), EwkElecTauHistManager::fillHistograms(), JetMETHLTOfflineSource::fillMEforEffAllTrigger(), BTagHLTOfflineSource::fillMEforEffAllTrigger(), JetMETHLTOfflineSource::fillMEforEffWrtMBTrigger(), BTagHLTOfflineSource::fillMEforEffWrtMBTrigger(), JetMETHLTOfflineSource::fillMEforEffWrtMuTrigger(), BTagHLTOfflineSource::fillMEforEffWrtMuTrigger(), BTagHLTOfflineSource::fillMEforTriggerNTfired(), JetMETHLTOfflineSource::fillMEforTriggerNTfired(), FWHLTValidator::fillOptions(), FWHLTTriggerTableView::fillTable(), SimpleSystematicsAnalyzer::filter(), PdfSystematicsAnalyzer::filter(), FWFileEntry::filterEventsWithCustomParser(), edm::TriggerResultsByName::getAndCheckIndex(), triggerExpression::HLTReader::init(), HLTInclusiveVBFSource::isHLTPathAccepted(), JetMETHLTOfflineSource::isHLTPathAccepted(), BTagHLTOfflineSource::isHLTPathAccepted(), HcalNZSMonitor::processEvent(), HcalRecHitMonitor::processEvent(), HLTEventSelector::select(), DQMAnalyzer::trigger(), GsfElectronDataAnalyzer::trigger(), edm::EventBase::triggerNames_(), and edm::TriggerResultsByName::TriggerResultsByName().

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

Definition at line 32 of file TriggerNames.cc.

References indexMap_, and pos.

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

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

Member Data Documentation

Definition at line 89 of file TriggerNames.h.

Referenced by triggerIndex(), and TriggerNames().

Definition at line 86 of file TriggerNames.h.

Referenced by parameterSetID(), and TriggerNames().

Definition at line 88 of file TriggerNames.h.

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