#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 (boost::shared_ptr< DataProxyProvider >) |
void | add (boost::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 (boost::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::auto_ptr< T > iRecordProvider) |
Private Types | |
typedef std::map < EventSetupRecordKey, boost::shared_ptr < EventSetupRecordProvider > > | Providers |
Private Member Functions | |
EventSetupProvider (EventSetupProvider const &) | |
void | insert (EventSetupRecordKey const &, std::auto_ptr< EventSetupRecordProvider >) |
EventSetupProvider const & | operator= (EventSetupProvider const &) |
Private Attributes | |
std::unique_ptr< std::vector < boost::shared_ptr < DataProxyProvider > > > | dataProviders_ |
EventSetup | eventSetup_ |
std::unique_ptr< std::vector < boost::shared_ptr < EventSetupRecordIntervalFinder > > > | finders_ |
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< boost::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.
EventSetupProvider::EventSetupProvider | ( | unsigned | subProcessIndex = 0U , |
PreferredProviderInfo const * | iInfo = 0 |
||
) |
Definition at line 48 of file EventSetupProvider.cc.
|
virtual |
Definition at line 69 of file EventSetupProvider.cc.
|
private |
void EventSetupProvider::add | ( | boost::shared_ptr< DataProxyProvider > | iProvider | ) |
Definition at line 97 of file EventSetupProvider.cc.
References assert(), and dataProviders_.
Referenced by edm::eventsetup::looper::addFinderTo(), edm::eventsetup::addProviderTo(), edm::eventsetup::looper::addProviderTo(), edm::eventsetup::ModuleMakerTraits::addTo(), edm::eventsetup::SourceMakerTraits::addTo(), and counter.Counter::register().
void EventSetupProvider::add | ( | boost::shared_ptr< EventSetupRecordIntervalFinder > | iFinder | ) |
Definition at line 115 of file EventSetupProvider.cc.
References assert(), and finders_.
Referenced by counter.Counter::register().
void EventSetupProvider::addRecordToEventSetup | ( | EventSetupRecord & | iRecord | ) |
Definition at line 717 of file EventSetupProvider.cc.
References edm::EventSetup::add(), eventSetup_, and edm::eventsetup::EventSetupRecord::setEventSetup().
Referenced by edm::eventsetup::EventSetupRecordProvider::addRecordTo().
void EventSetupProvider::checkESProducerSharing | ( | EventSetupProvider & | precedingESProvider, |
std::set< ParameterSetIDHolder > & | sharingCheckDone, | ||
std::map< EventSetupRecordKey, std::vector< ComponentDescription const * > > & | referencedESProducers, | ||
EventSetupsController & | esController | ||
) |
Definition at line 434 of file EventSetupProvider.cc.
References assert(), doRecordsMatch(), edm::eventsetup::ComponentFactory< T >::get(), edm::eventsetup::EventSetupsController::getESProducerPSet(), edm::eventsetup::EventSetupsController::isFirstMatch(), edm::eventsetup::EventSetupsController::isLastMatch(), relval_steps::key, logInfoWhenSharing(), edm::eventsetup::EventSetupsController::lookForMatches(), edm::match(), providers_, psetIDToRecordKey_, subProcessIndex(), and subProcessIndex_.
void EventSetupProvider::clearInitializationData | ( | ) |
Definition at line 707 of file EventSetupProvider.cc.
References preferredProviderInfo_, psetIDToRecordKey_, recordsWithALooperProxy_, recordToFinders_, recordToPreferred_, and referencedDataKeys_.
bool EventSetupProvider::doRecordsMatch | ( | EventSetupProvider & | precedingESProvider, |
EventSetupRecordKey const & | eventSetupRecordKey, | ||
std::map< EventSetupRecordKey, bool > & | allComponentsMatch, | ||
EventSetupsController const & | esController | ||
) |
Definition at line 594 of file EventSetupProvider.cc.
References fillReferencedDataKeys(), edm::eventsetup::EventSetupsController::isMatchingESProducer(), edm::eventsetup::EventSetupsController::isMatchingESSource(), edm::match(), providers_, recordsWithALooperProxy_, recordToFinders_, referencedDataKeys_, findQualityFiles::size, and subProcessIndex_.
Referenced by checkESProducerSharing().
|
inline |
Definition at line 71 of file EventSetupProvider.h.
References eventSetup_.
EventSetup const & EventSetupProvider::eventSetupForInstance | ( | IOVSyncValue const & | iValue | ) |
Definition at line 726 of file EventSetupProvider.cc.
References edm::EventSetup::clear(), eventSetup_, finishConfiguration(), mustFinishConfiguration_, providers_, and edm::EventSetup::setIOVSyncValue().
void EventSetupProvider::fillReferencedDataKeys | ( | EventSetupRecordKey const & | eventSetupRecordKey | ) |
Definition at line 679 of file EventSetupProvider.cc.
References providers_, and referencedDataKeys_.
Referenced by doRecordsMatch().
void EventSetupProvider::finishConfiguration | ( | ) |
Definition at line 263 of file EventSetupProvider.cc.
References dataProviders_, edm::eventsetup::determinePreferred(), finders_, insert(), edm::eventsetup::EventSetupRecordProviderFactoryManager::instance(), mustFinishConfiguration_, preferredProviderInfo_, providers_, psetIDToRecordKey_, recordsWithALooperProxy_, recordToFinders_, recordToPreferred_, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by eventSetupForInstance().
void EventSetupProvider::forceCacheClear | ( | ) |
Used when testing that all code properly updates on IOV changes of all Records.
Definition at line 424 of file EventSetupProvider.cc.
References providers_.
|
inlineprotected |
Definition at line 111 of file EventSetupProvider.h.
References edm::eventsetup::heterocontainer::makeKey(), and groupFilesInBlocks::temp.
Referenced by BeautifulSoup.PageElement::_invert(), and finishConfiguration().
|
private |
Definition at line 89 of file EventSetupProvider.cc.
References providers_, and groupFilesInBlocks::temp.
Referenced by BeautifulSoup.PageElement::_invert().
|
static |
Definition at line 785 of file EventSetupProvider.cc.
References edm::ParameterSet::getParameter(), diffTwoXMLs::label, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by checkESProducerSharing().
|
private |
std::set< ComponentDescription > EventSetupProvider::proxyProviderDescriptions | ( | ) | const |
Definition at line 759 of file EventSetupProvider.cc.
References dataProviders_, edm::for_all(), providers_, edm::eventsetup::EventSetupRecordProvider::proxyProviderDescriptions(), and edm::second().
void EventSetupProvider::replaceExisting | ( | boost::shared_ptr< DataProxyProvider > | dataProxyProvider | ) |
Definition at line 104 of file EventSetupProvider.cc.
References relval_steps::key, and providers_.
Referenced by edm::eventsetup::ModuleMakerTraits::replaceExisting().
void EventSetupProvider::resetRecordPlusDependentRecords | ( | EventSetupRecordKey const & | iKey | ) |
Used when we need to force a Record to reset all its proxies.
Definition at line 404 of file EventSetupProvider.cc.
References edm::eventsetup::findDependents(), edm::for_all(), providers_, and edm::eventsetup::EventSetupRecordProvider::resetProxies().
Referenced by edm::EDLooperBase::prepareForNextLoop().
void EventSetupProvider::resetRecordToProxyPointers | ( | ) |
Definition at line 694 of file EventSetupProvider.cc.
References providers_, and recordToPreferred_.
|
inline |
Definition at line 104 of file EventSetupProvider.h.
References subProcessIndex_.
Referenced by checkESProducerSharing().
|
private |
Definition at line 137 of file EventSetupProvider.h.
Referenced by add(), finishConfiguration(), and proxyProviderDescriptions().
|
private |
Definition at line 127 of file EventSetupProvider.h.
Referenced by addRecordToEventSetup(), eventSetup(), and eventSetupForInstance().
|
private |
Definition at line 136 of file EventSetupProvider.h.
Referenced by add(), and finishConfiguration().
|
private |
Definition at line 130 of file EventSetupProvider.h.
Referenced by eventSetupForInstance(), and finishConfiguration().
|
private |
Definition at line 135 of file EventSetupProvider.h.
Referenced by clearInitializationData(), and finishConfiguration().
|
private |
Definition at line 129 of file EventSetupProvider.h.
Referenced by checkESProducerSharing(), doRecordsMatch(), eventSetupForInstance(), fillReferencedDataKeys(), finishConfiguration(), forceCacheClear(), insert(), proxyProviderDescriptions(), replaceExisting(), resetRecordPlusDependentRecords(), and resetRecordToProxyPointers().
|
private |
Definition at line 140 of file EventSetupProvider.h.
Referenced by checkESProducerSharing(), clearInitializationData(), and finishConfiguration().
|
private |
Definition at line 142 of file EventSetupProvider.h.
Referenced by clearInitializationData(), doRecordsMatch(), and finishConfiguration().
|
private |
Definition at line 139 of file EventSetupProvider.h.
Referenced by clearInitializationData(), doRecordsMatch(), and finishConfiguration().
|
private |
Definition at line 141 of file EventSetupProvider.h.
Referenced by clearInitializationData(), finishConfiguration(), and resetRecordToProxyPointers().
|
private |
Definition at line 138 of file EventSetupProvider.h.
Referenced by clearInitializationData(), doRecordsMatch(), and fillReferencedDataKeys().
|
private |
Definition at line 131 of file EventSetupProvider.h.
Referenced by checkESProducerSharing(), doRecordsMatch(), and subProcessIndex().