#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 35 of file DataWriterExt.h.
l1t::DataWriterExt::DataWriterExt | ( | ) |
Definition at line 12 of file DataWriterExt.cc.
l1t::DataWriterExt::~DataWriterExt | ( | ) |
Definition at line 13 of file DataWriterExt.cc.
bool l1t::DataWriterExt::fillLastTriggerKeyList | ( | L1TriggerKeyListExt & | output | ) |
Definition at line 148 of file DataWriterExt.cc.
References lastPayloadToken(), readObject(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by L1CondDBPayloadWriterExt::analyze(), L1CondDBIOVWriterExt::analyze(), L1O2OTestAnalyzerExt::analyze(), L1ConfigOnlineProdBaseExt< TRcd, TData >::getObjectKey(), and L1SubsystemKeysOnlineProdExt::produce().
std::string l1t::DataWriterExt::lastPayloadToken | ( | const std::string & | recordName | ) |
Definition at line 137 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 114 of file DataWriterExt.cc.
References cond::persistency::Transaction::commit(), cond::persistency::IOVProxy::end(), cond::persistency::IOVProxy::find(), edm::Service< T >::isAvailable(), cond::persistency::Session::readIov(), cond::service::PoolDBOutputService::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 72 of file DataWriterExt.h.
References cond::persistency::Session::fetchPayload(), cond::service::PoolDBOutputService::forceInit(), edm::Service< T >::isAvailable(), payloadToken(), and cond::service::PoolDBOutputService::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 73 of file DataWriterExt.cc.
References cond::service::PoolDBOutputService::appendSinceTime(), cond::service::PoolDBOutputService::beginOfTime(), cond::service::PoolDBOutputService::createNewIOV(), cond::service::PoolDBOutputService::endOfTime(), 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(), and dumpRecoGeometry_cfg::tagInfo.
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 49 of file DataWriterExt.cc.
References cond::service::PoolDBOutputService::forceInit(), edm::Service< T >::isAvailable(), payloadToken(), cond::service::PoolDBOutputService::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 15 of file DataWriterExt.cc.
References timingPdfMaker::get, edm::Service< T >::isAvailable(), payloadToken(), AlCaHLTBitMon_QueryRunRegistry::string, and cscNeutronWriter_cfi::writer.
Referenced by L1CondDBPayloadWriterExt::analyze().