#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 | addRecordToEventSetup (EventSetupRecord &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) |
EventSetup const & | eventSetup () const |
EventSetup const & | eventSetupForInstance (IOVSyncValue const &) |
EventSetupProvider (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... | |
std::set< ComponentDescription > | proxyProviderDescriptions () 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 | |
template<typename T > | |
void | insert (std::unique_ptr< T > iRecordProvider) |
Private Types | |
typedef std::map< EventSetupRecordKey, std::shared_ptr< EventSetupRecordProvider > > | Providers |
Private Member Functions | |
EventSetupProvider (EventSetupProvider const &) | |
void | insert (EventSetupRecordKey const &, std::unique_ptr< EventSetupRecordProvider >) |
EventSetupProvider const & | operator= (EventSetupProvider const &) |
Private Attributes | |
std::unique_ptr< std::vector< std::shared_ptr< DataProxyProvider > > > | dataProviders_ |
EventSetup | eventSetup_ |
std::unique_ptr< std::vector< std::shared_ptr< EventSetupRecordIntervalFinder > > > | finders_ |
std::unique_ptr< EventSetupKnownRecordsSupplier > | knownRecordsSupplier_ |
bool | mustFinishConfiguration_ |
std::unique_ptr< PreferredProviderInfo > | preferredProviderInfo_ |
Providers | providers_ |
std::unique_ptr< std::map< ParameterSetIDHolder, std::set< EventSetupRecordKey > > > | psetIDToRecordKey_ |
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 56 of file EventSetupProvider.h.
typedef std::string edm::eventsetup::EventSetupProvider::DataLabel |
Definition at line 55 of file EventSetupProvider.h.
typedef std::string edm::eventsetup::EventSetupProvider::DataType |
Definition at line 54 of file EventSetupProvider.h.
typedef std::map<ComponentDescription, RecordToDataMap> edm::eventsetup::EventSetupProvider::PreferredProviderInfo |
Definition at line 58 of file EventSetupProvider.h.
|
private |
Definition at line 128 of file EventSetupProvider.h.
typedef std::string edm::eventsetup::EventSetupProvider::RecordName |
Definition at line 53 of file EventSetupProvider.h.
typedef std::multimap<RecordName, DataKeyInfo> edm::eventsetup::EventSetupProvider::RecordToDataMap |
Definition at line 57 of file EventSetupProvider.h.
edm::eventsetup::EventSetupProvider::EventSetupProvider | ( | unsigned | subProcessIndex = 0U , |
PreferredProviderInfo const * | iInfo = 0 |
||
) |
Referenced by insert().
|
virtual |
Definition at line 87 of file EventSetupProvider.cc.
References edm::eventsetup::heterocontainer::insert(), and groupFilesInBlocks::temp.
|
private |
void EventSetupProvider::add | ( | std::shared_ptr< DataProxyProvider > | iProvider | ) |
Definition at line 115 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 133 of file EventSetupProvider.cc.
Referenced by counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().
void EventSetupProvider::addRecordToEventSetup | ( | EventSetupRecord & | iRecord | ) |
Definition at line 735 of file EventSetupProvider.cc.
References edm::eventsetup::EventSetupRecord::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 452 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(), match(), providers_, muonDTDigis_cfi::pset, psetIDToRecordKey_, subProcessIndex(), and subProcessIndex_.
Referenced by eventSetup().
void EventSetupProvider::clearInitializationData | ( | ) |
Definition at line 725 of file EventSetupProvider.cc.
Referenced by eventSetup().
bool EventSetupProvider::doRecordsMatch | ( | EventSetupProvider & | precedingESProvider, |
EventSetupRecordKey const & | eventSetupRecordKey, | ||
std::map< EventSetupRecordKey, bool > & | allComponentsMatch, | ||
EventSetupsController const & | esController | ||
) |
Definition at line 612 of file EventSetupProvider.cc.
References fillReferencedDataKeys(), ghostTrackVertexReco_cff::finder, edm::eventsetup::EventSetupsController::isMatchingESProducer(), edm::eventsetup::EventSetupsController::isMatchingESSource(), match(), recordsWithALooperProxy_, recordToFinders_, referencedDataKeys_, findQualityFiles::size, and subProcessIndex_.
Referenced by eventSetup().
|
inline |
Definition at line 71 of file EventSetupProvider.h.
References add(), addRecordToEventSetup(), checkESProducerSharing(), clearInitializationData(), doRecordsMatch(), eventSetup_, fillReferencedDataKeys(), finishConfiguration(), forceCacheClear(), genParticles_cff::map, replaceExisting(), resetRecordPlusDependentRecords(), and resetRecordToProxyPointers().
EventSetup const & EventSetupProvider::eventSetupForInstance | ( | IOVSyncValue const & | ) |
Definition at line 744 of file EventSetupProvider.cc.
References edm::EventSetup::setIOVSyncValue().
void EventSetupProvider::fillReferencedDataKeys | ( | EventSetupRecordKey const & | eventSetupRecordKey | ) |
Definition at line 697 of file EventSetupProvider.cc.
Referenced by doRecordsMatch(), and eventSetup().
void EventSetupProvider::finishConfiguration | ( | ) |
Definition at line 281 of file EventSetupProvider.cc.
References edm::eventsetup::determinePreferred(), edm::eventsetup::heterocontainer::insert(), instance, 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 442 of file EventSetupProvider.cc.
Referenced by eventSetup().
|
inlineprotected |
Definition at line 111 of file EventSetupProvider.h.
References EventSetupProvider(), edm::eventsetup::heterocontainer::makeKey(), eostools::move(), operator=(), and groupFilesInBlocks::temp.
|
private |
|
static |
Definition at line 787 of file EventSetupProvider.cc.
References edm::ParameterSet::getParameter(), diffTwoXMLs::label, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by subProcessIndex().
|
private |
Referenced by insert().
std::set< ComponentDescription > EventSetupProvider::proxyProviderDescriptions | ( | ) | const |
Definition at line 766 of file EventSetupProvider.cc.
References edmIntegrityCheck::d, and AlCaHLTBitMon_ParallelJobs::p.
void EventSetupProvider::replaceExisting | ( | std::shared_ptr< DataProxyProvider > | dataProxyProvider | ) |
Definition at line 122 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 422 of file EventSetupProvider.cc.
References edmIntegrityCheck::d, edm::eventsetup::findDependents(), and tier0::unique().
Referenced by eventSetup(), and edm::EDLooperBase::prepareForNextLoop().
void EventSetupProvider::resetRecordToProxyPointers | ( | ) |
Definition at line 712 of file EventSetupProvider.cc.
Referenced by eventSetup().
|
inline |
Definition at line 104 of file EventSetupProvider.h.
References logInfoWhenSharing(), and subProcessIndex_.
Referenced by checkESProducerSharing().
|
private |
Definition at line 138 of file EventSetupProvider.h.
|
private |
Definition at line 127 of file EventSetupProvider.h.
Referenced by eventSetup().
|
private |
Definition at line 137 of file EventSetupProvider.h.
|
private |
Definition at line 130 of file EventSetupProvider.h.
|
private |
Definition at line 131 of file EventSetupProvider.h.
|
private |
Definition at line 136 of file EventSetupProvider.h.
|
private |
Definition at line 129 of file EventSetupProvider.h.
Referenced by checkESProducerSharing().
|
private |
Definition at line 141 of file EventSetupProvider.h.
Referenced by checkESProducerSharing().
|
private |
Definition at line 143 of file EventSetupProvider.h.
Referenced by doRecordsMatch().
|
private |
Definition at line 140 of file EventSetupProvider.h.
Referenced by doRecordsMatch().
|
private |
Definition at line 142 of file EventSetupProvider.h.
|
private |
Definition at line 139 of file EventSetupProvider.h.
Referenced by doRecordsMatch().
|
private |
Definition at line 132 of file EventSetupProvider.h.
Referenced by checkESProducerSharing(), doRecordsMatch(), and subProcessIndex().