84 <<
"Problem getting last L1TriggerKeyListExt" ;
90 L1TriggerKeyListExt::KeyToToken::const_iterator iTSCKey =
92 L1TriggerKeyListExt::KeyToToken::const_iterator eTSCKey =
94 for( ; iTSCKey != eTSCKey ; ++iTSCKey )
105 L1TriggerKeyListExt::RecordToKeyToToken::const_iterator iRec =
107 L1TriggerKeyListExt::RecordToKeyToToken::const_iterator eRec =
109 for( ; iRec != eRec ; ++iRec )
112 std::cout <<
"For record@type " << iRec->first <<
", found " 113 << keyTokenMap.size() <<
" keys:" << std::endl ;
115 L1TriggerKeyListExt::KeyToToken::const_iterator iKey = keyTokenMap.begin();
116 L1TriggerKeyListExt::KeyToToken::const_iterator eKey = keyTokenMap.end() ;
117 for( ; iKey != eKey ; ++iKey )
139 << std::endl << std::endl ;
141 std::cout <<
"Current subsystem keys:" << std::endl ;
143 << std::endl << std::endl ;
145 std::cout <<
"Object keys:" << std::endl ;
147 L1TriggerKeyExt::RecordToKey::const_iterator iRec = recKeyMap.begin() ;
148 L1TriggerKeyExt::RecordToKey::const_iterator eRec = recKeyMap.end() ;
149 for( ; iRec != eRec ; ++iRec )
151 std::cout << iRec->first <<
" " << iRec->second << std::endl ;
156 std::cout <<
"No L1TriggerKeyExt found." << std::endl ;
170 <<
"Problem getting last L1TriggerKeyListExt" ;
174 unsigned long long run = iEvent.
id().
run() ;
175 std::stringstream ss ;
181 std::cout << std::endl <<
"Run Settings keys:" << std::endl ;
183 std::vector< std::string >::const_iterator iRec =
185 std::vector< std::string >::const_iterator iEnd =
187 for( ; iRec != iEnd ; ++iRec )
193 if( *iRec ==
"L1TriggerKeyExtRcd" )
195 key = pList.
tscKey( payloadToken ) ;
199 key = pList.
objectKey( *iRec, payloadToken ) ;
211 replace( key.begin(), key.end(),
' ',
'?' ) ;
212 log +=
" " + *iRec +
"Key=" +
key ;
215 std::cout << std::endl << log << std::endl ;
bool m_printL1TriggerKeyExt
bool fillLastTriggerKeyList(L1TriggerKeyListExt &output)
void analyze(const edm::Event &, const edm::EventSetup &) override
def replace(string, replacements)
const KeyToToken & tscKeyToTokenMap() const
L1O2OTestAnalyzerExt(const edm::ParameterSet &)
const RecordToKey & recordToKeyMap() const
std::map< std::string, std::string > KeyToToken
#define DEFINE_FWK_MODULE(type)
const std::string & subsystemKey(L1Subsystems subsystem) const
std::string payloadToken(const std::string &recordName, edm::RunNumber_t runNumber)
std::string tscKey(const std::string &triggerKeyPayloadToken) const
std::map< std::string, std::string > RecordToKey
~L1O2OTestAnalyzerExt() override
std::vector< std::string > m_recordsToPrint
bool m_printL1TriggerKeyListExt
std::string objectKey(const std::string &recordName, const std::string &payloadToken) const
const RecordToKeyToToken & recordTypeToKeyToTokenMap() const
const std::string & tscKey() const
bool m_printPayloadTokens