#include <CondDBESSource.h>
Classes | |
struct | Stats |
Public Types | |
typedef std::multimap < std::string, ProxyP > | ProxyMap |
typedef boost::shared_ptr < cond::DataProxyWrapperBase > | ProxyP |
enum | RefreshPolicy { NOREFRESH, REFRESH_ALWAYS, REFRESH_OPEN_IOVS, REFRESH_EACH_RUN, RECONNECT_EACH_RUN } |
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::map< std::string, cond::GTEntry_t > | TagCollection |
Private Member Functions | |
void | fillList (const std::string &pfn, std::vector< std::string > &pfnList, const unsigned int listSize, const std::string &type) |
void | fillTagCollectionFromDB (const std::vector< std::string > &connectionStringList, const std::vector< std::string > &prefixList, const std::vector< std::string > &postfixList, const std::vector< std::string > &roottagList, std::map< std::string, cond::GTEntry_t > &replacement) |
void | fillTagCollectionFromGT (const std::string &connectionString, const std::string &prefix, const std::string &postfix, const std::string &roottag, std::set< cond::GTEntry_t > &tagcoll) |
Private Attributes | |
cond::persistency::ConnectionPool | m_connection |
std::string | m_connectionString |
bool | m_doDump |
unsigned int | m_lastLumi |
std::map< std::string, unsigned int > | m_lastRecordRuns |
unsigned int | m_lastRun |
RefreshPolicy | m_policy |
ProxyMap | m_proxies |
std::map< std::string, std::pair < cond::persistency::Session, std::string > > | m_sessionPool |
Stats | m_stats |
TagCollection | m_tagCollection |
Additional Inherited Members | |
Static Public Member Functions inherited from edm::eventsetup::DataProxyProvider | |
static void | prevalidate (ConfigurationDescriptions &) |
Definition at line 32 of file CondDBESSource.h.
typedef std::multimap< std::string, ProxyP> CondDBESSource::ProxyMap |
Definition at line 36 of file CondDBESSource.h.
typedef boost::shared_ptr<cond::DataProxyWrapperBase > CondDBESSource::ProxyP |
Definition at line 35 of file CondDBESSource.h.
|
private |
Definition at line 64 of file CondDBESSource.h.
Enumerator | |
---|---|
NOREFRESH | |
REFRESH_ALWAYS | |
REFRESH_OPEN_IOVS | |
REFRESH_EACH_RUN | |
RECONNECT_EACH_RUN |
Definition at line 38 of file CondDBESSource.h.
|
explicit |
required by eventsetup
Definition at line 100 of file CondDBESSource.cc.
References b, cond::persistency::ConnectionPool::configure(), cond::persistency::ConnectionPool::createReadOnlySession(), alignCSCRings::e, edm::ParameterSet::exists(), fillList(), fillTagCollectionFromDB(), edm::EventSetupRecordIntervalFinder::findingRecordWithKey(), edm::eventsetup::heterocontainer::HCTypeTag::findType(), reco::get(), edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), align_cfg::globaltag, m_connection, m_connectionString, m_policy, m_proxies, m_stats, m_tagCollection, CondDBESSource::Stats::nData, cond::persistency::parseTag(), dbtoconf::pfn, RECONNECT_EACH_RUN, REFRESH_ALWAYS, REFRESH_EACH_RUN, REFRESH_OPEN_IOVS, alignCSCRings::s, cond::persistency::ConnectionPool::setParameters(), split, AlCaHLTBitMon_QueryRunRegistry::string, GlobalPosition_Frontier_DevDB_cff::tag, convertSQLitetoXML_cfg::toGet, edm::eventsetup::EventSetupRecordKey::type(), and edm::eventsetup::DataProxyProvider::usingRecordWithKey().
CondDBESSource::~CondDBESSource | ( | ) |
Definition at line 256 of file CondDBESSource.cc.
References b, gather_cfg::cout, alignCSCRings::e, m_doDump, m_proxies, m_stats, CondDBESSource::Stats::nActualReconnect, CondDBESSource::Stats::nActualRefresh, CondDBESSource::Stats::nData, CondDBESSource::Stats::nLumi, CondDBESSource::Stats::nReconnect, CondDBESSource::Stats::nRefresh, CondDBESSource::Stats::nRun, and CondDBESSource::Stats::nSet.
|
private |
Definition at line 241 of file CondDBESSource.cc.
References edm::hlt::Exception, i, split, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by CondDBESSource().
|
private |
Definition at line 550 of file CondDBESSource.cc.
References NewTree::fid, fillTagCollectionFromGT(), m_tagCollection, prof2calltree::prefix, cond::GTEntry_t::recordLabel(), cond::GTEntry_t::recordName(), AlCaHLTBitMon_QueryRunRegistry::string, and cond::GTEntry_t::tagName().
Referenced by CondDBESSource().
|
private |
Definition at line 529 of file CondDBESSource.cc.
References cond::persistency::Transaction::commit(), cond::persistency::ConnectionPool::createSession(), m_connection, cond::persistency::Session::readGlobalTag(), python.CommonUtils::session, cond::persistency::Transaction::start(), AlCaHLTBitMon_QueryRunRegistry::string, and cond::persistency::Session::transaction().
Referenced by fillTagCollectionFromDB().
|
protectedvirtual |
called when a new interval of validity occurs for iRecordType
Implements edm::eventsetup::DataProxyProvider.
Definition at line 520 of file CondDBESSource.cc.
References edm::eventsetup::DataProxyProvider::invalidateProxies().
|
protectedvirtual |
Implements edm::eventsetup::DataProxyProvider.
Definition at line 498 of file CondDBESSource.cc.
References b, alignCSCRings::e, combine::key, m_proxies, edm::eventsetup::EventSetupRecordKey::name(), AlCaHLTBitMon_ParallelJobs::p, and AlCaHLTBitMon_QueryRunRegistry::string.
|
protectedvirtual |
Implements edm::EventSetupRecordIntervalFinder.
Definition at line 289 of file CondDBESSource.cc.
References cond::persistency::ConnectionPool::createReadOnlySession(), cond::TimeTypeSpecs::endValue, edm::IOVSyncValue::eventID(), edm::ValidityInterval::first(), first, cond::time::fromIOVSyncValue(), edm::ValidityInterval::invalidInterval(), edm::ValidityInterval::last(), cond::time::limitedIOVSyncValue(), edm::IOVSyncValue::luminosityBlockNumber(), m_connection, m_connectionString, m_lastLumi, m_lastRecordRuns, m_lastRun, m_policy, m_proxies, m_sessionPool, m_stats, m_tagCollection, python.multivaluedict::map(), bookConverter::max, min(), edm::eventsetup::EventSetupRecordKey::name(), CondDBESSource::Stats::nLumi, CondDBESSource::Stats::nReconnect, CondDBESSource::Stats::nRefresh, CondDBESSource::Stats::nRun, CondDBESSource::Stats::nSet, cond::persistency::parseTag(), RECONNECT_EACH_RUN, REFRESH_ALWAYS, REFRESH_EACH_RUN, REFRESH_OPEN_IOVS, edm::EventID::run(), dqm_diff::start, AlCaHLTBitMon_QueryRunRegistry::string, edm::IOVSyncValue::time(), cond::TIMELIMIT(), dtNoiseCalibration_cfg::timetype, cond::timeTypeNames(), cond::timeTypeSpecs, cond::time::toIOVSyncValue(), and edm::Timestamp::value().
|
private |
Definition at line 57 of file CondDBESSource.h.
Referenced by CondDBESSource(), fillTagCollectionFromGT(), and setIntervalFor().
|
private |
Definition at line 58 of file CondDBESSource.h.
Referenced by CondDBESSource(), and setIntervalFor().
|
private |
Definition at line 87 of file CondDBESSource.h.
Referenced by ~CondDBESSource().
|
private |
Definition at line 84 of file CondDBESSource.h.
Referenced by setIntervalFor().
|
private |
Definition at line 68 of file CondDBESSource.h.
Referenced by setIntervalFor().
|
private |
Definition at line 83 of file CondDBESSource.h.
Referenced by setIntervalFor().
|
private |
Definition at line 85 of file CondDBESSource.h.
Referenced by CondDBESSource(), and setIntervalFor().
|
private |
Definition at line 61 of file CondDBESSource.h.
Referenced by CondDBESSource(), registerProxies(), setIntervalFor(), and ~CondDBESSource().
|
private |
Definition at line 67 of file CondDBESSource.h.
Referenced by setIntervalFor().
|
private |
Definition at line 81 of file CondDBESSource.h.
Referenced by CondDBESSource(), setIntervalFor(), and ~CondDBESSource().
|
private |
Definition at line 66 of file CondDBESSource.h.
Referenced by CondDBESSource(), fillTagCollectionFromDB(), and setIntervalFor().