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;
98 triggerKeyOK = oldKeyList.token(
key.tscKey()).
empty();
101 triggerKeyOK =
false;
106 edm::LogVerbatim(
"L1-O2O") <<
"Object key for L1TriggerKeyExtRcd@L1TriggerKeyExt: " <<
key.tscKey()
107 <<
" (about to run writePayload)";
108 token = m_writer.writePayload(iSetup);
121 if (m_writeL1TriggerKeyExt) {
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.";
158 if (oldKeyList.token(it.first, it.second).empty() ||
m_overwriteKeys) {
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
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::EventIDconst &, edm::Timestampconst & > We also list in braces which AR_WATCH_USING_METHOD_ is used for those or
#define DEFINE_FWK_MODULE(type)
static const std::string kNullKey
Log< level::Error, false > LogError
bool m_newL1TriggerKeyListExt
bool getData(T &iHolder) const
ConsumesCollector consumesCollector()
Use a ConsumesCollector to gather consumes information from helper functions.
RecordToWriterMap m_rcdToWriterMap
tuple key
prepare the HTCondor submission files and eventually submit them
char const * what() const noexceptoverride
std::unique_ptr< l1t::DataWriterExt > DataWriterExtPtr
bool m_writeL1TriggerKeyExt
L1CondDBPayloadWriterExt(const edm::ParameterSet &)
std::map< std::string, DataWriterExtPtr > RecordToWriterMap
Log< level::Info, false > LogInfo
T getParameter(std::string const &) const
~L1CondDBPayloadWriterExt() override
void throwException(const std::string &message, const std::string &methodName)
edm::ESGetToken< L1TriggerKeyExt, L1TriggerKeyExtRcd > theL1TriggerKeyExtToken_