|
|
Go to the documentation of this file.
17 std::unique_ptr<WriterProxy>
writer(factory->create(recordType +
"@Writer"));
18 if (
writer.get() ==
nullptr) {
19 throw cond::Exception(
"DataWriter: could not create WriterProxy with name " + recordType +
"@Writer");
24 throw cond::Exception(
"DataWriter: PoolDBOutputService not available.");
52 throw cond::Exception(
"DataWriter: PoolDBOutputService not available.");
61 std::shared_ptr<L1TriggerKeyListExt> pointer(keyList);
76 bool logTransactions) {
81 throw cond::Exception(
"DataWriter: PoolDBOutputService not available.");
84 bool iovUpdated =
true;
95 sinceRun =
tagInfo.lastInterval.since;
108 edm::LogVerbatim(
"L1-O2O") << esRecordName <<
" " << poolDb->
tag(esRecordName) <<
" SINCE " << sinceRun;
117 throw cond::Exception(
"DataWriter: PoolDBOutputService not available.");
130 if (iP != iovs.end()) {
140 throw cond::Exception(
"DataWriter: PoolDBOutputService not available.");
145 return tagInfo.lastInterval.payloadId;
150 if (keyListToken.empty()) {
std::string tag(const std::string &recordName)
std::string payloadToken(const std::string &recordName, edm::RunNumber_t runNumber)
cond::Time_t beginOfTime() const
bool tagInfo(const std::string &recordName, cond::TagInfo_t &result)
void appendSinceTime(const T *payloadObj, cond::Time_t sinceTime, const std::string &recordName)
void createNewIOV(const T *firstPayloadObj, cond::Time_t firstSinceTime, cond::Time_t, const std::string &recordName)
cond::persistency::Session session() const
std::string lastPayloadToken(const std::string &recordName)
IOVProxy readIov(const std::string &tag)
bool fillLastTriggerKeyList(L1TriggerKeyListExt &output)
persistency::Exception Exception
cond::Hash storePayload(const T &payload, const boost::posix_time::ptime &creationTime=boost::posix_time::microsec_clock::universal_time())
Transaction & transaction()
void start(bool readOnly=true)
std::string writePayload(const edm::EventSetup &setup, const std::string &recordType)
bool isNewTagRequest(const std::string &recordName)
bool updateIOV(const std::string &esRecordName, const std::string &payloadToken, edm::RunNumber_t sinceRun, bool logTransactions=false)
void readObject(const std::string &payloadToken, T &outputObject)
void writeKeyList(L1TriggerKeyListExt *keyList, edm::RunNumber_t sinceRun=0, bool logTransactions=false)