CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Static Public Attributes | Protected Attributes | Private Member Functions | Friends
L1TriggerKeyExt Class Reference

#include <L1TriggerKeyExt.h>

Public Types

enum  L1Subsystems {
  kuGT, kuGMT, kCALO, kEMTF,
  kOMTF, kBMTF, kTWINMUX, kNumberSubsystems
}
 
typedef std::map< std::string, std::string > RecordToKey
 

Public Member Functions

void add (const RecordToKey &map)
 
void add (const std::string &record, const std::string &type, const std::string &key)
 
std::string get (const std::string &record, const std::string &type) const
 
 L1TriggerKeyExt ()
 
const RecordToKeyrecordToKeyMap () const
 
void setSubsystemKey (L1Subsystems subsystem, const std::string &key)
 
void setTSCKey (const std::string &tscKey)
 
const std::string & subsystemKey (L1Subsystems subsystem) const
 
const std::string & tscKey () const
 

Static Public Attributes

const static std::string kEmptyKey = ""
 
const static std::string kNullKey = "NULL"
 

Protected Attributes

RecordToKey m_recordToKey
 
std::map< int, std::string > m_subsystemKeys
 
std::string m_tscKey
 

Private Member Functions

template<class Archive >
void serialize (Archive &ar, const unsigned int version)
 

Friends

class boost::serialization::access
 
template<typename CondSerializationT , typename Enabled >
struct cond::serialization::access
 

Detailed Description

Definition at line 23 of file L1TriggerKeyExt.h.

Member Typedef Documentation

◆ RecordToKey

typedef std::map<std::string, std::string> L1TriggerKeyExt::RecordToKey

Definition at line 25 of file L1TriggerKeyExt.h.

Member Enumeration Documentation

◆ L1Subsystems

Enumerator
kuGT 
kuGMT 
kCALO 
kEMTF 
kOMTF 
kBMTF 
kTWINMUX 
kNumberSubsystems 

Definition at line 27 of file L1TriggerKeyExt.h.

Constructor & Destructor Documentation

◆ L1TriggerKeyExt()

L1TriggerKeyExt::L1TriggerKeyExt ( )
inline

Definition at line 35 of file L1TriggerKeyExt.h.

35  {
36  for (int i = 0; i < kNumberSubsystems; ++i) {
38  }
39  }

References mps_fire::i, kNullKey, kNumberSubsystems, and m_subsystemKeys.

Member Function Documentation

◆ add() [1/2]

void L1TriggerKeyExt::add ( const RecordToKey map)
inline

Definition at line 46 of file L1TriggerKeyExt.h.

46  {
47  for (RecordToKey::const_iterator itr = map.begin(); itr != map.end(); ++itr) {
48  m_recordToKey.insert(std::make_pair(itr->first, itr->second.empty() ? kNullKey : itr->second));
49  }
50  }

References kNullKey, m_recordToKey, and genParticles_cff::map.

Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().

◆ add() [2/2]

void L1TriggerKeyExt::add ( const std::string &  record,
const std::string &  type,
const std::string &  key 
)
inline

◆ get()

std::string L1TriggerKeyExt::get ( const std::string &  record,
const std::string &  type 
) const
inline

◆ recordToKeyMap()

const RecordToKey& L1TriggerKeyExt::recordToKeyMap ( ) const
inline

Definition at line 77 of file L1TriggerKeyExt.h.

77 { return m_recordToKey; }

References m_recordToKey.

Referenced by L1CondDBIOVWriterExt::analyze(), and L1O2OTestAnalyzerExt::analyze().

◆ serialize()

template<class Archive >
void L1TriggerKeyExt::serialize ( Archive &  ar,
const unsigned int  version 
)
private

◆ setSubsystemKey()

void L1TriggerKeyExt::setSubsystemKey ( L1Subsystems  subsystem,
const std::string &  key 
)
inline

◆ setTSCKey()

void L1TriggerKeyExt::setTSCKey ( const std::string &  tscKey)
inline

Definition at line 52 of file L1TriggerKeyExt.h.

52 { m_tscKey = tscKey; }

