#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 | checkESProducerSharing (ModuleTypeResolverMaker const *resolverMaker, 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) |
bool | doWeNeedToWaitForIOVsToFinish (IOVSyncValue const &) const |
std::shared_ptr< const EventSetupImpl > | eventSetupForInstance (IOVSyncValue const &, bool &newEventSetupImpl) |
EventSetupImpl const & | eventSetupImpl () const |
EventSetupProvider (ActivityRegistry const *, unsigned subProcessIndex=0U, PreferredProviderInfo const *iInfo=nullptr) | |
EventSetupProvider (EventSetupProvider const &)=delete | |
void | fillKeys (std::set< EventSetupRecordKey > &keys) const |
void | fillRecordsNotAllowingConcurrentIOVs (std::set< EventSetupRecordKey > &recordsNotAllowingConcurrentIOVs) const |
void | fillReferencedDataKeys (EventSetupRecordKey const &eventSetupRecordKey) |
void | finishConfiguration (NumberOfConcurrentIOVs const &, bool &hasNonconcurrentFinder) |
void | forceCacheClear () |
Used when testing that all code properly updates on IOV changes of all Records. More... | |
EventSetupProvider const & | operator= (EventSetupProvider const &)=delete |
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 () |
void | setAllValidityIntervals (const IOVSyncValue &iValue) |
Set the validity intervals in all EventSetupRecordProviders. More... | |
void | setPreferredProviderInfo (PreferredProviderInfo const &iInfo) |
unsigned | subProcessIndex () const |
EventSetupRecordProvider * | tryToGetRecordProvider (const EventSetupRecordKey &iKey) |
~EventSetupProvider () | |
Static Public Member Functions | |
static void | logInfoWhenSharing (ParameterSet const &iConfiguration) |
Private Types | |
using | RecordKeys = std::vector< EventSetupRecordKey > |
using | RecordProviders = std::vector< std::shared_ptr< EventSetupRecordProvider > > |
Private Member Functions | |
void | determinePreferred () |
void | insert (EventSetupRecordKey const &, std::unique_ptr< EventSetupRecordProvider >) |
std::shared_ptr< EventSetupRecordProvider > & | recordProvider (const EventSetupRecordKey &iKey) |
Description: Factory for a EventSetup
Usage: <usage>
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 const * | activityRegistry, |
unsigned | subProcessIndex = 0U , |
||
PreferredProviderInfo const * | iInfo = nullptr |
||
) |
Definition at line 41 of file EventSetupProvider.cc.
|
delete |
edm::eventsetup::EventSetupProvider::~EventSetupProvider | ( | ) |
Definition at line 57 of file EventSetupProvider.cc.
References forceCacheClear().
void edm::eventsetup::EventSetupProvider::add | ( | std::shared_ptr< DataProxyProvider > | iProvider | ) |
Definition at line 90 of file EventSetupProvider.cc.
References activityRegistry_, cms::cuda::assert(), dataProviders_, and edm::ActivityRegistry::postESModuleRegistrationSignal_.
Referenced by edm::eventsetup::looper::addFinderTo(), edm::eventsetup::addProviderTo(), edm::eventsetup::looper::addProviderTo(), edm::eventsetup::ModuleMakerTraits::addTo(), edm::eventsetup::SourceMakerTraits::addTo(), counter.Counter::register(), SequenceTypes._TaskBase::remove(), and SequenceTypes._TaskBase::replace().
void edm::eventsetup::EventSetupProvider::add | ( | std::shared_ptr< EventSetupRecordIntervalFinder > | iFinder | ) |
Definition at line 106 of file EventSetupProvider.cc.
References cms::cuda::assert(), and finders_.
Referenced by counter.Counter::register(), SequenceTypes._TaskBase::remove(), and SequenceTypes._TaskBase::replace().
void edm::eventsetup::EventSetupProvider::addRecord | ( | const EventSetupRecordKey & | iKey | ) |
Intended for use only in tests.
Definition at line 741 of file EventSetupProvider.cc.
References eventSetupImpl_, insert(), and recordKeys_.
void edm::eventsetup::EventSetupProvider::checkESProducerSharing | ( | ModuleTypeResolverMaker const * | resolverMaker, |
EventSetupProvider & | precedingESProvider, | ||
std::set< ParameterSetIDHolder > & | sharingCheckDone, | ||
std::map< EventSetupRecordKey, std::vector< ComponentDescription const *>> & | referencedESProducers, | ||
EventSetupsController & | esController | ||
) |
Definition at line 396 of file EventSetupProvider.cc.
References cms::cuda::assert(), doRecordsMatch(), edm::eventsetup::ComponentFactory< T >::get(), edm::eventsetup::EventSetupsController::getESProducerPSet(), edm::eventsetup::EventSetupsController::isFirstMatch(), edm::eventsetup::EventSetupsController::isLastMatch(), crabWrapper::key, logInfoWhenSharing(), edm::eventsetup::EventSetupsController::lookForMatches(), muonDTDigis_cfi::pset, psetIDToRecordKey_, recordProvider(), recordProviders_, subProcessIndex(), and subProcessIndex_.
void edm::eventsetup::EventSetupProvider::clearInitializationData | ( | ) |
Definition at line 647 of file EventSetupProvider.cc.
References preferredProviderInfo_, psetIDToRecordKey_, recordsWithALooperProxy_, recordToFinders_, recordToPreferred_, and referencedDataKeys_.
|
private |
Definition at line 161 of file EventSetupProvider.cc.
References makeMuonMisalignmentScenario::components, edm::eventsetup::DataProxyProvider::KeyedProxies::contains(), Exception, edm::eventsetup::heterocontainer::HCTypeTag::findType(), edm::eventsetup::preferEverything(), preferredProviderInfo_, edm::eventsetup::EventSetupRecordProvider::proxyProvider(), edm::eventsetup::EventSetupRecordProvider::proxyProviderDescriptions(), align_cfg::recordName, recordProvider(), recordProviders_, recordToPreferred_, AlCaHLTBitMon_QueryRunRegistry::string, and edm::eventsetup::EventSetupRecordKey::type().
Referenced by finishConfiguration().
bool edm::eventsetup::EventSetupProvider::doRecordsMatch | ( | EventSetupProvider & | precedingESProvider, |
EventSetupRecordKey const & | eventSetupRecordKey, | ||
std::map< EventSetupRecordKey, bool > & | allComponentsMatch, | ||
EventSetupsController const & | esController | ||
) |
Definition at line 540 of file EventSetupProvider.cc.
References edm::eventsetup::EventSetupRecordProvider::dependentRecords(), fillReferencedDataKeys(), HLT_2023v12_cff::finder, edm::eventsetup::EventSetupsController::isMatchingESProducer(), edm::eventsetup::EventSetupsController::isMatchingESSource(), recordsWithALooperProxy_, recordToFinders_, referencedDataKeys_, findQualityFiles::size, subProcessIndex_, and tryToGetRecordProvider().
Referenced by checkESProducerSharing().
bool edm::eventsetup::EventSetupProvider::doWeNeedToWaitForIOVsToFinish | ( | IOVSyncValue const & | iValue | ) | const |
Definition at line 715 of file EventSetupProvider.cc.
References recordProviders_.
std::shared_ptr< const EventSetupImpl > edm::eventsetup::EventSetupProvider::eventSetupForInstance | ( | IOVSyncValue const & | iValue, |
bool & | newEventSetupImpl | ||
) |
Definition at line 676 of file EventSetupProvider.cc.
References eventSetupImpl_, edm::get_underlying_safe(), DetStateFilter::Invalid, recordKeys_, and recordProviders_.
|
inline |
Definition at line 78 of file EventSetupProvider.h.
References eventSetupImpl_.
void edm::eventsetup::EventSetupProvider::fillKeys | ( | std::set< EventSetupRecordKey > & | keys | ) | const |
Definition at line 750 of file EventSetupProvider.cc.
References relativeConstraints::keys, and recordProviders_.
void edm::eventsetup::EventSetupProvider::fillRecordsNotAllowingConcurrentIOVs | ( | std::set< EventSetupRecordKey > & | recordsNotAllowingConcurrentIOVs | ) | const |
Definition at line 656 of file EventSetupProvider.cc.
References dataProviders_.
Referenced by edm::eventsetup::NumberOfConcurrentIOVs::fillRecordsNotAllowingConcurrentIOVs().
void edm::eventsetup::EventSetupProvider::fillReferencedDataKeys | ( | EventSetupRecordKey const & | eventSetupRecordKey | ) |
Definition at line 623 of file EventSetupProvider.cc.
References edm::eventsetup::EventSetupRecordProvider::fillReferencedDataKeys(), referencedDataKeys_, and tryToGetRecordProvider().
Referenced by doRecordsMatch().
void edm::eventsetup::EventSetupProvider::finishConfiguration | ( | NumberOfConcurrentIOVs const & | numberOfConcurrentIOVs, |
bool & | hasNonconcurrentFinder | ||
) |
Definition at line 233 of file EventSetupProvider.cc.
References activityRegistry_, edm::eventsetup::EventSetupRecordProvider::add(), edm::eventsetup::EventSetupRecordProvider::addFinder(), dataProviders_, determinePreferred(), HLT_2023v12_cff::distance, HLT_2023v12_cff::finder, finders_, dqmdumpme::indices, insert(), crabWrapper::key, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, mustFinishConfiguration_, options_cfi::numberOfConcurrentIOVs, psetIDToRecordKey_, recordKeys_, recordProviders_, recordsToProxyIndices(), recordsWithALooperProxy_, recordToFinders_, recordToPreferred_, AlCaHLTBitMon_QueryRunRegistry::string, and tryToGetRecordProvider().
void edm::eventsetup::EventSetupProvider::forceCacheClear | ( | ) |
Used when testing that all code properly updates on IOV changes of all Records.
Definition at line 388 of file EventSetupProvider.cc.
References recordProviders_.
Referenced by ~EventSetupProvider().
|
private |
Definition at line 78 of file EventSetupProvider.cc.
References HLT_2023v12_cff::distance, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, eostools::move(), recordKeys_, and recordProviders_.
Referenced by SequenceTypes.Schedule::_replaceIfHeldDirectly(), addRecord(), and finishConfiguration().
|
static |
Definition at line 771 of file EventSetupProvider.cc.
References edm::ParameterSet::getParameter(), label, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by checkESProducerSharing().
|
delete |
std::set< ComponentDescription > edm::eventsetup::EventSetupProvider::proxyProviderDescriptions | ( | ) | const |
Definition at line 724 of file EventSetupProvider.cc.
References ztail::d, dataProviders_, AlCaHLTBitMon_ParallelJobs::p, and recordProviders_.
|
private |
Definition at line 59 of file EventSetupProvider.cc.
References HLT_2023v12_cff::distance, Exception, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, recordKeys_, and recordProviders_.
Referenced by checkESProducerSharing(), determinePreferred(), and replaceExisting().
ESRecordsToProxyIndices edm::eventsetup::EventSetupProvider::recordsToProxyIndices | ( | ) | const |
Definition at line 756 of file EventSetupProvider.cc.
References recordKeys_, recordProviders_, and runTheMatrix::ret.
Referenced by finishConfiguration().
void edm::eventsetup::EventSetupProvider::replaceExisting | ( | std::shared_ptr< DataProxyProvider > | dataProxyProvider | ) |
Definition at line 98 of file EventSetupProvider.cc.
References crabWrapper::key, and recordProvider().
Referenced by edm::eventsetup::ModuleMakerTraits::replaceExisting().
void edm::eventsetup::EventSetupProvider::resetRecordPlusDependentRecords | ( | EventSetupRecordKey const & | iKey | ) |
Used when we need to force a Record to reset all its proxies.
Definition at line 371 of file EventSetupProvider.cc.
References ztail::d, edm::eventsetup::findDependents(), recordProviders_, edm::eventsetup::EventSetupRecordProvider::resetProxies(), tryToGetRecordProvider(), and tier0::unique().
Referenced by edm::EDLooperBase::prepareForNextLoop().
void edm::eventsetup::EventSetupProvider::resetRecordToProxyPointers | ( | ) |
Definition at line 635 of file EventSetupProvider.cc.
References recordProviders_, and recordToPreferred_.
void edm::eventsetup::EventSetupProvider::setAllValidityIntervals | ( | const IOVSyncValue & | iValue | ) |
Set the validity intervals in all EventSetupRecordProviders.
Definition at line 663 of file EventSetupProvider.cc.
References recordProviders_.
void edm::eventsetup::EventSetupProvider::setPreferredProviderInfo | ( | PreferredProviderInfo const & | iInfo | ) |
Definition at line 746 of file EventSetupProvider.cc.
References preferredProviderInfo_.
|
inline |
Definition at line 110 of file EventSetupProvider.h.
References subProcessIndex_.
Referenced by checkESProducerSharing().
EventSetupRecordProvider * edm::eventsetup::EventSetupProvider::tryToGetRecordProvider | ( | const EventSetupRecordKey & | iKey | ) |
Definition at line 69 of file EventSetupProvider.cc.
References HLT_2023v12_cff::distance, pfDeepBoostedJetPreprocessParams_cfi::lower_bound, recordKeys_, and recordProviders_.
Referenced by doRecordsMatch(), fillReferencedDataKeys(), finishConfiguration(), and resetRecordPlusDependentRecords().
|
private |
Definition at line 138 of file EventSetupProvider.h.
Referenced by add(), and finishConfiguration().
|
private |
Definition at line 148 of file EventSetupProvider.h.
Referenced by add(), fillRecordsNotAllowingConcurrentIOVs(), finishConfiguration(), and proxyProviderDescriptions().
|
private |
Definition at line 142 of file EventSetupProvider.h.
Referenced by addRecord(), eventSetupForInstance(), and eventSetupImpl().
|
private |
Definition at line 147 of file EventSetupProvider.h.
Referenced by add(), and finishConfiguration().
|
private |
Definition at line 140 of file EventSetupProvider.h.
Referenced by finishConfiguration().
|
private |
Definition at line 146 of file EventSetupProvider.h.
Referenced by clearInitializationData(), determinePreferred(), and setPreferredProviderInfo().
|
private |
Definition at line 152 of file EventSetupProvider.h.
Referenced by checkESProducerSharing(), clearInitializationData(), and finishConfiguration().
|
private |
Definition at line 133 of file EventSetupProvider.h.
Referenced by addRecord(), eventSetupForInstance(), finishConfiguration(), insert(), recordProvider(), recordsToProxyIndices(), and tryToGetRecordProvider().
|
private |
Definition at line 136 of file EventSetupProvider.h.
Referenced by checkESProducerSharing(), determinePreferred(), doWeNeedToWaitForIOVsToFinish(), eventSetupForInstance(), fillKeys(), finishConfiguration(), forceCacheClear(), insert(), proxyProviderDescriptions(), recordProvider(), recordsToProxyIndices(), resetRecordPlusDependentRecords(), resetRecordToProxyPointers(), setAllValidityIntervals(), and tryToGetRecordProvider().
|
private |
Definition at line 154 of file EventSetupProvider.h.
Referenced by clearInitializationData(), doRecordsMatch(), and finishConfiguration().
|
private |
Definition at line 151 of file EventSetupProvider.h.
Referenced by clearInitializationData(), doRecordsMatch(), and finishConfiguration().
|
private |
Definition at line 153 of file EventSetupProvider.h.
Referenced by clearInitializationData(), determinePreferred(), finishConfiguration(), and resetRecordToProxyPointers().
|
private |
Definition at line 149 of file EventSetupProvider.h.
Referenced by clearInitializationData(), doRecordsMatch(), and fillReferencedDataKeys().
|
private |
Definition at line 141 of file EventSetupProvider.h.
Referenced by checkESProducerSharing(), doRecordsMatch(), and subProcessIndex().