48 : m_printL1TriggerKeyExt(iConfig.getParameter<bool>(
"printL1TriggerKeyExt")),
49 m_printL1TriggerKeyListExt(iConfig.getParameter<bool>(
"printL1TriggerKeyListExt")),
50 m_printESRecords(iConfig.getParameter<bool>(
"printESRecords")),
51 m_printPayloadTokens(iConfig.getParameter<bool>(
"printPayloadTokens")),
52 m_recordsToPrint(iConfig.getParameter<std::
vector<std::
string> >(
"recordsToPrint")) {
72 edm::LogError(
"L1-O2O") <<
"Problem getting last L1TriggerKeyListExt";
77 L1TriggerKeyListExt::KeyToToken::const_iterator iTSCKey = pList.
tscKeyToTokenMap().begin();
78 L1TriggerKeyListExt::KeyToToken::const_iterator eTSCKey = pList.
tscKeyToTokenMap().end();
79 for (; iTSCKey != eTSCKey; ++iTSCKey) {
88 for (; iRec != eRec; ++iRec) {
90 edm::LogInfo(
"L1-O2O") <<
"For record@type " << iRec->first <<
", found " << keyTokenMap.size() <<
" keys:";
92 L1TriggerKeyListExt::KeyToToken::const_iterator iKey = keyTokenMap.begin();
93 L1TriggerKeyListExt::KeyToToken::const_iterator eKey = keyTokenMap.end();
94 for (; iKey != eKey; ++iKey) {
107 edm::LogInfo(
"L1-O2O") <<
"Current TSC key = " << pKey->tscKey();
114 L1TriggerKeyExt::RecordToKey::const_iterator iRec = recKeyMap.begin();
115 L1TriggerKeyExt::RecordToKey::const_iterator eRec = recKeyMap.end();
116 for (; iRec != eRec; ++iRec) {
117 edm::LogInfo(
"L1-O2O") << iRec->first <<
" " << iRec->second;
128 edm::LogError(
"L1-O2O") <<
"Problem getting last L1TriggerKeyListExt";
132 unsigned long long run = iEvent.
id().
run();
133 std::stringstream
ss;
143 for (; iRec != iEnd; ++iRec) {
147 if (*iRec ==
"L1TriggerKeyExtRcd") {
148 key = pList.
tscKey(payloadToken);
150 key = pList.
objectKey(*iRec, payloadToken);
160 replace(key.begin(), key.end(),
' ',
'?');
161 log +=
" " + *iRec +
"Key=" +
key;
bool m_printL1TriggerKeyExt
bool fillLastTriggerKeyList(L1TriggerKeyListExt &output)
void analyze(const edm::Event &, const edm::EventSetup &) override
static std::vector< std::string > checklist log
#define DEFINE_FWK_MODULE(type)
std::vector< std::string > m_recordsToPrint
const KeyToToken & tscKeyToTokenMap() const
L1O2OTestAnalyzerExt(const edm::ParameterSet &)
Log< level::Error, false > LogError
std::string payloadToken(const std::string &recordName, edm::RunNumber_t runNumber)
tuple key
prepare the HTCondor submission files and eventually submit them
std::string tscKey(const std::string &triggerKeyPayloadToken) const
std::map< std::string, std::string > RecordToKey
~L1O2OTestAnalyzerExt() override
Log< level::Info, false > LogInfo
bool m_printL1TriggerKeyListExt
std::string objectKey(const std::string &recordName, const std::string &payloadToken) const
const RecordToKeyToToken & recordTypeToKeyToTokenMap() const
std::map< std::string, std::string > KeyToToken
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
edm::ESGetToken< L1TriggerKeyExt, L1TriggerKeyExtRcd > l1TriggerKeyExtToken_
bool m_printPayloadTokens