References m_tscKey, and tscKey().

Referenced by L1TriggerKeyDummyProdExt::L1TriggerKeyDummyProdExt().

◆ subsystemKey()

const std::string& L1TriggerKeyExt::subsystemKey ( L1Subsystems  subsystem) const
inline

◆ tscKey()

const std::string& L1TriggerKeyExt::tscKey ( ) const
inline

Definition at line 69 of file L1TriggerKeyExt.h.

69 { return m_tscKey; }

References m_tscKey.

Referenced by L1O2OTestAnalyzerExt::analyze(), and setTSCKey().

Friends And Related Function Documentation

◆ boost::serialization::access

friend class boost::serialization::access
friend

Definition at line 94 of file L1TriggerKeyExt.h.

◆ cond::serialization::access

template<typename CondSerializationT , typename Enabled >
friend struct cond::serialization::access
friend

Definition at line 94 of file L1TriggerKeyExt.h.

Member Data Documentation

◆ kEmptyKey

const std::string L1TriggerKeyExt::kEmptyKey = ""
static

Definition at line 32 of file L1TriggerKeyExt.h.

Referenced by get(), and subsystemKey().

◆ kNullKey

const std::string L1TriggerKeyExt::kNullKey = "NULL"
static

◆ m_recordToKey

RecordToKey L1TriggerKeyExt::m_recordToKey
protected

Definition at line 88 of file L1TriggerKeyExt.h.

Referenced by add(), get(), and recordToKeyMap().

◆ m_subsystemKeys

std::map<int, std::string> L1TriggerKeyExt::m_subsystemKeys
protected

Definition at line 92 of file L1TriggerKeyExt.h.

Referenced by L1TriggerKeyExt(), setSubsystemKey(), and subsystemKey().

◆ m_tscKey

std::string L1TriggerKeyExt::m_tscKey
protected

Definition at line 91 of file L1TriggerKeyExt.h.

Referenced by setTSCKey(), and tscKey().

hcal_dqm_sourceclient-live_cfg.subsystem
subsystem
Definition: hcal_dqm_sourceclient-live_cfg.py:16
L1TriggerKeyExt::kuGMT
Definition: L1TriggerKeyExt.h:27
mps_fire.i
i
Definition: mps_fire.py:428
L1TriggerKeyExt::kBMTF
Definition: L1TriggerKeyExt.h:27
L1TriggerKeyExt::kNullKey
const static std::string kNullKey
Definition: L1TriggerKeyExt.h:30
GlobalPosition_Frontier_DevDB_cff.record
record
Definition: GlobalPosition_Frontier_DevDB_cff.py:10
L1TriggerKeyExt::m_subsystemKeys
std::map< int, std::string > m_subsystemKeys
Definition: L1TriggerKeyExt.h:92
L1TriggerKeyExt::kEmptyKey
const static std::string kEmptyKey
Definition: L1TriggerKeyExt.h:32
L1TriggerKeyExt::kCALO
Definition: L1TriggerKeyExt.h:27
L1TriggerKeyExt::m_tscKey
std::string m_tscKey
Definition: L1TriggerKeyExt.h:91
L1TriggerKeyExt::tscKey
const std::string & tscKey() const
Definition: L1TriggerKeyExt.h:69
L1TriggerKeyExt::kOMTF
Definition: L1TriggerKeyExt.h:27
L1TriggerKeyExt::m_recordToKey
RecordToKey m_recordToKey
Definition: L1TriggerKeyExt.h:88
L1TriggerKeyExt::kNumberSubsystems
Definition: L1TriggerKeyExt.h:27
L1TriggerKeyExt::kTWINMUX
Definition: L1TriggerKeyExt.h:27
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
type
type
Definition: SiPixelVCal_PayloadInspector.cc:37
L1TriggerKeyExt::kEMTF
Definition: L1TriggerKeyExt.h:27
L1TriggerKeyExt::kuGT
Definition: L1TriggerKeyExt.h:27
genParticles_cff.map
map
Definition: genParticles_cff.py:11
crabWrapper.key
key
Definition: crabWrapper.py:19