CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Static Public Attributes | Protected Attributes | Private Member Functions | Friends
L1TriggerKey Class Reference

#include <L1TriggerKey.h>

Public Types

enum  L1Subsystems {
  kCSCTF, kDTTF, kRPC, kGMT,
  kRCT, kGCT, kGT, kTSP0,
  kNumberSubsystems
}
 
typedef std::map< std::string,
std::string > 
RecordToKey
 

Public Member Functions

void add (const std::string &record, const std::string &type, const std::string &key)
 
void add (const RecordToKey &map)
 
std::string get (const std::string &record, const std::string &type) const
 
 L1TriggerKey ()
 
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

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

Protected Attributes

RecordToKey m_recordToKey
 
std::string m_subsystemKeys [kNumberSubsystems]
 
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 L1TriggerKey.h.

Member Typedef Documentation

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

Definition at line 26 of file L1TriggerKey.h.

Member Enumeration Documentation

Enumerator
kCSCTF 
kDTTF 
kRPC 
kGMT 
kRCT 
kGCT 
kGT 
kTSP0 
kNumberSubsystems 

Definition at line 28 of file L1TriggerKey.h.

Constructor & Destructor Documentation

L1TriggerKey::L1TriggerKey ( )
inline

Definition at line 47 of file L1TriggerKey.h.

References i, kNullKey, kNumberSubsystems, and m_subsystemKeys.

48  {
49  for( int i = 0 ; i < kNumberSubsystems ; ++i )
50  {
52  }
53  }
int i
Definition: DBlmapReader.cc:9
static const std::string kNullKey
Definition: L1TriggerKey.h:42
std::string m_subsystemKeys[kNumberSubsystems]
Definition: L1TriggerKey.h:111

Member Function Documentation

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

Definition at line 56 of file L1TriggerKey.h.

References relval_steps::key, kNullKey, and m_recordToKey.

Referenced by L1TriggerKeyDummyProd::L1TriggerKeyDummyProd(), and counter.Counter::register().

57  { m_recordToKey.insert (std::make_pair (record + "@" + type, key.empty() ? kNullKey : key)); }
type
Definition: HCALResponse.h:21
JetCorrectorParameters::Record record
Definition: classes.h:7
static const std::string kNullKey
Definition: L1TriggerKey.h:42
RecordToKey m_recordToKey
Definition: L1TriggerKey.h:106
void L1TriggerKey::add ( const RecordToKey map)
inline

Definition at line 59 of file L1TriggerKey.h.

References kNullKey, and m_recordToKey.

Referenced by counter.Counter::register().

60  {
61  for( RecordToKey::const_iterator itr = map.begin() ;
62  itr != map.end() ;
63  ++itr )
64  {
65  m_recordToKey.insert( std::make_pair( itr->first, itr->second.empty() ? kNullKey : itr->second ) ) ;
66  }
67  }
static const std::string kNullKey
Definition: L1TriggerKey.h:42
RecordToKey m_recordToKey
Definition: L1TriggerKey.h:106
std::string L1TriggerKey::get ( const std::string &  record,
const std::string &  type 
) const
inline
const RecordToKey& L1TriggerKey::recordToKeyMap ( ) const
inline

Definition at line 94 of file L1TriggerKey.h.

References m_recordToKey.

Referenced by L1CondDBIOVWriter::analyze().

95  { return m_recordToKey ; }
RecordToKey m_recordToKey
Definition: L1TriggerKey.h:106
template<class Archive >
void L1TriggerKey::serialize ( Archive &  ar,
const unsigned int  version 
)
private
void L1TriggerKey::setSubsystemKey ( L1Subsystems  subsystem,
const std::string &  key 
)
inline

Definition at line 72 of file L1TriggerKey.h.

References relval_steps::key, kNullKey, m_subsystemKeys, and hcal_dqm_sourceclient-file_cfg::subsystem.

Referenced by L1TriggerKeyDummyProd::L1TriggerKeyDummyProd().

73  { m_subsystemKeys[ subsystem ] = key.empty() ? kNullKey : key ; }
static const std::string kNullKey
Definition: L1TriggerKey.h:42
std::string m_subsystemKeys[kNumberSubsystems]
Definition: L1TriggerKey.h:111
void L1TriggerKey::setTSCKey ( const std::string &  tscKey)
inline

Definition at line 69 of file L1TriggerKey.h.

References m_tscKey, and tscKey().

Referenced by L1TriggerKeyDummyProd::L1TriggerKeyDummyProd().

70  { m_tscKey = tscKey ; }
std::string m_tscKey
Definition: L1TriggerKey.h:110
const std::string & tscKey() const
Definition: L1TriggerKey.h:87
const std::string& L1TriggerKey::subsystemKey ( L1Subsystems  subsystem) const
inline

Definition at line 90 of file L1TriggerKey.h.

References kEmptyKey, kNullKey, m_subsystemKeys, and hcal_dqm_sourceclient-file_cfg::subsystem.

static const std::string kEmptyKey
Definition: L1TriggerKey.h:44
static const std::string kNullKey
Definition: L1TriggerKey.h:42
std::string m_subsystemKeys[kNumberSubsystems]
Definition: L1TriggerKey.h:111
const std::string& L1TriggerKey::tscKey ( ) const
inline

Definition at line 87 of file L1TriggerKey.h.

References m_tscKey.

Referenced by setTSCKey().

88  { return m_tscKey ; }
std::string m_tscKey
Definition: L1TriggerKey.h:110

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 113 of file L1TriggerKey.h.

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

Definition at line 113 of file L1TriggerKey.h.

Member Data Documentation

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

Definition at line 44 of file L1TriggerKey.h.

Referenced by get(), and subsystemKey().

const std::string L1TriggerKey::kNullKey = "NULL"
static
RecordToKey L1TriggerKey::m_recordToKey
protected

Definition at line 106 of file L1TriggerKey.h.

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

std::string L1TriggerKey::m_subsystemKeys[kNumberSubsystems]
protected

Definition at line 111 of file L1TriggerKey.h.

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

std::string L1TriggerKey::m_tscKey
protected

Definition at line 110 of file L1TriggerKey.h.

Referenced by setTSCKey(), and tscKey().