#include <EventSetupProvider.h>
Public Types | |
typedef std::pair< DataType, DataLabel > | DataKeyInfo |
typedef std::string | DataLabel |
typedef std::string | DataType |
typedef std::map< ComponentDescription, RecordToDataMap > | PreferredProviderInfo |
typedef std::string | RecordName |
typedef std::multimap< RecordName, DataKeyInfo > | RecordToDataMap |
Public Member Functions | |
void | add (std::shared_ptr< DataProxyProvider >) |
void | add (std::shared_ptr< EventSetupRecordIntervalFinder >) |
void | addRecord (const EventSetupRecordKey &iKey) |
Intended for use only in tests. More... | |
void | addRecordToEventSetup (EventSetupRecordImpl &iRecord) |
void | checkESProducerSharing (EventSetupProvider &precedingESProvider, std::set< ParameterSetIDHolder > &sharingCheckDone, std::map< EventSetupRecordKey, std::vector< ComponentDescription const * >> &referencedESProducers, EventSetupsController &esController) |
void | clearInitializationData () |
bool | doRecordsMatch (EventSetupProvider &precedingESProvider, EventSetupRecordKey const &eventSetupRecordKey, std::map< EventSetupRecordKey, bool > &allComponentsMatch, EventSetupsController const &esController) |
EventSetupImpl const & | eventSetup () const |
EventSetupImpl const & | eventSetupForInstance (IOVSyncValue const &) |
EventSetupProvider (ActivityRegistry *, unsigned subProcessIndex=0U, PreferredProviderInfo const *iInfo=0) | |
void | fillReferencedDataKeys (EventSetupRecordKey const &eventSetupRecordKey) |
void | finishConfiguration () |
void | forceCacheClear () |
Used when testing that all code properly updates on IOV changes of all Records. More... | |
bool | isWithinValidityInterval (IOVSyncValue const &) const |
std::set< ComponentDescription > | proxyProviderDescriptions () const |
ESRecordsToProxyIndices | recordsToProxyIndices () const |
void | replaceExisting (std::shared_ptr< DataProxyProvider >) |
void | resetRecordPlusDependentRecords (EventSetupRecordKey const &) |
Used when we need to force a Record to reset all its proxies. More... | |
void | resetRecordToProxyPointers () |
unsigned | subProcessIndex () const |
virtual | ~EventSetupProvider () |
Static Public Member Functions | |
static void | logInfoWhenSharing (ParameterSet const &iConfiguration) |
Protected Member Functions | |
void | insert (std::unique_ptr< EventSetupRecordProvider > iRecordProvider) |
Private Types | |
using | RecordKeys = std::vector< EventSetupRecordKey > |
using | RecordProviders = std::vector< std::shared_ptr< EventSetupRecordProvider >> |
Private Member Functions | |
void | determinePreferred () |
EventSetupProvider (EventSetupProvider const &)=delete | |
void | insert (EventSetupRecordKey const &, std::unique_ptr< EventSetupRecordProvider >) |
EventSetupProvider const & | operator= (EventSetupProvider const &)=delete |
std::shared_ptr< EventSetupRecordProvider > & | recordProvider (const EventSetupRecordKey &iKey) |
EventSetupRecordProvider * | tryToGetRecordProvider (const EventSetupRecordKey &iKey) |
Private Attributes | |
std::unique_ptr< std::vector< std::shared_ptr< DataProxyProvider > > > | dataProviders_ |
EventSetupImpl | eventSetup_ |
std::unique_ptr< std::vector< std::shared_ptr< EventSetupRecordIntervalFinder > > > | finders_ |
bool | mustFinishConfiguration_ |
std::unique_ptr< PreferredProviderInfo > | preferredProviderInfo_ |
std::unique_ptr< std::map< ParameterSetIDHolder, std::set< EventSetupRecordKey > > > | psetIDToRecordKey_ |
RecordKeys | recordKeys_ |
RecordProviders | recordProviders_ |
std::unique_ptr< std::set< EventSetupRecordKey > > | recordsWithALooperProxy_ |
std::unique_ptr< std::map< EventSetupRecordKey, std::vector< std::shared_ptr< EventSetupRecordIntervalFinder > > > > | recordToFinders_ |
std::unique_ptr< std::map< EventSetupRecordKey, std::map< DataKey, ComponentDescription > > > | recordToPreferred_ |
std::unique_ptr< std::map< EventSetupRecordKey, std::map< DataKey, ComponentDescription const * > > > | referencedDataKeys_ |
unsigned | subProcessIndex_ |
Definition at line 50 of file EventSetupProvider.h.
typedef std::pair<DataType, DataLabel> edm::eventsetup::EventSetupProvider::DataKeyInfo |
Definition at line 55 of file EventSetupProvider.h.
typedef std::string edm::eventsetup::EventSetupProvider::DataLabel |
Definition at line 54 of file EventSetupProvider.h.
typedef std::string edm::eventsetup::EventSetupProvider::DataType |
Definition at line 53 of file EventSetupProvider.h.
typedef std::map<ComponentDescription, RecordToDataMap> edm::eventsetup::EventSetupProvider::PreferredProviderInfo |
Definition at line 57 of file EventSetupProvider.h.
|
private |
Definition at line 132 of file EventSetupProvider.h.
typedef std::string edm::eventsetup::EventSetupProvider::RecordName |
Definition at line 52 of file EventSetupProvider.h.
|
private |
Definition at line 135 of file EventSetupProvider.h.
typedef std::multimap<RecordName, DataKeyInfo> edm::eventsetup::EventSetupProvider::RecordToDataMap |
Definition at line 56 of file EventSetupProvider.h.
edm::eventsetup::EventSetupProvider::EventSetupProvider | ( | ActivityRegistry * | , |
unsigned | subProcessIndex = 0U , |
||
PreferredProviderInfo const * | iInfo = 0 |
||
) |
Referenced by subProcessIndex().
|
virtual |
Definition at line 53 of file EventSetupProvider.cc.
|
privatedelete |
void EventSetupProvider::add | ( | std::shared_ptr< DataProxyProvider > | iProvider | ) |
Definition at line 86 of file EventSetupProvider.cc.
Referenced by edm::eventsetup::looper::addFinderTo(), edm::eventsetup::addProviderTo(), edm::eventsetup::looper::addProviderTo(), edm::eventsetup::ModuleMakerTraits::addTo(), edm::eventsetup::SourceMakerTraits::addTo(), eventSetup(), counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().
void EventSetupProvider::add | ( | std::shared_ptr< EventSetupRecordIntervalFinder > | iFinder | ) |
Definition at line 99 of file EventSetupProvider.cc.
Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().
void EventSetupProvider::addRecord | ( | const EventSetupRecordKey & | iKey | ) |
Intended for use only in tests.
Definition at line 733 of file EventSetupProvider.cc.
References edm::EventSetupImpl::insert().
Referenced by subProcessIndex().
void EventSetupProvider::addRecordToEventSetup | ( | EventSetupRecordImpl & | iRecord | ) |
Definition at line 654 of file EventSetupProvider.cc.
References edm::eventsetup::EventSetupRecordImpl::setEventSetup().
Referenced by edm::eventsetup::EventSetupRecordProvider::addRecordTo(), and eventSetup().
void EventSetupProvider::checkESProducerSharing | ( | EventSetupProvider & | precedingESProvider, |
std::set< ParameterSetIDHolder > & | sharingCheckDone, | ||
std::map< EventSetupRecordKey, std::vector< ComponentDescription const * >> & | referencedESProducers, | ||
EventSetupsController & | esController | ||
) |
Definition at line 395 of file EventSetupProvider.cc.
References reco::get(), edm::eventsetup::EventSetupsController::getESProducerPSet(), edm::eventsetup::EventSetupsController::isFirstMatch(), edm::eventsetup::EventSetupsController::isLastMatch(), crabWrapper::key, edm::eventsetup::EventSetupsController::lookForMatches(), edm::match(), muonDTDigis_cfi::pset, psetIDToRecordKey_, recordProvider(), subProcessIndex(), and subProcessIndex_.
Referenced by eventSetup().
void EventSetupProvider::clearInitializationData | ( | ) |
Definition at line 645 of file EventSetupProvider.cc.
Referenced by eventSetup().
|
private |
Definition at line 158 of file EventSetupProvider.cc.
References makeMuonMisalignmentScenario::components, Exception, edm::eventsetup::heterocontainer::HCTypeTag::findType(), kp, edm::eventsetup::preferEverything(), edm::eventsetup::EventSetupRecordProvider::proxyProvider(), edm::eventsetup::EventSetupRecordProvider::proxyProviderDescriptions(), align_cfg::recordName, AlCaHLTBitMon_QueryRunRegistry::string, and edm::eventsetup::EventSetupRecordKey::type().
Referenced by subProcessIndex().
bool EventSetupProvider::doRecordsMatch | ( | EventSetupProvider & | precedingESProvider, |
EventSetupRecordKey const & | eventSetupRecordKey, | ||
std::map< EventSetupRecordKey, bool > & | allComponentsMatch, | ||
EventSetupsController const & | esController | ||
) |
Definition at line 538 of file EventSetupProvider.cc.
References edm::eventsetup::EventSetupRecordProvider::dependentRecords(), fillReferencedDataKeys(), ghostTrackVertexReco_cff::finder, edm::eventsetup::EventSetupsController::isMatchingESProducer(), edm::eventsetup::EventSetupsController::isMatchingESSource(), edm::match(), recordsWithALooperProxy_, recordToFinders_, referencedDataKeys_, findQualityFiles::size, and subProcessIndex_.
Referenced by eventSetup().
|
inline |
Definition at line 74 of file EventSetupProvider.h.
References add(), addRecordToEventSetup(), checkESProducerSharing(), clearInitializationData(), doRecordsMatch(), eventSetup_, fillReferencedDataKeys(), finishConfiguration(), forceCacheClear(), genParticles_cff::map, replaceExisting(), resetRecordPlusDependentRecords(), and resetRecordToProxyPointers().
EventSetupImpl const & EventSetupProvider::eventSetupForInstance | ( | IOVSyncValue const & | ) |
Definition at line 667 of file EventSetupProvider.cc.
References edm::EventSetupImpl::clear().
void EventSetupProvider::fillReferencedDataKeys | ( | EventSetupRecordKey const & | eventSetupRecordKey | ) |
Definition at line 621 of file EventSetupProvider.cc.
References edm::eventsetup::EventSetupRecordProvider::fillReferencedDataKeys().
Referenced by doRecordsMatch(), and eventSetup().
void EventSetupProvider::finishConfiguration | ( | ) |
Definition at line 234 of file EventSetupProvider.cc.
References edm::eventsetup::EventSetupRecordProvider::add(), edm::eventsetup::EventSetupRecordProvider::addFinder(), SoftLeptonByDistance_cfi::distance, edm::EventSetupImpl::insert(), crabWrapper::key, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by eventSetup().
void EventSetupProvider::forceCacheClear | ( | ) |
Used when testing that all code properly updates on IOV changes of all Records.
Definition at line 387 of file EventSetupProvider.cc.
Referenced by eventSetup().
|
protected |
Definition at line 659 of file EventSetupProvider.cc.
References edm::EventSetupImpl::insert(), crabWrapper::key, and eostools::move().
Referenced by subProcessIndex().
|
private |
bool EventSetupProvider::isWithinValidityInterval | ( | IOVSyncValue const & | iSync | ) | const |
Definition at line 700 of file EventSetupProvider.cc.
References edm::ValidityInterval::invalidInterval().
|
static |
Definition at line 725 of file EventSetupProvider.cc.
References edm::ParameterSet::getParameter(), label, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by subProcessIndex().
|
privatedelete |
Referenced by subProcessIndex().
std::set< ComponentDescription > EventSetupProvider::proxyProviderDescriptions | ( | ) | const |
Definition at line 683 of file EventSetupProvider.cc.
References edmIntegrityCheck::d, and AlCaHLTBitMon_ParallelJobs::p.
|
private |
Definition at line 55 of file EventSetupProvider.cc.
References SoftLeptonByDistance_cfi::distance, Exception, and pfDeepBoostedJetPreprocessParams_cfi::lower_bound.
Referenced by checkESProducerSharing(), and subProcessIndex().
ESRecordsToProxyIndices EventSetupProvider::recordsToProxyIndices | ( | ) | const |
Definition at line 710 of file EventSetupProvider.cc.
References edm::eventsetup::ESRecordsToProxyIndices::dataKeysInRecord().
void EventSetupProvider::replaceExisting | ( | std::shared_ptr< DataProxyProvider > | dataProxyProvider | ) |
Definition at line 91 of file EventSetupProvider.cc.
References crabWrapper::key.
Referenced by eventSetup(), and edm::eventsetup::ModuleMakerTraits::replaceExisting().
void EventSetupProvider::resetRecordPlusDependentRecords | ( | EventSetupRecordKey const & | ) |
Used when we need to force a Record to reset all its proxies.
Definition at line 370 of file EventSetupProvider.cc.
References edmIntegrityCheck::d, edm::eventsetup::findDependents(), edm::eventsetup::EventSetupRecordProvider::resetProxies(), and tier0::unique().
Referenced by eventSetup(), and edm::EDLooperBase::prepareForNextLoop().
void EventSetupProvider::resetRecordToProxyPointers | ( | ) |
Definition at line 633 of file EventSetupProvider.cc.
Referenced by eventSetup().
|
inline |
Definition at line 108 of file EventSetupProvider.h.
References addRecord(), determinePreferred(), EventSetupProvider(), insert(), logInfoWhenSharing(), operator=(), recordProvider(), subProcessIndex_, and tryToGetRecordProvider().
Referenced by checkESProducerSharing().
|
private |
Definition at line 65 of file EventSetupProvider.cc.
References SoftLeptonByDistance_cfi::distance, edm::eventsetup::heterocontainer::insert(), pfDeepBoostedJetPreprocessParams_cfi::lower_bound, and eostools::move().
Referenced by subProcessIndex().
|
private |
Definition at line 145 of file EventSetupProvider.h.
|
private |
Definition at line 130 of file EventSetupProvider.h.
Referenced by eventSetup().
|
private |
Definition at line 144 of file EventSetupProvider.h.
|
private |
Definition at line 138 of file EventSetupProvider.h.
|
private |
Definition at line 143 of file EventSetupProvider.h.
|
private |
Definition at line 149 of file EventSetupProvider.h.
Referenced by checkESProducerSharing().
|
private |
Definition at line 133 of file EventSetupProvider.h.
|
private |
Definition at line 136 of file EventSetupProvider.h.
|
private |
Definition at line 151 of file EventSetupProvider.h.
Referenced by doRecordsMatch().
|
private |
Definition at line 148 of file EventSetupProvider.h.
Referenced by doRecordsMatch().
|
private |
Definition at line 150 of file EventSetupProvider.h.
|
private |
Definition at line 146 of file EventSetupProvider.h.
Referenced by doRecordsMatch().
|
private |
Definition at line 139 of file EventSetupProvider.h.
Referenced by checkESProducerSharing(), doRecordsMatch(), and subProcessIndex().