11 : m_writeL1TriggerKeyExt( iConfig.getParameter< bool >(
"writeL1TriggerKeyExt" )),
12 m_writeConfigData( iConfig.getParameter< bool >(
"writeConfigData" ) ),
13 m_overwriteKeys( iConfig.getParameter< bool >(
"overwriteKeys" ) ),
14 m_logTransactions( iConfig.getParameter<bool>(
"logTransactions" ) ),
15 m_newL1TriggerKeyListExt( iConfig.getParameter< bool >(
"newL1TriggerKeyListExt" ) )
46 <<
"Problem getting last L1TriggerKeyListExt" ;
59 bool triggerKeyOK =
true ;
67 triggerKeyOK = oldKeyList.token(
key->tscKey() ) ==
"" ;
72 triggerKeyOK =
false ;
79 <<
"Object key for L1TriggerKeyExtRcd@L1TriggerKeyExt: "
82 "L1TriggerKeyExtRcd@L1TriggerKeyExt" ) ;
94 if( !( keyList->addKey(
key->tscKey(),
100 +
" already in L1TriggerKeyListExt" ) ;
107 L1TriggerKeyExt::RecordToKey::const_iterator it =
108 key->recordToKeyMap().begin() ;
109 L1TriggerKeyExt::RecordToKey::const_iterator
end =
110 key->recordToKeyMap().end() ;
112 for( ; it !=
end ; ++it )
118 <<
"L1CondDBPayloadWriter: null object key for "
119 << it->first <<
"; skipping this record." ;
124 if( oldKeyList.token( it->first, it->second ) ==
"" ||
128 if( oldKeyList.token( it->first, it->second ) !=
"" )
131 <<
"*** Overwriting payload: object key for "
132 << it->first <<
": " << it->second ;
138 << it->first <<
": " << it->second ;
149 <<
" Skipping to next record." ;
164 if( !( keyList->addKey( it->first,
172 "L1CondDBPayloadWriter: subsystem key "
173 + it->second +
" for " + it->first
174 +
" already in L1TriggerKeyListExt" ) ;
181 <<
"L1CondDBPayloadWriter: object key "
182 << it->second <<
" for " << it->first
183 <<
" already in L1TriggerKeyListExt" ;
persistency::Exception Exception
virtual char const * what() const
virtual void analyze(const edm::Event &, const edm::EventSetup &)
bool fillLastTriggerKeyList(L1TriggerKeyListExt &output)
static const std::string kNullKey
bool m_newL1TriggerKeyListExt
void writeKeyList(L1TriggerKeyListExt *keyList, edm::RunNumber_t sinceRun=0, bool logTransactions=false)
~L1CondDBPayloadWriterExt()
l1t::DataWriterExt m_writer
bool m_writeL1TriggerKeyExt
L1CondDBPayloadWriterExt(const edm::ParameterSet &)
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
std::string writePayload(const edm::EventSetup &setup, const std::string &recordType)
volatile std::atomic< bool > shutdown_flag false
void throwException(const std::string &message, const std::string &methodName)