25 std::auto_ptr<WriterProxy> writer(factory->create( recordType +
"@Writer" )) ;
26 if( writer.get() == 0 )
28 throw cond::Exception(
"DataWriter: could not create WriterProxy with name "
29 + recordType +
"@Writer" ) ;
62 bool logTransactions )
76 boost::shared_ptr<L1TriggerKeyList> pointer(keyList);
94 bool logTransactions )
102 throw cond::Exception(
"DataWriter: PoolDBOutputService not available."
106 bool iovUpdated =
true ;
120 poolDb->
tagInfo( esRecordName, tagInfo ) ;
145 << poolDb->
tag( esRecordName )
146 <<
" SINCE " << sinceRun ;
159 throw cond::Exception(
"DataWriter: PoolDBOutputService not available."
172 auto iP = iov.
find( runNumber );
173 if( iP != iov.
end() ){
174 payloadToken = (*iP).payloadId;
186 throw cond::Exception(
"DataWriter: PoolDBOutputService not available."
191 poolDb->
tagInfo( recordName, tagInfo ) ;
200 if( keyListToken.empty() )
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)
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
T get(const Candidate &c)