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;
116 throw cond::Exception(
"DataWriter: PoolDBOutputService not available.");
129 if (iP !=
iovs.end()) {
132 session.transaction().commit();
139 throw cond::Exception(
"DataWriter: PoolDBOutputService not available.");
144 return tagInfo.lastInterval.payloadId;
149 if (keyListToken.empty()) {
persistency::Exception Exception
Log< level::Info, true > LogVerbatim
cond::Time_t beginOfTime() const
Transaction & transaction()
std::string lastPayloadToken(const std::string &recordName)
std::string payloadToken(const std::string &recordName, edm::RunNumber_t runNumber)
std::string tag(const std::string &recordName)
bool isNewTagRequest(const std::string &recordName)
std::string writePayload(const edm::EventSetup &setup, const std::string &recordType)
void writeKeyList(L1TriggerKeyList *keyList, edm::RunNumber_t sinceRun=0, bool logTransactions=false)
bool fillLastTriggerKeyList(L1TriggerKeyList &output)
void readObject(const std::string &payloadToken, T &outputObject)
bool appendSinceTime(const std::string &payloadId, cond::Time_t sinceTime, const std::string &recordName)
void createNewIOV(const std::string &firstPayloadId, cond::Time_t firstSinceTime, const std::string &recordName)
bool updateIOV(const std::string &esRecordName, const std::string &payloadToken, edm::RunNumber_t sinceRun, bool logTransactions=false)
bool tagInfo(const std::string &recordName, cond::TagInfo_t &result)
cond::persistency::Session session() const