49 : m_writeL1TriggerKey( iConfig.getParameter< bool >(
"writeL1TriggerKey" )),
50 m_writeConfigData( iConfig.getParameter< bool >(
"writeConfigData" ) ),
51 m_overwriteKeys( iConfig.getParameter< bool >(
"overwriteKeys" ) ),
52 m_logTransactions( iConfig.getParameter<bool>(
"logTransactions" ) ),
53 m_newL1TriggerKeyList( iConfig.getParameter< bool >(
"newL1TriggerKeyList" ) )
88 <<
"Problem getting last L1TriggerKeyList" ;
101 bool triggerKeyOK =
true ;
109 triggerKeyOK = oldKeyList.
token( key->
tscKey() ) ==
"" ;
114 triggerKeyOK =
false ;
121 <<
"Object key for L1TriggerKeyRcd@L1TriggerKey: " 124 "L1TriggerKeyRcd@L1TriggerKey" ) ;
142 +
" already in L1TriggerKeyList" ) ;
149 L1TriggerKey::RecordToKey::const_iterator it =
151 L1TriggerKey::RecordToKey::const_iterator
end =
154 for( ; it !=
end ; ++it )
160 <<
"L1CondDBPayloadWriter: null object key for " 161 << it->first <<
"; skipping this record." ;
166 if( oldKeyList.
token( it->first, it->second ) ==
"" ||
170 if( oldKeyList.
token( it->first, it->second ) !=
"" )
173 <<
"*** Overwriting payload: object key for " 174 << it->first <<
": " << it->second ;
180 << it->first <<
": " << it->second ;
191 <<
" Skipping to next record." ;
193 throwException =
true ;
206 if( !( keyList->
addKey( it->first,
214 "L1CondDBPayloadWriter: subsystem key " 215 + it->second +
" for " + it->first
216 +
" already in L1TriggerKeyList" ) ;
223 <<
"L1CondDBPayloadWriter: object key " 224 << it->second <<
" for " << it->first
225 <<
" already in L1TriggerKeyList" ;
persistency::Exception Exception
virtual char const * what() const
static const std::string kNullKey
const RecordToKey & recordToKeyMap() const
std::string writePayload(const edm::EventSetup &setup, const std::string &recordType)
void writeKeyList(L1TriggerKeyList *keyList, edm::RunNumber_t sinceRun=0, bool logTransactions=false)
bool fillLastTriggerKeyList(L1TriggerKeyList &output)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
L1CondDBPayloadWriter(const edm::ParameterSet &)
std::string token(const std::string &tscKey) const
const std::string & tscKey() const
bool m_newL1TriggerKeyList
bool addKey(const std::string &tscKey, const std::string &payloadToken, bool overwriteKey=false)
void throwException(const std::string &message, const std::string &methodName)