#include <DataWriterExt.h>
Public Member Functions | |
DataWriterExt () | |
DataWriterExt (const std::string &) | |
bool | fillLastTriggerKeyList (L1TriggerKeyListExt &output) |
WriterProxy * | getWriter () |
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) |
std::string | writePayload (const edm::EventSetup &setup, const std::string &recordType) |
~DataWriterExt () | |
Private Attributes | |
WriterProxyPtr | writer_ |
Definition at line 37 of file DataWriterExt.h.
l1t::DataWriterExt::DataWriterExt | ( | ) |
Definition at line 15 of file DataWriterExt.cc.
l1t::DataWriterExt::DataWriterExt | ( | const std::string & | recordType | ) |
Definition at line 19 of file DataWriterExt.cc.
References get, Skims_PA_cff::name, and writer_.
l1t::DataWriterExt::~DataWriterExt | ( | ) |
Definition at line 29 of file DataWriterExt.cc.
bool l1t::DataWriterExt::fillLastTriggerKeyList | ( | L1TriggerKeyListExt & | output | ) |
Definition at line 182 of file DataWriterExt.cc.
References lastPayloadToken(), readObject(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by L1CondDBIOVWriterExt::analyze(), L1CondDBPayloadWriterExt::analyze(), L1O2OTestAnalyzerExt::analyze(), L1ConfigOnlineProdBaseExt< L1TCaloParamsO2ORcd, l1t::CaloParams >::getObjectKey(), and L1SubsystemKeysOnlineProdExt::produce().
|
inline |
std::string l1t::DataWriterExt::lastPayloadToken | ( | const std::string & | recordName | ) |
Definition at line 171 of file DataWriterExt.cc.
References edm::Service< T >::isAvailable(), align_cfg::recordName, dumpRecoGeometry_cfg::tagInfo, and cond::service::PoolDBOutputService::tagInfo().
Referenced by fillLastTriggerKeyList().
std::string l1t::DataWriterExt::payloadToken | ( | const std::string & | recordName, |
edm::RunNumber_t | runNumber | ||
) |
Definition at line 148 of file DataWriterExt.cc.
References cond::persistency::Transaction::commit(), edm::Service< T >::isAvailable(), cond::persistency::Session::readIov(), align_cfg::recordName, convertSQLiteXML::runNumber, cond::persistency::IOVProxy::selectAll(), cond::service::PoolDBOutputService::session(), cond::persistency::Transaction::start(), AlCaHLTBitMon_QueryRunRegistry::string, cond::service::PoolDBOutputService::tag(), and cond::persistency::Session::transaction().
Referenced by readObject(), updateIOV(), writeKeyList(), and writePayload().
void l1t::DataWriterExt::readObject | ( | const std::string & | payloadToken, |
T & | outputObject | ||
) |
Definition at line 81 of file DataWriterExt.h.
References cond::persistency::Transaction::commit(), cond::persistency::Session::fetchPayload(), cond::service::PoolDBOutputService::forceInit(), edm::Service< T >::isAvailable(), payloadToken(), cond::service::PoolDBOutputService::session(), cond::persistency::Transaction::start(), and cond::persistency::Session::transaction().
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 107 of file DataWriterExt.cc.
References cond::service::PoolDBOutputService::appendSinceTime(), cond::service::PoolDBOutputService::beginOfTime(), cond::service::PoolDBOutputService::createNewIOV(), edm::Service< T >::isAvailable(), cond::service::PoolDBOutputService::isNewTagRequest(), payloadToken(), cond::service::PoolDBOutputService::tag(), dumpRecoGeometry_cfg::tagInfo, and cond::service::PoolDBOutputService::tagInfo().
Referenced by L1CondDBIOVWriterExt::analyze(), and writeKeyList().
void l1t::DataWriterExt::writeKeyList | ( | L1TriggerKeyListExt * | keyList, |
edm::RunNumber_t | sinceRun = 0 , |
||
bool | logTransactions = false |
||
) |
Definition at line 84 of file DataWriterExt.cc.
References cond::persistency::Transaction::commit(), cond::service::PoolDBOutputService::forceInit(), cond::persistency::Transaction::isActive(), edm::Service< T >::isAvailable(), payloadToken(), cond::service::PoolDBOutputService::session(), cond::persistency::Transaction::start(), 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 | ) |
Definition at line 31 of file DataWriterExt.cc.
References edm::Service< T >::isAvailable(), Skims_PA_cff::name, payloadToken(), singleTopDQM_cfi::setup, AlCaHLTBitMon_QueryRunRegistry::string, and writer_.
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 49 of file DataWriterExt.cc.
References get, edm::Service< T >::isAvailable(), eostools::move(), Skims_PA_cff::name, payloadToken(), singleTopDQM_cfi::setup, AlCaHLTBitMon_QueryRunRegistry::string, convertToRaw::writer, and writer_.
|
private |
Definition at line 75 of file DataWriterExt.h.
Referenced by DataWriterExt(), getWriter(), and writePayload().