23 std::auto_ptr<WriterProxy> writer(factory->create( recordType +
"@Writer" )) ;
24 if( writer.get() == 0 )
26 throw cond::Exception(
"DataWriter: could not create WriterProxy with name "
27 + recordType +
"@Writer" ) ;
60 bool logTransactions )
74 boost::shared_ptr<L1TriggerKeyList> pointer(keyList);
92 bool logTransactions )
100 throw cond::Exception(
"DataWriter: PoolDBOutputService not available."
104 bool iovUpdated =
true ;
118 poolDb->
tagInfo( esRecordName, tagInfo ) ;
143 << poolDb->
tag( esRecordName )
144 <<
" SINCE " << sinceRun ;
157 throw cond::Exception(
"DataWriter: PoolDBOutputService not available."
170 auto iP = iov.
find( runNumber );
171 if( iP != iov.
end() ){
172 payloadToken = (*iP).payloadId;
184 throw cond::Exception(
"DataWriter: PoolDBOutputService not available."
189 poolDb->
tagInfo( recordName, tagInfo ) ;
198 if( keyListToken.empty() )
persistency::Exception Exception
void start(bool readOnly=true)
cond::persistency::Session session() 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)
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 start(bool readOnly=true)
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())
volatile std::atomic< bool > shutdown_flag false
bool updateIOV(const std::string &esRecordName, const std::string &payloadToken, edm::RunNumber_t sinceRun, bool logTransactions=false)
T get(const Candidate &c)