#include <CondDBESSource.h>
Classes | |
struct | Stats |
Public Types | |
typedef std::multimap < std::string, ProxyP > | ProxyMap |
typedef boost::shared_ptr < cond::DataProxyWrapperBase > | ProxyP |
Public Types inherited from edm::eventsetup::DataProxyProvider | |
typedef std::vector< std::pair < DataKey, boost::shared_ptr < DataProxy > > > | KeyedProxies |
typedef std::vector < EventSetupRecordKey > | Keys |
typedef std::map < EventSetupRecordKey, KeyedProxies > | RecordProxies |
Protected Member Functions | |
virtual void | newInterval (const edm::eventsetup::EventSetupRecordKey &iRecordType, const edm::ValidityInterval &iInterval) |
called when a new interval of validity occurs for iRecordType More... | |
virtual void | registerProxies (const edm::eventsetup::EventSetupRecordKey &iRecordKey, KeyedProxies &aProxyList) |
virtual void | setIntervalFor (const edm::eventsetup::EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) |
Protected Member Functions inherited from edm::eventsetup::DataProxyProvider | |
void | eraseAll (const EventSetupRecordKey &iRecordKey) |
deletes all the Proxies in aStream More... | |
void | invalidateProxies (const EventSetupRecordKey &iRecordKey) |
template<class T > | |
void | usingRecord () |
void | usingRecordWithKey (const EventSetupRecordKey &) |
Protected Member Functions inherited from edm::EventSetupRecordIntervalFinder | |
template<class T > | |
void | findingRecord () |
void | findingRecordWithKey (const eventsetup::EventSetupRecordKey &) |
Private Types | |
typedef std::set < cond::TagMetadata > | TagCollection |
Private Member Functions | |
void | fillTagCollectionFromDB (const std::string &coraldb, const std::string &prefix, const std::string &postfix, const std::string &roottag, std::map< std::string, cond::TagMetadata > &replacement) |
Private Attributes | |
bool | doDump |
bool | doRefresh |
unsigned int | lastRun |
cond::DbConnection | m_connection |
ProxyMap | m_proxies |
TagCollection | m_tagCollection |
Stats | stats |
Definition at line 34 of file CondDBESSource.h.
typedef std::multimap< std::string, ProxyP> CondDBESSource::ProxyMap |
Definition at line 38 of file CondDBESSource.h.
typedef boost::shared_ptr<cond::DataProxyWrapperBase > CondDBESSource::ProxyP |
Definition at line 37 of file CondDBESSource.h.
|
private |
Definition at line 63 of file CondDBESSource.h.
|
explicit |
required by eventsetup
Definition at line 104 of file CondDBESSource.cc.
References b, cond::DbScopedTransaction::commit(), cond::DbConnection::configuration(), cond::DbConnection::configure(), cond::DbConnection::createSession(), edm::ParameterSet::exists(), fillTagCollectionFromDB(), edm::EventSetupRecordIntervalFinder::findingRecordWithKey(), edm::eventsetup::heterocontainer::HCTypeTag::findType(), reco::get(), edm::ParameterSet::getParameter(), cond::MetaData::getToken(), edm::ParameterSet::getUntrackedParameter(), align_cfg::globaltag, cond::DbSession::isTransactional(), gen::k, cond::TagMetadata::labelname, m_connection, m_proxies, m_tagCollection, CondDBESSource::Stats::nData, cond::DbSession::open(), cond::TagMetadata::pfn, cond::TagMetadata::recordname, asciidump::s, cond::DbConnectionConfiguration::setParameters(), cond::DbScopedTransaction::start(), cond::DbTransaction::start(), stats, cond::TagMetadata::tag, align_tpl::toGet, cond::DbSession::transaction(), python.IdGenerator::transaction, edm::eventsetup::EventSetupRecordKey::type(), and edm::eventsetup::DataProxyProvider::usingRecordWithKey().
CondDBESSource::~CondDBESSource | ( | ) |
Definition at line 224 of file CondDBESSource.cc.
References b, gather_cfg::cout, doDump, cond::BasePayloadProxy::gstats, m_proxies, CondDBESSource::Stats::nActualRefresh, CondDBESSource::Stats::nData, CondDBESSource::Stats::nRefresh, CondDBESSource::Stats::nRun, CondDBESSource::Stats::nSet, and stats.
|
private |
Definition at line 361 of file CondDBESSource.cc.
References cond::DbScopedTransaction::commit(), cond::DbConnection::createSession(), NewTree::fid, cond::TagCollectionRetriever::getTagCollection(), gen::k, cond::TagMetadata::labelname, m, m_connection, m_tagCollection, cond::TagMetadata::objectname, cond::DbSession::open(), cond::TagMetadata::pfn, cond::TagMetadata::recordname, python.CommonUtils::session, cond::DbScopedTransaction::start(), cond::TagMetadata::tag, and python.IdGenerator::transaction.
Referenced by CondDBESSource().
|
protectedvirtual |
called when a new interval of validity occurs for iRecordType
Implements edm::eventsetup::DataProxyProvider.
Definition at line 351 of file CondDBESSource.cc.
References edm::eventsetup::DataProxyProvider::invalidateProxies().
|
protectedvirtual |
Implements edm::eventsetup::DataProxyProvider.
Definition at line 330 of file CondDBESSource.cc.
References b, combine::key, LogDebug, m_proxies, edm::eventsetup::EventSetupRecordKey::name(), and L1TEmulatorMonitor_cff::p.
|
protectedvirtual |
Implements edm::EventSetupRecordIntervalFinder.
Definition at line 259 of file CondDBESSource.cc.
References b, doRefresh, edm::IOVSyncValue::eventID(), cond::fromIOVSyncValue(), edm::ValidityInterval::invalidInterval(), lastRun, cond::limitedIOVSyncValue(), LogDebug, m_proxies, max(), min, CondDBESSource::Stats::nActualRefresh, edm::eventsetup::EventSetupRecordKey::name(), CondDBESSource::Stats::nRefresh, CondDBESSource::Stats::nRun, CondDBESSource::Stats::nSet, L1TEmulatorMonitor_cff::p, edm::EventID::run(), stats, cond::TIMELIMIT(), upload_serial_tpl::timetype, and cond::toIOVSyncValue().
|
private |
Definition at line 80 of file CondDBESSource.h.
Referenced by ~CondDBESSource().
|
private |
Definition at line 78 of file CondDBESSource.h.
Referenced by setIntervalFor().
|
private |
Definition at line 77 of file CondDBESSource.h.
Referenced by setIntervalFor().
|
private |
Definition at line 57 of file CondDBESSource.h.
Referenced by CondDBESSource(), and fillTagCollectionFromDB().
|
private |
Definition at line 60 of file CondDBESSource.h.
Referenced by CondDBESSource(), registerProxies(), setIntervalFor(), and ~CondDBESSource().
|
private |
Definition at line 65 of file CondDBESSource.h.
Referenced by CondDBESSource(), and fillTagCollectionFromDB().
|
private |
Definition at line 75 of file CondDBESSource.h.
Referenced by CondDBESSource(), setIntervalFor(), and ~CondDBESSource().