1 #ifndef CondFormats_L1TObjects_L1TriggerKeyExt_h 2 #define CondFormats_L1TObjects_L1TriggerKeyExt_h 43 m_recordToKey.insert(std::make_pair(record +
"@" + type, key.empty() ? kNullKey :
key));
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));
66 return it->second == kNullKey ? kEmptyKey : it->second;
73 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
std::map< int, std::string > m_subsystemKeys
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
void setSubsystemKey(L1Subsystems subsystem, const std::string &key)
const std::string & tscKey() const