57 virtual void endJob()
override ;
118 <<
"Problem getting last L1TriggerKeyList" ;
124 L1TriggerKeyList::KeyToToken::const_iterator iTSCKey =
126 L1TriggerKeyList::KeyToToken::const_iterator eTSCKey =
128 for( ; iTSCKey != eTSCKey ; ++iTSCKey )
139 L1TriggerKeyList::RecordToKeyToToken::const_iterator iRec =
141 L1TriggerKeyList::RecordToKeyToToken::const_iterator eRec =
143 for( ; iRec != eRec ; ++iRec )
146 std::cout <<
"For record@type " << iRec->first <<
", found " 147 << keyTokenMap.size() <<
" keys:" << std::endl ;
149 L1TriggerKeyList::KeyToToken::const_iterator iKey = keyTokenMap.begin();
150 L1TriggerKeyList::KeyToToken::const_iterator eKey = keyTokenMap.end() ;
151 for( ; iKey != eKey ; ++iKey )
173 << std::endl << std::endl ;
175 std::cout <<
"Current subsystem keys:" << std::endl ;
191 << std::endl << std::endl ;
193 std::cout <<
"Object keys:" << std::endl ;
195 L1TriggerKey::RecordToKey::const_iterator iRec = recKeyMap.begin() ;
196 L1TriggerKey::RecordToKey::const_iterator eRec = recKeyMap.end() ;
197 for( ; iRec != eRec ; ++iRec )
199 std::cout << iRec->first <<
" " << iRec->second << std::endl ;
204 std::cout <<
"No L1TriggerKey found." << std::endl ;
218 <<
"Problem getting last L1TriggerKeyList" ;
222 unsigned long long run = iEvent.
id().
run() ;
223 std::stringstream ss ;
229 std::cout << std::endl <<
"Run Settings keys:" << std::endl ;
231 std::vector< std::string >::const_iterator iRec =
233 std::vector< std::string >::const_iterator iEnd =
235 for( ; iRec != iEnd ; ++iRec )
241 if( *iRec ==
"L1TriggerKeyRcd" )
243 key = pList.
tscKey( payloadToken ) ;
247 key = pList.
objectKey( *iRec, payloadToken ) ;
259 replace( key.begin(), key.end(),
' ',
'?' ) ;
260 log +=
" " + *iRec +
"Key=" +
key ;
263 std::cout << std::endl << log << std::endl ;
std::map< std::string, std::string > RecordToKey
#define DEFINE_FWK_MODULE(type)
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
virtual void beginJob() override
const RecordToKey & recordToKeyMap() const
const RecordToKeyToToken & recordTypeToKeyToTokenMap() const
std::string objectKey(const std::string &recordName, const std::string &payloadToken) const
virtual void analyze(const edm::Event &, const edm::EventSetup &) override
bool fillLastTriggerKeyList(L1TriggerKeyList &output)
std::vector< std::string > m_recordsToPrint
bool m_printL1TriggerKeyList
const KeyToToken & tscKeyToTokenMap() const
const std::string & tscKey() const
virtual void endJob() override
L1O2OTestAnalyzer(const edm::ParameterSet &)
const std::string & subsystemKey(L1Subsystems subsystem) const
bool m_printPayloadTokens