|
|
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.");
60 std::shared_ptr<L1TriggerKeyList> pointer(keyList);
75 bool logTransactions) {
80 throw cond::Exception(
"DataWriter: PoolDBOutputService not available.");
83 bool iovUpdated =
true;
94 sinceRun =
tagInfo.lastInterval.since;
107 edm::LogVerbatim(
"L1-O2O") << esRecordName <<
" " << poolDb->
tag(esRecordName) <<
" SINCE " << sinceRun;
116 throw cond::Exception(
"DataWriter: PoolDBOutputService not available.");
129 if (iP != iovs.end()) {
139 throw cond::Exception(
"DataWriter: PoolDBOutputService not available.");
144 return tagInfo.lastInterval.payloadId;
149 if (keyListToken.empty()) {
std::string tag(const std::string &recordName)
bool updateIOV(const std::string &esRecordName, const std::string &payloadToken, edm::RunNumber_t sinceRun, bool logTransactions=false)
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)
std::string lastPayloadToken(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
void writeKeyList(L1TriggerKeyList *keyList, edm::RunNumber_t sinceRun=0, bool logTransactions=false)
std::string payloadToken(const std::string &recordName, edm::RunNumber_t runNumber)
IOVProxy readIov(const std::string &tag)
std::string writePayload(const edm::EventSetup &setup, const std::string &recordType)
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)
void readObject(const std::string &payloadToken, T &outputObject)
bool fillLastTriggerKeyList(L1TriggerKeyList &output)
bool isNewTagRequest(const std::string &recordName)