#include <CondDBESSource.h>
Classes | |
struct | Stats |
Public Types | |
using | DataKey = edm::eventsetup::DataKey |
using | EventSetupRecordKey = edm::eventsetup::EventSetupRecordKey |
enum | RefreshPolicy { NOREFRESH, REFRESH_ALWAYS, REFRESH_OPEN_IOVS, REFRESH_EACH_RUN, RECONNECT_EACH_RUN } |
typedef std::multimap< std::string, ResolverP > | ResolverMap |
typedef std::shared_ptr< cond::ProductResolverWrapperBase > | ResolverP |
Public Attributes | |
std::string | m_jsonDumpFilename |
Protected Member Functions | |
void | initConcurrentIOVs (const EventSetupRecordKey &key, unsigned int nConcurrentIOVs) override |
bool | isConcurrentFinder () const override |
KeyedResolversVector | registerResolvers (const EventSetupRecordKey &, unsigned int iovIndex) override |
void | setIntervalFor (const EventSetupRecordKey &, const edm::IOVSyncValue &, edm::ValidityInterval &) override |
Protected Member Functions inherited from edm::eventsetup::ESProductResolverProvider | |
template<class T > | |
void | usingRecord () |
void | usingRecordWithKey (const EventSetupRecordKey &key) |
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, cond::GTMetadata_t >Metadata) |
void | fillTagCollectionFromGT (const std::string &connectionString, const std::string &prefix, const std::string &postfix, const std::string &roottag, std::set< cond::GTEntry_t > &tagcoll, cond::GTMetadata_t >Metadata) |
void | printStatistics (const Stats &stats) const |
Private Attributes | |
cond::persistency::ConnectionPool | m_connection |
std::string | m_connectionString |
bool | m_doDump |
std::string | m_frontierKey |
unsigned int | m_lastLumi |
std::map< std::string, unsigned int > | m_lastRecordRuns |
unsigned int | m_lastRun |
std::mutex | m_mutex |
RefreshPolicy | m_policy |
edm::SerialTaskQueue | m_queue |
std::map< std::string, std::pair< cond::Time_t, bool > > | m_refreshTimeForRecord |
ResolverMap | m_resolvers |
std::map< std::string, std::pair< cond::persistency::Session, std::string > > | m_sessionPool |
std::map< std::string, std::pair< cond::persistency::Session, std::string > > | m_sessionPoolForLumiConditions |
Stats | m_stats |
TagCollection | m_tagCollection |
Additional Inherited Members | |
Static Public Member Functions inherited from edm::eventsetup::ESProductResolverProvider | |
static void | prevalidate (ConfigurationDescriptions &) |
Protected Types inherited from edm::eventsetup::ESProductResolverProvider | |
using | KeyedResolversVector = std::vector< std::pair< DataKey, std::shared_ptr< ESProductResolver > >> |
Definition at line 87 of file CondDBESSource.h.
Definition at line 89 of file CondDBESSource.h.
Definition at line 90 of file CondDBESSource.h.
typedef std::multimap<std::string, ResolverP> CondDBESSource::ResolverMap |
Definition at line 92 of file CondDBESSource.h.
typedef std::shared_ptr<cond::ProductResolverWrapperBase> CondDBESSource::ResolverP |
Definition at line 91 of file CondDBESSource.h.
|
private |
Definition at line 120 of file CondDBESSource.h.
Enumerator | |
---|---|
NOREFRESH | |
REFRESH_ALWAYS | |
REFRESH_OPEN_IOVS | |
REFRESH_EACH_RUN | |
RECONNECT_EACH_RUN |
Definition at line 94 of file CondDBESSource.h.
|
explicit |
required by eventsetup
Definition at line 123 of file CondDBESSource.cc.
References b, cond::persistency::ConnectionPool::configure(), cond::persistency::convertoToOracleConnection(), cond::persistency::ConnectionPool::createReadOnlySession(), MillePedeFileConverter_cfg::e, edm::ParameterSet::exists(), fillList(), fillTagCollectionFromDB(), edm::EventSetupRecordIntervalFinder::findingRecordWithKey(), cond::persistency::fullyQualifiedTag(), get, edm::ParameterSet::getParameter(), edm::ParameterSet::getUntrackedParameter(), download_sqlite_cfg::globaltag, ALPAKA_ACCELERATOR_NAMESPACE::caPixelDoublets::if(), ALPAKA_ACCELERATOR_NAMESPACE::vertexFinder::it, m_connection, m_connectionString, m_frontierKey, m_mutex, m_policy, m_queue, m_refreshTimeForRecord, m_resolvers, m_stats, m_tagCollection, cond::time::MAX_TIMESTAMP, eostools::move(), CondDBESSource::Stats::nData, AlCaHLTBitMon_ParallelJobs::p, cond::persistency::parseConnectionString(), cond::persistency::parseTag(), loadRecoTauTagMVAsFromPrepDB_cfi::pfnPostfix, loadRecoTauTagMVAsFromPrepDB_cfi::pfnPrefix, RECONNECT_EACH_RUN, REFRESH_ALWAYS, REFRESH_EACH_RUN, REFRESH_OPEN_IOVS, beamspotdip_dqm_sourceclient-live_cfg::refreshTime, alignCSCRings::s, cond::persistency::ConnectionPool::setParameters(), L1TCSCTPG_cff::siteLocalConfig, loadRecoTauTagMVAsFromPrepDB_cfi::snapshotTime, cond::GTMetadata_t::snapshotTime, submitPVValidationJobs::split(), AlCaHLTBitMon_QueryRunRegistry::string, makeGlobalPositionRcd_cfg::tag, GlobalPosition_Frontier_DevDB_cff::toGet, edm::eventsetup::EventSetupRecordKey::type(), and edm::eventsetup::ESProductResolverProvider::usingRecordWithKey().
|
override |
Definition at line 371 of file CondDBESSource.cc.
References b, gather_cfg::cout, getInfo::dumpInfo(), MillePedeFileConverter_cfg::e, mps_splice::entry, m_doDump, m_jsonDumpFilename, m_resolvers, m_stats, printStatistics(), saveJsonToFile(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 336 of file CondDBESSource.cc.
References mps_fire::i, submitPVValidationJobs::split(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by CondDBESSource().
|
private |
Definition at line 688 of file CondDBESSource.cc.
References l1RCTOmdsFedVectorProducer_cfi::connectionString, fillTagCollectionFromGT(), m_tagCollection, mps_check::msg, nano_postproc::postfix, hcallasereventfilter2012_cfi::prefix, cond::GTEntry_t::recordLabel(), cond::GTEntry_t::recordName(), AlCaHLTBitMon_QueryRunRegistry::string, and cond::GTEntry_t::tagName().
Referenced by CondDBESSource().
|
private |
Definition at line 654 of file CondDBESSource.cc.
References cond::persistency::Transaction::commit(), l1RCTOmdsFedVectorProducer_cfi::connectionString, cond::persistency::ConnectionPool::createSession(), m_connection, cond::persistency::parseConnectionString(), nano_postproc::postfix, hcallasereventfilter2012_cfi::prefix, cond::persistency::Session::readGlobalTag(), cond::persistency::GTProxy::snapshotTime(), cond::GTMetadata_t::snapshotTime, cond::persistency::Transaction::start(), AlCaHLTBitMon_QueryRunRegistry::string, and cond::persistency::Session::transaction().
Referenced by fillTagCollectionFromDB().
|
overrideprotectedvirtual |
Reimplemented from edm::eventsetup::ESProductResolverProvider.
Definition at line 642 of file CondDBESSource.cc.
References b, MillePedeFileConverter_cfg::e, submitPVResolutionJobs::key, m_resolvers, AlCaHLTBitMon_ParallelJobs::p, and AlCaHLTBitMon_QueryRunRegistry::string.
|
inlineoverrideprotectedvirtual |
Reimplemented from edm::EventSetupRecordIntervalFinder.
Definition at line 108 of file CondDBESSource.h.
|
private |
Definition at line 354 of file CondDBESSource.cc.
References gather_cfg::cout, and dqmMemoryStats::stats.
Referenced by ~CondDBESSource().
|
overrideprotectedvirtual |
Implements edm::eventsetup::ESProductResolverProvider.
Definition at line 618 of file CondDBESSource.cc.
References b, MillePedeFileConverter_cfg::e, submitPVResolutionJobs::key, m_resolvers, edm::eventsetup::EventSetupRecordKey::name(), AlCaHLTBitMon_ParallelJobs::p, and AlCaHLTBitMon_QueryRunRegistry::string.
|
overrideprotectedvirtual |
Implements edm::EventSetupRecordIntervalFinder.
Definition at line 404 of file CondDBESSource.cc.
References edm::IOVSyncValue::beginOfTime(), cond::persistency::ConnectionPool::createReadOnlySession(), cond::TimeTypeSpecs::endValue, edm::IOVSyncValue::eventID(), edm::ValidityInterval::first(), cond::time::fromIOVSyncValue(), ALPAKA_ACCELERATOR_NAMESPACE::caPixelDoublets::if(), edm::ValidityInterval::invalidInterval(), edm::IOVSyncValue::invalidIOVSyncValue(), edm::ValidityInterval::last(), cond::time::limitedIOVSyncValue(), edm::IOVSyncValue::luminosityBlockNumber(), m_connection, m_connectionString, m_frontierKey, m_lastLumi, m_lastRecordRuns, m_lastRun, m_mutex, m_policy, m_refreshTimeForRecord, m_resolvers, m_sessionPool, m_sessionPoolForLumiConditions, m_stats, m_tagCollection, genParticles_cff::map, SiStripPI::max, cond::time::MAX_VAL(), SiStripPI::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(), AlCaHLTBitMon_QueryRunRegistry::string, cond::time::tillTimeForIOV(), edm::IOVSyncValue::time(), cond::TIMELIMIT(), AlCaHarvesting_cff::timetype, cond::timeTypeNames(), cond::timeTypeSpecs, to_string(), cond::time::toIOVSyncValue(), cond::time::transactionIdForLumiTime(), and edm::Timestamp::value().
|
private |
Definition at line 113 of file CondDBESSource.h.
Referenced by CondDBESSource(), fillTagCollectionFromGT(), and setIntervalFor().
|
private |
Definition at line 114 of file CondDBESSource.h.
Referenced by CondDBESSource(), and setIntervalFor().
|
private |
Definition at line 148 of file CondDBESSource.h.
Referenced by ~CondDBESSource().
|
private |
Definition at line 115 of file CondDBESSource.h.
Referenced by CondDBESSource(), and setIntervalFor().
std::string CondDBESSource::m_jsonDumpFilename |
Definition at line 96 of file CondDBESSource.h.
Referenced by ~CondDBESSource().
|
private |
Definition at line 145 of file CondDBESSource.h.
Referenced by setIntervalFor().
|
private |
Definition at line 126 of file CondDBESSource.h.
Referenced by setIntervalFor().
|
private |
Definition at line 144 of file CondDBESSource.h.
Referenced by setIntervalFor().
|
private |
Definition at line 129 of file CondDBESSource.h.
Referenced by CondDBESSource(), and setIntervalFor().
|
private |
Definition at line 146 of file CondDBESSource.h.
Referenced by CondDBESSource(), and setIntervalFor().
|
private |
Definition at line 128 of file CondDBESSource.h.
Referenced by CondDBESSource().
|
private |
Definition at line 123 of file CondDBESSource.h.
Referenced by CondDBESSource(), and setIntervalFor().
|
private |
Definition at line 118 of file CondDBESSource.h.
Referenced by CondDBESSource(), initConcurrentIOVs(), registerResolvers(), setIntervalFor(), and ~CondDBESSource().
|
private |
Definition at line 124 of file CondDBESSource.h.
Referenced by setIntervalFor().
|
private |
Definition at line 125 of file CondDBESSource.h.
Referenced by setIntervalFor().
|
private |
Definition at line 142 of file CondDBESSource.h.
Referenced by CondDBESSource(), setIntervalFor(), and ~CondDBESSource().
|
private |
Definition at line 122 of file CondDBESSource.h.
Referenced by CondDBESSource(), fillTagCollectionFromDB(), and setIntervalFor().