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" ) ;
136 if( !( keyList->addKey(
key->tscKey(),
142 +
" already in L1TriggerKeyList" ) ;
149 L1TriggerKey::RecordToKey::const_iterator it =
150 key->recordToKeyMap().begin() ;
151 L1TriggerKey::RecordToKey::const_iterator
end =
152 key->recordToKeyMap().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." ;
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
std::string writePayload(const edm::EventSetup &setup, const std::string &recordType)
void writeKeyList(L1TriggerKeyList *keyList, edm::RunNumber_t sinceRun=0, bool logTransactions=false)
string key
FastSim: produces sample of signal events, overlayed with premixed minbias events.
bool fillLastTriggerKeyList(L1TriggerKeyList &output)
virtual void analyze(const edm::Event &, const edm::EventSetup &)
L1CondDBPayloadWriter(const edm::ParameterSet &)
bool m_newL1TriggerKeyList
volatile std::atomic< bool > shutdown_flag false
void throwException(const std::string &message, const std::string &methodName)