77 : m_printL1TriggerKey(iConfig.getParameter<
bool>(
"printL1TriggerKey")),
78 m_printL1TriggerKeyList(iConfig.getParameter<
bool>(
"printL1TriggerKeyList")),
79 m_printESRecords(iConfig.getParameter<
bool>(
"printESRecords")),
80 m_printPayloadTokens(iConfig.getParameter<
bool>(
"printPayloadTokens")),
105 edm::LogError(
"L1-O2O") <<
"Problem getting last L1TriggerKeyList";
110 L1TriggerKeyList::KeyToToken::const_iterator iTSCKey = pList.
tscKeyToTokenMap().begin();
111 L1TriggerKeyList::KeyToToken::const_iterator eTSCKey = pList.
tscKeyToTokenMap().end();
112 for (; iTSCKey != eTSCKey; ++iTSCKey) {
123 for (; iRec != eRec; ++iRec) {
125 edm::LogInfo(
"L1-O2O") <<
"For record@type " << iRec->first <<
", found " << keyTokenMap.size()
126 <<
" keys:" << std::endl;
128 L1TriggerKeyList::KeyToToken::const_iterator iKey = keyTokenMap.begin();
129 L1TriggerKeyList::KeyToToken::const_iterator eKey = keyTokenMap.end();
130 for (; iKey != eKey; ++iKey) {
146 edm::LogInfo(
"L1-O2O") <<
"Current TSC key = " << pKey->tscKey() << std::endl << std::endl;
148 edm::LogInfo(
"L1-O2O") <<
"Current subsystem keys:" << std::endl;
160 L1TriggerKey::RecordToKey::const_iterator iRec = recKeyMap.begin();
161 L1TriggerKey::RecordToKey::const_iterator eRec = recKeyMap.end();
162 for (; iRec != eRec; ++iRec) {
163 edm::LogInfo(
"L1-O2O") << iRec->first <<
" " << iRec->second << std::endl;
166 edm::LogError(
"L1-O2O") <<
"No L1TriggerKey found." << std::endl;
177 edm::LogError(
"L1-O2O") <<
"Problem getting last L1TriggerKeyList";
181 unsigned long long run =
iEvent.id().run();
182 std::stringstream
ss;
188 edm::LogInfo(
"L1-O2O") << std::endl <<
"Run Settings keys:" << std::endl;
192 for (; iRec != iEnd; ++iRec) {
196 if (*iRec ==
"L1TriggerKeyRcd") {
211 log +=
" " + *iRec +
"Key=" +
key;
std::map< std::string, std::string > RecordToKey
~L1O2OTestAnalyzer() override
#define DEFINE_FWK_MODULE(type)
def replace(string, replacements)
std::map< std::string, std::string > KeyToToken
const KeyToToken & tscKeyToTokenMap() const
Log< level::Error, false > LogError
const RecordToKeyToToken & recordTypeToKeyToTokenMap() const
std::vector< std::string > m_recordsToPrint
edm::ESGetToken< L1TriggerKey, L1TriggerKeyRcd > l1TriggerKeyToken_
void analyze(const edm::Event &, const edm::EventSetup &) override
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
bool fillLastTriggerKeyList(L1TriggerKeyList &output)
std::string objectKey(const std::string &recordName, const std::string &payloadToken) const
Log< level::Info, false > LogInfo
bool m_printL1TriggerKeyList
std::string tscKey(const std::string &triggerKeyPayloadToken) const
L1O2OTestAnalyzer(const edm::ParameterSet &)
bool m_printPayloadTokens