1 #ifndef CondFormats_L1TObjects_L1TriggerKeyExt_h 2 #define CondFormats_L1TObjects_L1TriggerKeyExt_h 56 {
m_recordToKey.insert (std::make_pair (record +
"@" + type, key.empty() ? kNullKey :
key)); }
60 for( RecordToKey::const_iterator itr = map.begin() ;
64 m_recordToKey.insert( std::make_pair( itr->first, itr->second.empty() ? kNullKey : itr->second ) ) ;
83 return it->second == kNullKey ? kEmptyKey : it->second ;
91 return key ==
m_subsystemKeys.end() || key->second == kNullKey ? kEmptyKey : key->second ; }
void add(const RecordToKey &map)
void add(const std::string &record, const std::string &type, const std::string &key)
static const std::string kNullKey
static const std::string kEmptyKey
const RecordToKey & recordToKeyMap() const
const std::string & subsystemKey(L1Subsystems subsystem) const
std::map< std::string, std::string > RecordToKey
void setTSCKey(const std::string &tscKey)
RecordToKey m_recordToKey
#define COND_SERIALIZABLE
std::map< int, std::string > m_subsystemKeys
void setSubsystemKey(L1Subsystems subsystem, const std::string &key)
const std::string & tscKey() const