#include <DataWriterExt.h>
Public Member Functions | |
DataWriterExt () | |
bool | fillLastTriggerKeyList (L1TriggerKeyListExt &output) |
std::string | lastPayloadToken (const std::string &recordName) |
std::string | payloadToken (const std::string &recordName, edm::RunNumber_t runNumber) |
template<class T > | |
void | readObject (const std::string &payloadToken, T &outputObject) |
bool | updateIOV (const std::string &esRecordName, const std::string &payloadToken, edm::RunNumber_t sinceRun, bool logTransactions=false) |
void | writeKeyList (L1TriggerKeyListExt *keyList, edm::RunNumber_t sinceRun=0, bool logTransactions=false) |
std::string | writePayload (const edm::EventSetup &setup, const std::string &recordType) |
~DataWriterExt () | |
Definition at line 36 of file DataWriterExt.h.
l1t::DataWriterExt::DataWriterExt | ( | ) |
Definition at line 13 of file DataWriterExt.cc.
l1t::DataWriterExt::~DataWriterExt | ( | ) |
Definition at line 14 of file DataWriterExt.cc.
bool l1t::DataWriterExt::fillLastTriggerKeyList | ( | L1TriggerKeyListExt & | output | ) |
Definition at line 199 of file DataWriterExt.cc.
References edm::false, lastPayloadToken(), readObject(), AlCaHLTBitMon_QueryRunRegistry::string, and funct::true.
Referenced by L1CondDBPayloadWriterExt::analyze(), L1O2OTestAnalyzerExt::analyze(), L1ConfigOnlineProdBaseExt< TRcd, TData >::getObjectKey(), and L1SubsystemKeysOnlineProdExt::produce().
std::string l1t::DataWriterExt::lastPayloadToken | ( | const std::string & | recordName | ) |
Definition at line 184 of file DataWriterExt.cc.
References edm::Service< T >::isAvailable(), cond::TagInfo_t::lastPayloadToken, cond::service::PoolDBOutputService::tagInfo(), and dumpRecoGeometry_cfg::tagInfo.
Referenced by fillLastTriggerKeyList().
std::string l1t::DataWriterExt::payloadToken | ( | const std::string & | recordName, |
edm::RunNumber_t | runNumber | ||
) |
Definition at line 156 of file DataWriterExt.cc.
References cond::persistency::Transaction::commit(), cond::persistency::IOVProxy::end(), cond::persistency::IOVProxy::find(), o2o::iov, edm::Service< T >::isAvailable(), cond::persistency::Session::readIov(), cond::service::PoolDBOutputService::session(), dataDML::session, cond::persistency::Transaction::start(), AlCaHLTBitMon_QueryRunRegistry::string, cond::service::PoolDBOutputService::tag(), and cond::persistency::Session::transaction().
Referenced by L1O2OTestAnalyzerExt::analyze(), readObject(), updateIOV(), writeKeyList(), and writePayload().
void l1t::DataWriterExt::readObject | ( | const std::string & | payloadToken, |
T & | outputObject | ||
) |
session.transaction().start(true);
session.transaction().commit ();
Definition at line 79 of file DataWriterExt.h.
References cond::persistency::Session::fetchPayload(), cond::service::PoolDBOutputService::forceInit(), edm::Service< T >::isAvailable(), payloadToken(), cond::service::PoolDBOutputService::session(), and dataDML::session.
Referenced by L1CondDBIOVWriterExt::analyze(), and fillLastTriggerKeyList().
bool l1t::DataWriterExt::updateIOV | ( | const std::string & | esRecordName, |
const std::string & | payloadToken, | ||
edm::RunNumber_t | sinceRun, | ||
bool | logTransactions = false |
||
) |
Definition at line 94 of file DataWriterExt.cc.
References cond::service::PoolDBOutputService::appendSinceTime(), cond::service::PoolDBOutputService::beginOfTime(), cond::service::PoolDBOutputService::createNewIOV(), cond::service::PoolDBOutputService::endOfTime(), edm::false, edm::Service< T >::isAvailable(), cond::service::PoolDBOutputService::isNewTagRequest(), cond::TagInfo_t::lastInterval, cond::TagInfo_t::lastPayloadToken, payloadToken(), cond::service::PoolDBOutputService::tag(), cond::service::PoolDBOutputService::tagInfo(), dumpRecoGeometry_cfg::tagInfo, and funct::true.
Referenced by L1CondDBIOVWriterExt::analyze(), and writeKeyList().
void l1t::DataWriterExt::writeKeyList | ( | L1TriggerKeyListExt * | keyList, |
edm::RunNumber_t | sinceRun = 0 , |
||
bool | logTransactions = false |
||
) |
tr.start( false );
tr.commit ();
Definition at line 61 of file DataWriterExt.cc.
References cond::service::PoolDBOutputService::forceInit(), edm::Service< T >::isAvailable(), payloadToken(), cond::service::PoolDBOutputService::session(), dataDML::session, cond::persistency::Session::storePayload(), AlCaHLTBitMon_QueryRunRegistry::string, cond::persistency::Session::transaction(), and updateIOV().
Referenced by L1CondDBPayloadWriterExt::analyze().
std::string l1t::DataWriterExt::writePayload | ( | const edm::EventSetup & | setup, |
const std::string & | recordType | ||
) |
cond::persistency::TransactionScope tr(poolDb->session().transaction());
Definition at line 19 of file DataWriterExt.cc.
References reco::get(), edm::Service< T >::isAvailable(), payloadToken(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by L1CondDBPayloadWriterExt::analyze().