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" ) ;
100 +
" already in L1TriggerKeyListExt" ) ;
107 L1TriggerKeyExt::RecordToKey::const_iterator it =
109 L1TriggerKeyExt::RecordToKey::const_iterator
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." ;
151 throwException =
true ;
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
void analyze(const edm::Event &, const edm::EventSetup &) override
bool fillLastTriggerKeyList(L1TriggerKeyListExt &output)
static const std::string kNullKey
char const * what() const override
bool m_newL1TriggerKeyListExt
void writeKeyList(L1TriggerKeyListExt *keyList, edm::RunNumber_t sinceRun=0, bool logTransactions=false)
const RecordToKey & recordToKeyMap() const
l1t::DataWriterExt m_writer
bool m_writeL1TriggerKeyExt
L1CondDBPayloadWriterExt(const edm::ParameterSet &)
std::string writePayload(const edm::EventSetup &setup, const std::string &recordType)
bool addKey(const std::string &tscKey, const std::string &payloadToken, bool overwriteKey=false)
~L1CondDBPayloadWriterExt() override
const std::string & tscKey() const
std::string token(const std::string &tscKey) const
void throwException(const std::string &message, const std::string &methodName)