test
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
L1TriggerKeyExt Class Reference

#include <L1TriggerKeyExt.h>

Public Types

enum  L1Subsystems { kuGT, 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
 
 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

static const std::string kEmptyKey = ""
 
static const 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

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

Definition at line 26 of file L1TriggerKeyExt.h.

Member Enumeration Documentation

Enumerator
kuGT 
kNumberSubsystems 

Definition at line 28 of file L1TriggerKeyExt.h.

Constructor & Destructor Documentation

L1TriggerKeyExt::L1TriggerKeyExt ( )
inline

Definition at line 40 of file L1TriggerKeyExt.h.

References i, kNullKey, kNumberSubsystems, and m_subsystemKeys.

41  {
42  for( int i = 0 ; i < kNumberSubsystems ; ++i )
43  {
45  }
46  }
int i
Definition: DBlmapReader.cc:9
static const std::string kNullKey
std::map< int, std::string > m_subsystemKeys

Member Function Documentation

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

Definition at line 49 of file L1TriggerKeyExt.h.

References relval_steps::key, kNullKey, and m_recordToKey.

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

50  { 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
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
RecordToKey m_recordToKey
void L1TriggerKeyExt::add ( const RecordToKey map)
inline

Definition at line 52 of file L1TriggerKeyExt.h.

References kNullKey, and m_recordToKey.

Referenced by counter.Counter::register().

53  {
54  for( RecordToKey::const_iterator itr = map.begin() ;
55  itr != map.end() ;
56  ++itr )
57  {
58  m_recordToKey.insert( std::make_pair( itr->first, itr->second.empty() ? kNullKey : itr->second ) ) ;
59  }
60  }
static const std::string kNullKey
RecordToKey m_recordToKey
std::string L1TriggerKeyExt::get ( const std::string &  record,
const std::string &  type 
) const
inline

Definition at line 71 of file L1TriggerKeyExt.h.

References kEmptyKey, kNullKey, m_recordToKey, record, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by Options.Options::__getitem__(), betterConfigParser.BetterConfigParser::__updateDict(), util.rrapi.RRApi::columns(), rrapi.RRApi::columns(), util.rrapi.RRApi::count(), rrapi.RRApi::count(), rrapi.RRApi::data(), util.rrapi.RRApi::data(), betterConfigParser.BetterConfigParser::getCompares(), betterConfigParser.BetterConfigParser::getGeneral(), betterConfigParser.BetterConfigParser::getResultingSection(), rrapi.RRApi::report(), util.rrapi.RRApi::report(), rrapi.RRApi::reports(), util.rrapi.RRApi::reports(), util.rrapi.RRApi::tables(), rrapi.RRApi::tables(), rrapi.RRApi::tags(), util.rrapi.RRApi::tags(), rrapi.RRApi::templates(), util.rrapi.RRApi::templates(), util.rrapi.RRApi::workspaces(), and rrapi.RRApi::workspaces().

72  {
73  RecordToKey::const_iterator it = m_recordToKey.find (record + "@" + type);
74  if (it == m_recordToKey.end ())
75  return std::string ();
76  else
77  return it->second == kNullKey ? kEmptyKey : it->second ;
78  }
type
Definition: HCALResponse.h:21
JetCorrectorParameters::Record record
Definition: classes.h:7
static const std::string kNullKey
static const std::string kEmptyKey
RecordToKey m_recordToKey
const RecordToKey& L1TriggerKeyExt::recordToKeyMap ( ) const
inline

Definition at line 88 of file L1TriggerKeyExt.h.

References m_recordToKey.

Referenced by L1CondDBIOVWriterExt::analyze().

89  { return m_recordToKey ; }
RecordToKey m_recordToKey
template<class Archive >
void L1TriggerKeyExt::serialize ( Archive &  ar,
const unsigned int  version 
)
private
void L1TriggerKeyExt::setSubsystemKey ( L1Subsystems  subsystem,
const std::string &  key 
)
inline

Definition at line 65 of file L1TriggerKeyExt.h.

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

Referenced by L1TriggerKeyDummyProdExt::L1TriggerKeyDummyProdExt().

66  { m_subsystemKeys[ subsystem ] = key.empty() ? kNullKey : key ; }
static const std::string kNullKey
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
std::map< int, std::string > m_subsystemKeys
void L1TriggerKeyExt::setTSCKey ( const std::string &  tscKey)
inline

Definition at line 62 of file L1TriggerKeyExt.h.

References m_tscKey, and tscKey().

Referenced by L1TriggerKeyDummyProdExt::L1TriggerKeyDummyProdExt().

63  { m_tscKey = tscKey ; }
std::string m_tscKey
const std::string & tscKey() const
const std::string& L1TriggerKeyExt::subsystemKey ( L1Subsystems  subsystem) const
inline

Definition at line 83 of file L1TriggerKeyExt.h.

References kEmptyKey, relval_steps::key, kNullKey, and m_subsystemKeys.

84  { std::map<int,std::string>::const_iterator key = m_subsystemKeys.find( subsystem );
85  return key == m_subsystemKeys.end() || key->second == kNullKey ? kEmptyKey : key->second ; }
static const std::string kNullKey
static const std::string kEmptyKey
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
std::map< int, std::string > m_subsystemKeys
const std::string& L1TriggerKeyExt::tscKey ( ) const
inline

Definition at line 80 of file L1TriggerKeyExt.h.

References m_tscKey.

Referenced by setTSCKey().

81  { return m_tscKey ; }
std::string m_tscKey

Friends And Related Function Documentation

friend class boost::serialization::access
friend

Definition at line 107 of file L1TriggerKeyExt.h.

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

Definition at line 107 of file L1TriggerKeyExt.h.

Member Data Documentation

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

Definition at line 37 of file L1TriggerKeyExt.h.

Referenced by get(), and subsystemKey().

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

Definition at line 100 of file L1TriggerKeyExt.h.

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

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

Definition at line 105 of file L1TriggerKeyExt.h.

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

std::string L1TriggerKeyExt::m_tscKey
protected

Definition at line 104 of file L1TriggerKeyExt.h.

Referenced by setTSCKey(), and tscKey().