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")),
81 m_recordsToPrint(iConfig.getParameter<std::
vector<std::
string> >(
"recordsToPrint")) {
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") {
197 key = pList.
tscKey(payloadToken);
199 key = pList.
objectKey(*iRec, payloadToken);
210 replace(key.begin(), key.end(),
' ',
'?');
211 log +=
" " + *iRec +
"Key=" +
key;
214 edm::LogInfo(
"L1-O2O") << std::endl << log << std::endl;
static std::vector< std::string > checklist log
std::map< std::string, std::string > RecordToKey
~L1O2OTestAnalyzer() override
#define DEFINE_FWK_MODULE(type)
std::map< std::string, std::string > KeyToToken
Log< level::Error, false > LogError
std::string payloadToken(const std::string &recordName, edm::RunNumber_t runNumber)
std::string tscKey(const std::string &triggerKeyPayloadToken) const
tuple key
prepare the HTCondor submission files and eventually submit them
std::vector< std::string > m_recordsToPrint
edm::ESGetToken< L1TriggerKey, L1TriggerKeyRcd > l1TriggerKeyToken_
const RecordToKeyToToken & recordTypeToKeyToTokenMap() const
std::string objectKey(const std::string &recordName, const std::string &payloadToken) const
void analyze(const edm::Event &, const edm::EventSetup &) override
bool fillLastTriggerKeyList(L1TriggerKeyList &output)
Log< level::Info, false > LogInfo
bool m_printL1TriggerKeyList
const KeyToToken & tscKeyToTokenMap() const
L1O2OTestAnalyzer(const edm::ParameterSet &)
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
bool m_printPayloadTokens