104 edm::LogError(
"L1-O2O") <<
"Problem getting last L1TriggerKeyList";
109 L1TriggerKeyList::KeyToToken::const_iterator iTSCKey = pList.
tscKeyToTokenMap().begin();
110 L1TriggerKeyList::KeyToToken::const_iterator eTSCKey = pList.
tscKeyToTokenMap().end();
111 for (; iTSCKey != eTSCKey; ++iTSCKey) {
122 for (; iRec != eRec; ++iRec) {
124 std::cout <<
"For record@type " << iRec->first <<
", found " << keyTokenMap.size() <<
" keys:" << std::endl;
126 L1TriggerKeyList::KeyToToken::const_iterator iKey = keyTokenMap.begin();
127 L1TriggerKeyList::KeyToToken::const_iterator eKey = keyTokenMap.end();
128 for (; iKey != eKey; ++iKey) {
145 std::cout <<
"Current TSC key = " << pKey->
tscKey() << std::endl << std::endl;
147 std::cout <<
"Current subsystem keys:" << std::endl;
157 std::cout <<
"Object keys:" << std::endl;
159 L1TriggerKey::RecordToKey::const_iterator iRec = recKeyMap.begin();
160 L1TriggerKey::RecordToKey::const_iterator eRec = recKeyMap.end();
161 for (; iRec != eRec; ++iRec) {
162 std::cout << iRec->first <<
" " << iRec->second << std::endl;
165 std::cout <<
"No L1TriggerKey found." << std::endl;
176 edm::LogError(
"L1-O2O") <<
"Problem getting last L1TriggerKeyList";
180 unsigned long long run = iEvent.
id().
run();
181 std::stringstream
ss;
187 std::cout << std::endl <<
"Run Settings keys:" << std::endl;
191 for (; iRec != iEnd; ++iRec) {
195 if (*iRec ==
"L1TriggerKeyRcd") {
196 key = pList.
tscKey(payloadToken);
198 key = pList.
objectKey(*iRec, payloadToken);
209 replace(key.begin(), key.end(),
' ',
'?');
210 log +=
" " + *iRec +
"Key=" +
key;
213 std::cout << std::endl << log << std::endl;
std::map< std::string, std::string > RecordToKey
def replace(string, replacements)
std::map< std::string, std::string > KeyToToken
std::string payloadToken(const std::string &recordName, edm::RunNumber_t runNumber)
std::string tscKey(const std::string &triggerKeyPayloadToken) const
const RecordToKey & recordToKeyMap() const
std::vector< std::string > m_recordsToPrint
const RecordToKeyToToken & recordTypeToKeyToTokenMap() const
std::string objectKey(const std::string &recordName, const std::string &payloadToken) const
bool fillLastTriggerKeyList(L1TriggerKeyList &output)
bool m_printL1TriggerKeyList
const KeyToToken & tscKeyToTokenMap() const
const std::string & tscKey() const
const std::string & subsystemKey(L1Subsystems subsystem) const
bool m_printPayloadTokens