#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 39 of file DataWriter.h.
l1t::DataWriter::DataWriter | ( | ) |
Definition at line 13 of file DataWriter.cc.
l1t::DataWriter::~DataWriter | ( | ) |
Definition at line 14 of file DataWriter.cc.
bool l1t::DataWriter::fillLastTriggerKeyList | ( | L1TriggerKeyList & | output | ) |
Definition at line 210 of file DataWriter.cc.
References funct::false, lastPayloadToken(), readObject(), 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 195 of file DataWriter.cc.
References edm::hlt::Exception, edm::Service< T >::isAvailable(), cond::TagInfo::lastPayloadToken, 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::DbScopedTransaction::commit(), cond::IOVProxy::end(), edm::hlt::Exception, cond::IOVProxy::find(), cond::MetaData::getToken(), cond::MetaData::hasTag(), o2o::iov, edm::Service< T >::isAvailable(), cond::IOVProxy::load(), python.CommonUtils::session, cond::service::PoolDBOutputService::session(), cond::DbScopedTransaction::start(), and cond::service::PoolDBOutputService::tag().
Referenced by L1O2OTestAnalyzer::analyze(), readObject(), updateIOV(), writeKeyList(), and writePayload().
void l1t::DataWriter::readObject | ( | const std::string & | payloadToken, |
T & | outputObject | ||
) |
Definition at line 82 of file DataWriter.h.
References cond::DbScopedTransaction::commit(), edm::hlt::Exception, cond::DbSession::getTypedObject(), edm::Service< T >::isAvailable(), payloadToken(), python.CommonUtils::session, cond::service::PoolDBOutputService::session(), and cond::DbScopedTransaction::start().
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, funct::false, edm::Service< T >::isAvailable(), cond::service::PoolDBOutputService::isNewTagRequest(), cond::TagInfo::lastInterval, cond::TagInfo::lastPayloadToken, payloadToken(), cond::service::PoolDBOutputService::tag(), cond::service::PoolDBOutputService::tagInfo(), and funct::true.
Referenced by L1CondDBIOVWriter::analyze(), and writeKeyList().
void l1t::DataWriter::writeKeyList | ( | L1TriggerKeyList * | keyList, |
edm::RunNumber_t | sinceRun = 0 , |
||
bool | logTransactions = false |
||
) |
Definition at line 58 of file DataWriter.cc.
References cond::classNameForTypeId(), cond::DbScopedTransaction::commit(), edm::hlt::Exception, edm::Service< T >::isAvailable(), payloadToken(), python.CommonUtils::session, cond::service::PoolDBOutputService::session(), cond::DbScopedTransaction::start(), cond::DbSession::storeObject(), and updateIOV().
Referenced by L1CondDBPayloadWriter::analyze().
std::string l1t::DataWriter::writePayload | ( | const edm::EventSetup & | setup, |
const std::string & | recordType | ||
) |
Definition at line 19 of file DataWriter.cc.
References edm::hlt::Exception, reco::get(), edm::Service< T >::isAvailable(), and payloadToken().
Referenced by L1CondDBPayloadWriter::analyze().