54 : m_writeL1TriggerKeyExt(iConfig.getParameter<
bool>(
"writeL1TriggerKeyExt")),
55 m_writeConfigData(iConfig.getParameter<
bool>(
"writeConfigData")),
56 m_overwriteKeys(iConfig.getParameter<
bool>(
"overwriteKeys")),
57 m_logTransactions(iConfig.getParameter<
bool>(
"logTransactions")),
58 m_newL1TriggerKeyListExt(iConfig.getParameter<
bool>(
"newL1TriggerKeyListExt")),
61 for (
const auto& sysWriter : iConfig.
getParameter<std::vector<std::string>>(
"sysWriters")) {
64 writer->getWriter()->setToken(cc);
83 edm::LogError(
"L1-O2O") <<
"Problem getting last L1TriggerKeyListExt";
93 bool triggerKeyOK =
true;
101 triggerKeyOK =
false;
106 edm::LogVerbatim(
"L1-O2O") <<
"Object key for L1TriggerKeyExtRcd@L1TriggerKeyExt: " <<
key.tscKey()
107 <<
" (about to run writePayload)";
124 throw cond::Exception(
"L1CondDBPayloadWriter: TSC key " +
key.tscKey() +
" already in L1TriggerKeyListExt");
143 for (
const auto& it :
key.recordToKeyMap()) {
152 edm::LogVerbatim(
"L1-O2O") <<
"L1CondDBPayloadWriter: null object key for " << it.first
153 <<
"; skipping this record.";
160 if (!oldKeyList.
token(it.first, it.second).empty()) {
161 edm::LogVerbatim(
"L1-O2O") <<
"*** Overwriting payload: object key for " << it.first <<
": " << it.second;
163 edm::LogVerbatim(
"L1-O2O") <<
"object key for " << it.first <<
": " << it.second;
175 if (!
token.empty()) {
183 <<
"subsystem key " << it.second <<
" for " << it.first <<
" already in L1TriggerKeyListExt";
187 edm::LogVerbatim(
"L1-O2O") <<
"L1CondDBPayloadWriter: object key " << it.second <<
" for " << it.first
188 <<
" already in L1TriggerKeyListExt";
persistency::Exception Exception
void analyze(const edm::Event &, const edm::EventSetup &) override
Log< level::Info, true > LogVerbatim
bool fillLastTriggerKeyList(L1TriggerKeyListExt &output)
T getParameter(std::string const &) const
static const std::string kNullKey
Log< level::Error, false > LogError
bool m_newL1TriggerKeyListExt
void writeKeyList(L1TriggerKeyListExt *keyList, edm::RunNumber_t sinceRun=0, bool logTransactions=false)
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
The Signals That Services Can Subscribe To This is based on ActivityRegistry and is current per Services can connect to the signals distributed by the ActivityRegistry in order to monitor the activity of the application Each possible callback has some defined which we here list in angle e< void, edm::EventID const &, edm::Timestamp const & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
RecordToWriterMap m_rcdToWriterMap
std::unique_ptr< l1t::DataWriterExt > DataWriterExtPtr
#define DEFINE_FWK_MODULE(type)
bool getData(T &iHolder) const
bool m_writeL1TriggerKeyExt
L1CondDBPayloadWriterExt(const edm::ParameterSet &)
std::map< std::string, DataWriterExtPtr > RecordToWriterMap
Log< level::Info, false > LogInfo
std::string token(const std::string &tscKey) const
bool addKey(const std::string &tscKey, const std::string &payloadToken, bool overwriteKey=false)
~L1CondDBPayloadWriterExt() override
std::string writePayload(const edm::EventSetup &setup)
char const * what() const noexcept override
void throwException(const std::string &message, const std::string &methodName)
edm::ESGetToken< L1TriggerKeyExt, L1TriggerKeyExtRcd > theL1TriggerKeyExtToken_