#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 36 of file DataWriter.h.
l1t::DataWriter::DataWriter | ( | ) |
Definition at line 15 of file DataWriter.cc.
l1t::DataWriter::~DataWriter | ( | ) |
Definition at line 16 of file DataWriter.cc.
bool l1t::DataWriter::fillLastTriggerKeyList | ( | L1TriggerKeyList & | output | ) |
Definition at line 196 of file DataWriter.cc.
References edm::false, lastPayloadToken(), readObject(), AlCaHLTBitMon_QueryRunRegistry::string, and funct::true.
Referenced by L1CondDBPayloadWriter::analyze(), L1O2OTestAnalyzer::analyze(), and L1ConfigOnlineProdBase< TRcd, TData >::getObjectKey().
std::string l1t::DataWriter::lastPayloadToken | ( | const std::string & | recordName | ) |
Definition at line 181 of file DataWriter.cc.
References edm::hlt::Exception, edm::Service< T >::isAvailable(), cond::TagInfo_t::lastPayloadToken, 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 153 of file DataWriter.cc.
References cond::persistency::Transaction::commit(), cond::persistency::IOVProxy::end(), edm::hlt::Exception, cond::persistency::IOVProxy::find(), o2o::iov, edm::Service< T >::isAvailable(), cond::persistency::Session::readIov(), cond::service::PoolDBOutputService::session(), python.CommonUtils::session, cond::persistency::Transaction::start(), AlCaHLTBitMon_QueryRunRegistry::string, cond::service::PoolDBOutputService::tag(), and cond::persistency::Session::transaction().
Referenced by L1O2OTestAnalyzer::analyze(), readObject(), updateIOV(), writeKeyList(), and writePayload().
void l1t::DataWriter::readObject | ( | const std::string & | payloadToken, |
T & | outputObject | ||
) |
Definition at line 79 of file DataWriter.h.
References cond::persistency::Transaction::commit(), edm::hlt::Exception, cond::persistency::Session::fetchPayload(), edm::Service< T >::isAvailable(), payloadToken(), cond::service::PoolDBOutputService::session(), python.CommonUtils::session, cond::persistency::Transaction::start(), and cond::persistency::Session::transaction().
Referenced by L1CondDBIOVWriter::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 91 of file DataWriter.cc.
References cond::service::PoolDBOutputService::appendSinceTime(), cond::service::PoolDBOutputService::beginOfTime(), cond::service::PoolDBOutputService::createNewIOV(), cond::service::PoolDBOutputService::endOfTime(), edm::hlt::Exception, edm::false, edm::Service< T >::isAvailable(), cond::service::PoolDBOutputService::isNewTagRequest(), cond::TagInfo_t::lastInterval, cond::TagInfo_t::lastPayloadToken, payloadToken(), cond::service::PoolDBOutputService::tag(), dumpRecoGeometry_cfg::tagInfo, cond::service::PoolDBOutputService::tagInfo(), and funct::true.
Referenced by CaloConfigWriter::analyze(), L1TCaloParamsWriter::analyze(), CaloParamsWriter::analyze(), L1CondDBIOVWriter::analyze(), and writeKeyList().
void l1t::DataWriter::writeKeyList | ( | L1TriggerKeyList * | keyList, |
edm::RunNumber_t | sinceRun = 0 , |
||
bool | logTransactions = false |
||
) |
Definition at line 60 of file DataWriter.cc.
References edm::hlt::Exception, edm::Service< T >::isAvailable(), payloadToken(), cond::service::PoolDBOutputService::session(), python.CommonUtils::session, cond::persistency::TransactionScope::start(), 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 21 of file DataWriter.cc.
References edm::hlt::Exception, reco::get(), edm::Service< T >::isAvailable(), payloadToken(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by CaloConfigWriter::analyze(), L1TCaloParamsWriter::analyze(), CaloParamsWriter::analyze(), and L1CondDBPayloadWriter::analyze().