23 std::unique_ptr<WriterProxy>
writer(factory->create( recordType +
"@Writer" )) ;
26 throw cond::Exception(
"DataWriter: could not create WriterProxy with name " 27 + recordType +
"@Writer" ) ;
63 bool logTransactions )
77 std::shared_ptr<L1TriggerKeyList> pointer(keyList);
96 bool logTransactions )
104 throw cond::Exception(
"DataWriter: PoolDBOutputService not available." 108 bool iovUpdated =
true ;
122 poolDb->
tagInfo( esRecordName, tagInfo ) ;
147 << poolDb->
tag( esRecordName )
148 <<
" SINCE " << sinceRun ;
161 throw cond::Exception(
"DataWriter: PoolDBOutputService not available." 174 auto iP = iov.
find( runNumber );
175 if( iP != iov.
end() ){
176 payloadToken = (*iP).payloadId;
188 throw cond::Exception(
"DataWriter: PoolDBOutputService not available." 193 poolDb->
tagInfo( recordName, tagInfo ) ;
202 if( keyListToken.empty() )
persistency::Exception Exception
void start(bool readOnly=true)
cond::persistency::Session session() const
def setup(process, global_tag, zero_tesla=False)
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)
cond::ValidityInterval lastInterval
void appendSinceTime(T *payloadObj, cond::Time_t sinceTime, const std::string &recordName, bool withlogging=false)
IOVProxy readIov(const std::string &tag, bool full=false)
bool isNewTagRequest(const std::string &recordName)
cond::Time_t beginOfTime() const
Iterator find(cond::Time_t time)
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 createNewIOV(T *firstPayloadObj, cond::Time_t firstSinceTime, cond::Time_t firstTillTime, const std::string &recordName, bool withlogging=false)
void readObject(const std::string &payloadToken, T &outputObject)
void tagInfo(const std::string &recordName, cond::TagInfo_t &result)
std::string lastPayloadToken
cond::Time_t endOfTime() const
cond::Hash storePayload(const T &payload, const boost::posix_time::ptime &creationTime=boost::posix_time::microsec_clock::universal_time())
bool updateIOV(const std::string &esRecordName, const std::string &payloadToken, edm::RunNumber_t sinceRun, bool logTransactions=false)
T get(const Candidate &c)