#include <DataWriter.h>
Public Member Functions | |
DataWriter () | |
bool | fillLastTriggerKeyList (L1TriggerKeyList &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 (L1TriggerKeyList *keyList, edm::RunNumber_t sinceRun=0, bool logTransactions=false) |
std::string | writePayload (const edm::EventSetup &setup, const std::string &recordType) |
~DataWriter () | |
Definition at line 35 of file DataWriter.h.
l1t::DataWriter::DataWriter | ( | ) |
Definition at line 12 of file DataWriter.cc.
l1t::DataWriter::~DataWriter | ( | ) |
Definition at line 13 of file DataWriter.cc.
bool l1t::DataWriter::fillLastTriggerKeyList | ( | L1TriggerKeyList & | output | ) |
Definition at line 147 of file DataWriter.cc.
References lastPayloadToken(), convertSQLitetoXML_cfg::output, readObject(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by L1CondDBIOVWriter::analyze(), L1CondDBPayloadWriter::analyze(), L1O2OTestAnalyzer::analyze(), L1GtRunSettingsViewer::analyze(), L1ConfigOnlineProdBase< L1HtMissScaleRcd, L1CaloEtScale >::getObjectKey(), and L1SubsystemKeysOnlineProd::produce().
std::string l1t::DataWriter::lastPayloadToken | ( | const std::string & | recordName | ) |
Definition at line 136 of file DataWriter.cc.
References edm::Service< T >::isAvailable(), align_cfg::recordName, dumpRecoGeometry_cfg::tagInfo, and cond::service::PoolDBOutputService::tagInfo().
Referenced by fillLastTriggerKeyList().
std::string l1t::DataWriter::payloadToken | ( | const std::string & | recordName, |
edm::RunNumber_t | runNumber | ||
) |
Definition at line 113 of file DataWriter.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::DataWriter::readObject | ( | const std::string & | payloadToken, |
T & | outputObject | ||
) |
Definition at line 72 of file DataWriter.h.
References cond::persistency::Transaction::commit(), cond::persistency::Session::fetchPayload(), edm::Service< T >::isAvailable(), payloadToken(), cond::service::PoolDBOutputService::session(), cond::persistency::Transaction::start(), and cond::persistency::Session::transaction().
Referenced by L1CondDBIOVWriter::analyze(), L1GtRunSettingsViewer::analyze(), and fillLastTriggerKeyList().
bool l1t::DataWriter::updateIOV | ( | const std::string & | esRecordName, |
const std::string & | payloadToken, | ||
edm::RunNumber_t | sinceRun, | ||
bool | logTransactions = false |
||
) |
Definition at line 72 of file DataWriter.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 L1TCaloParamsWriter::analyze(), CaloParamsWriter::analyze(), CaloConfigWriter::analyze(), L1CondDBIOVWriter::analyze(), and writeKeyList().
void l1t::DataWriter::writeKeyList | ( | L1TriggerKeyList * | keyList, |
edm::RunNumber_t | sinceRun = 0 , |
||
bool | logTransactions = false |
||
) |
tr.start( false );
Definition at line 49 of file DataWriter.cc.
References edm::Service< T >::isAvailable(), payloadToken(), cond::service::PoolDBOutputService::session(), cond::persistency::Session::storePayload(), AlCaHLTBitMon_QueryRunRegistry::string, cond::persistency::Session::transaction(), and updateIOV().
Referenced by L1CondDBPayloadWriter::analyze().
std::string l1t::DataWriter::writePayload | ( | const edm::EventSetup & | setup, |
const std::string & | recordType | ||
) |
Definition at line 15 of file DataWriter.cc.
References get, edm::Service< T >::isAvailable(), payloadToken(), cond::service::PoolDBOutputService::session(), singleTopDQM_cfi::setup, AlCaHLTBitMon_QueryRunRegistry::string, cond::persistency::Session::transaction(), and convertToRaw::writer.
Referenced by L1TCaloParamsWriter::analyze(), CaloConfigWriter::analyze(), CaloParamsWriter::analyze(), and L1CondDBPayloadWriter::analyze().