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

Private Attributes

IndexMap indexMap_
 
ParameterSetID psetID_
 
Strings triggerNames_
 

Detailed Description

Definition at line 55 of file TriggerNames.h.

Member Typedef Documentation

◆ IndexMap

typedef std::map<std::string, unsigned int> edm::TriggerNames::IndexMap

Definition at line 58 of file TriggerNames.h.

◆ Strings

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

Definition at line 57 of file TriggerNames.h.

Constructor & Destructor Documentation

◆ TriggerNames() [1/2]

edm::TriggerNames::TriggerNames ( )

Definition at line 7 of file TriggerNames.cc.

7 {}

◆ TriggerNames() [2/2]

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

Definition at line 9 of file TriggerNames.cc.

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  }

References indexMap_, muonDTDigis_cfi::pset, psetID_, and triggerNames_.

Member Function Documentation

◆ parameterSetID()

ParameterSetID const & edm::TriggerNames::parameterSetID ( ) const

Definition at line 33 of file TriggerNames.cc.

33 { return psetID_; }

References psetID_.

Referenced by triggerExpression::Data::setEvent(), and edm::TriggerResultsByName::TriggerResultsByName().

◆ size()

TriggerNames::Strings::size_type edm::TriggerNames::size ( void  ) const

◆ triggerIndex()

unsigned int edm::TriggerNames::triggerIndex ( std::string const &  name) const

◆ triggerName()

std::string const & edm::TriggerNames::triggerName ( unsigned int  index) const

◆ triggerNames()

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

Member Data Documentation

◆ indexMap_

IndexMap edm::TriggerNames::indexMap_
private

Definition at line 86 of file TriggerNames.h.

Referenced by triggerIndex(), and TriggerNames().

◆ psetID_

ParameterSetID edm::TriggerNames::psetID_
private

Definition at line 83 of file TriggerNames.h.

Referenced by parameterSetID(), and TriggerNames().

◆ triggerNames_

Strings edm::TriggerNames::triggerNames_
private

Definition at line 85 of file TriggerNames.h.

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

pos
Definition: PixelAliasList.h:18
edm::TriggerNames::triggerNames_
Strings triggerNames_
Definition: TriggerNames.h:85
Strings
std::vector< std::string > Strings
Definition: MsgTools.h:18
edm::TriggerNames::indexMap_
IndexMap indexMap_
Definition: TriggerNames.h:86
edm::TriggerNames::psetID_
ParameterSetID psetID_
Definition: TriggerNames.h:83
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
muonDTDigis_cfi.pset
pset
Definition: muonDTDigis_cfi.py:27