#include <EventSetupRecordProvider.h>
Public Types | |
typedef std::map< DataKey, ComponentDescription > | DataToPreferredProviderMap |
Public Member Functions | |
void | add (std::shared_ptr< DataProxyProvider >) |
void | addFinder (std::shared_ptr< EventSetupRecordIntervalFinder >) |
For now, only use one finder. More... | |
void | addRecordTo (EventSetupProvider &) |
void | addRecordToIfValid (EventSetupProvider &, IOVSyncValue const &) |
std::vector< ComponentDescription const * > | componentsForRegisteredDataKeys () const |
std::set< EventSetupRecordKey > | dependentRecords () const |
Returns the list of Records the provided Record depends on (usually none) More... | |
EventSetupRecordProvider (EventSetupRecordKey const &iKey) | |
void | fillReferencedDataKeys (std::map< DataKey, ComponentDescription const * > &referencedDataKeys) const |
std::shared_ptr< EventSetupRecordIntervalFinder const > | finder () const |
std::shared_ptr< EventSetupRecordIntervalFinder > & | finder () |
void | getReferencedESProducers (std::map< EventSetupRecordKey, std::vector< ComponentDescription const * >> &referencedESProducers) |
EventSetupRecordKey const & | key () const |
std::shared_ptr< DataProxyProvider > | proxyProvider (ComponentDescription const &) |
returns the first matching DataProxyProvider or a 'null' if not found More... | |
std::shared_ptr< DataProxyProvider > | proxyProvider (ParameterSetIDHolder const &) |
returns the first matching DataProxyProvider or a 'null' if not found More... | |
std::set< ComponentDescription > | proxyProviderDescriptions () const |
return information on which DataProxyProviders are supplying information More... | |
EventSetupRecordImpl const & | record () const |
EventSetupRecordImpl & | record () |
std::vector< DataKey > | registeredDataKeys () const |
The available DataKeys in the Record. The order can be used to request the data by index. More... | |
void | resetProxies () |
This will clear the cache's of all the Proxies so that next time they are called they will run. More... | |
void | resetProxyProvider (ParameterSetIDHolder const &, std::shared_ptr< DataProxyProvider > const &) |
void | resetRecordToProxyPointers (DataToPreferredProviderMap const &iMap) |
void | setDependentProviders (std::vector< std::shared_ptr< EventSetupRecordProvider >> const &) |
If the provided Record depends on other Records, here are the dependent Providers. More... | |
void | setValidityInterval (ValidityInterval const &) |
bool | setValidityIntervalFor (IOVSyncValue const &) |
sets interval to this time and returns true if have a valid interval for time More... | |
void | usePreferred (DataToPreferredProviderMap const &) |
ValidityInterval const & | validityInterval () const |
Protected Member Functions | |
void | addProxiesToRecord (std::shared_ptr< DataProxyProvider >, DataToPreferredProviderMap const &) |
void | addProxiesToRecordHelper (edm::propagate_const< std::shared_ptr< DataProxyProvider >> &dpp, DataToPreferredProviderMap const &mp) |
void | cacheReset () |
std::shared_ptr< EventSetupRecordIntervalFinder > | swapFinder (std::shared_ptr< EventSetupRecordIntervalFinder > iNew) |
Private Member Functions | |
bool | checkResetTransients () |
EventSetupRecordProvider (EventSetupRecordProvider const &)=delete | |
EventSetupRecordProvider const & | operator= (EventSetupRecordProvider const &)=delete |
void | resetTransients () |
Private Attributes | |
edm::propagate_const< std::shared_ptr< EventSetupRecordIntervalFinder > > | finder_ |
EventSetupRecordKey const | key_ |
bool | lastSyncWasBeginOfRun_ |
std::unique_ptr< std::vector< edm::propagate_const< std::shared_ptr< EventSetupRecordIntervalFinder > > > > | multipleFinders_ |
std::vector< edm::propagate_const< std::shared_ptr< DataProxyProvider > > > | providers_ |
EventSetupRecordImpl | record_ |
ValidityInterval | validityInterval_ |
Definition at line 46 of file EventSetupRecordProvider.h.
typedef std::map<DataKey, ComponentDescription> edm::eventsetup::EventSetupRecordProvider::DataToPreferredProviderMap |
Definition at line 48 of file EventSetupRecordProvider.h.
edm::eventsetup::EventSetupRecordProvider::EventSetupRecordProvider | ( | EventSetupRecordKey const & | iKey | ) |
Referenced by swapFinder().
|
privatedelete |
void EventSetupRecordProvider::add | ( | std::shared_ptr< DataProxyProvider > | iProvider | ) |
Definition at line 74 of file EventSetupRecordProvider.cc.
References edm::search_all().
Referenced by edm::eventsetup::EventSetupProvider::finishConfiguration(), record(), counter.Counter::register(), SequenceTypes.Task::remove(), and SequenceTypes.Task::replace().
void EventSetupRecordProvider::addFinder | ( | std::shared_ptr< EventSetupRecordIntervalFinder > | iFinder | ) |
For now, only use one finder.
Definition at line 81 of file EventSetupRecordProvider.cc.
References Exception, and ghostTrackVertexReco_cff::finder.
Referenced by edm::eventsetup::EventSetupProvider::finishConfiguration(), and record().
|
protected |
Definition at line 131 of file EventSetupRecordProvider.cc.
Referenced by addProxiesToRecordHelper().
|
inlineprotected |
Definition at line 112 of file EventSetupRecordProvider.h.
References addProxiesToRecord(), cacheReset(), and edm::get_underlying_safe().
Referenced by resetRecordToProxyPointers(), and usePreferred().
void EventSetupRecordProvider::addRecordTo | ( | EventSetupProvider & | iEventSetupProvider | ) |
Definition at line 151 of file EventSetupRecordProvider.cc.
References edm::eventsetup::EventSetupProvider::addRecordToEventSetup().
Referenced by record().
void EventSetupRecordProvider::addRecordToIfValid | ( | EventSetupProvider & | , |
IOVSyncValue const & | |||
) |
Definition at line 166 of file EventSetupRecordProvider.cc.
Referenced by record().
|
protected |
Definition at line 240 of file EventSetupRecordProvider.cc.
References record.
Referenced by addProxiesToRecordHelper().
|
private |
Definition at line 242 of file EventSetupRecordProvider.cc.
References record.
Referenced by swapFinder().
std::vector< ComponentDescription const * > EventSetupRecordProvider::componentsForRegisteredDataKeys | ( | ) | const |
Definition at line 292 of file EventSetupRecordProvider.cc.
Referenced by record().
std::set< EventSetupRecordKey > EventSetupRecordProvider::dependentRecords | ( | ) | const |
Returns the list of Records the provided Record depends on (usually none)
Definition at line 244 of file EventSetupRecordProvider.cc.
References edm::eventsetup::dependencies(), and crabWrapper::key.
Referenced by edm::eventsetup::EventSetupProvider::doRecordsMatch(), and record().
void EventSetupRecordProvider::fillReferencedDataKeys | ( | std::map< DataKey, ComponentDescription const * > & | referencedDataKeys | ) | const |
Definition at line 222 of file EventSetupRecordProvider.cc.
References makeMuonMisalignmentScenario::components, gen::k, relativeConstraints::keys, and record.
Referenced by edm::eventsetup::EventSetupProvider::fillReferencedDataKeys(), and finder().
|
inline |
Definition at line 101 of file EventSetupRecordProvider.h.
References finder_, and edm::get_underlying_safe().
Referenced by swapFinder().
|
inline |
Definition at line 102 of file EventSetupRecordProvider.h.
References fillReferencedDataKeys(), finder_, edm::get_underlying_safe(), getReferencedESProducers(), genParticles_cff::map, and resetRecordToProxyPointers().
void EventSetupRecordProvider::getReferencedESProducers | ( | std::map< EventSetupRecordKey, std::vector< ComponentDescription const * >> & | referencedESProducers | ) |
Definition at line 217 of file EventSetupRecordProvider.cc.
References record.
Referenced by finder().
|
inline |
Definition at line 55 of file EventSetupRecordProvider.h.
References key_.
|
privatedelete |
Referenced by swapFinder().
std::shared_ptr< DataProxyProvider > EventSetupRecordProvider::proxyProvider | ( | ComponentDescription const & | iDesc | ) |
returns the first matching DataProxyProvider or a 'null' if not found
Definition at line 256 of file EventSetupRecordProvider.cc.
References edm::eventsetup::DataProxyProvider::description(), and edm::get_underlying_safe().
Referenced by edm::eventsetup::EventSetupProvider::determinePreferred(), and record().
std::shared_ptr< DataProxyProvider > EventSetupRecordProvider::proxyProvider | ( | ParameterSetIDHolder const & | psetID | ) |
returns the first matching DataProxyProvider or a 'null' if not found
Definition at line 268 of file EventSetupRecordProvider.cc.
References edm::get_underlying_safe(), and edm::eventsetup::ParameterSetIDHolder::psetID().
std::set< ComponentDescription > EventSetupRecordProvider::proxyProviderDescriptions | ( | ) | const |
return information on which DataProxyProviders are supplying information
Definition at line 246 of file EventSetupRecordProvider.cc.
References edm::eventsetup::DataProxyProvider::description(), and create_public_lumi_plots::transform.
Referenced by edm::eventsetup::EventSetupProvider::determinePreferred(), and record().
|
inline |
Definition at line 57 of file EventSetupRecordProvider.h.
References record_.
|
inline |
Definition at line 58 of file EventSetupRecordProvider.h.
References add(), addFinder(), addRecordTo(), addRecordToIfValid(), componentsForRegisteredDataKeys(), dependentRecords(), proxyProvider(), proxyProviderDescriptions(), record_, registeredDataKeys(), resetProxies(), resetProxyProvider(), setDependentProviders(), setValidityInterval(), setValidityIntervalFor(), and usePreferred().
std::vector< DataKey > EventSetupRecordProvider::registeredDataKeys | ( | ) | const |
The available DataKeys in the Record. The order can be used to request the data by index.
Definition at line 286 of file EventSetupRecordProvider.cc.
Referenced by record().
void EventSetupRecordProvider::resetProxies | ( | ) |
This will clear the cache's of all the Proxies so that next time they are called they will run.
Definition at line 207 of file EventSetupRecordProvider.cc.
References edm::for_all(), edm::eventsetup::DataProxyProvider::resetProxies(), and edm::eventsetup::DataProxyProvider::resetProxiesIfTransient().
Referenced by record(), and edm::eventsetup::EventSetupProvider::resetRecordPlusDependentRecords().
void EventSetupRecordProvider::resetProxyProvider | ( | ParameterSetIDHolder const & | psetID, |
std::shared_ptr< DataProxyProvider > const & | sharedDataProxyProvider | ||
) |
Definition at line 277 of file EventSetupRecordProvider.cc.
References edm::eventsetup::ParameterSetIDHolder::psetID().
Referenced by record().
void EventSetupRecordProvider::resetRecordToProxyPointers | ( | DataToPreferredProviderMap const & | iMap | ) |
Definition at line 234 of file EventSetupRecordProvider.cc.
References addProxiesToRecordHelper(), edm::for_all(), and record.
Referenced by finder().
|
private |
Definition at line 159 of file EventSetupRecordProvider.cc.
References edm::for_all(), and edm::eventsetup::DataProxyProvider::resetProxiesIfTransient().
Referenced by swapFinder().
void EventSetupRecordProvider::setDependentProviders | ( | std::vector< std::shared_ptr< EventSetupRecordProvider >> const & | ) |
If the provided Record depends on other Records, here are the dependent Providers.
Definition at line 101 of file EventSetupRecordProvider.cc.
References crabWrapper::key, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by record().
void EventSetupRecordProvider::setValidityInterval | ( | ValidityInterval const & | ) |
Definition at line 97 of file EventSetupRecordProvider.cc.
Referenced by record().
bool EventSetupRecordProvider::setValidityIntervalFor | ( | IOVSyncValue const & | ) |
sets interval to this time and returns true if have a valid interval for time
Definition at line 173 of file EventSetupRecordProvider.cc.
References edm::EventID::event(), edm::IOVSyncValue::eventID(), and edm::IOVSyncValue::invalidIOVSyncValue().
Referenced by record().
|
inlineprotected |
Definition at line 119 of file EventSetupRecordProvider.h.
References checkResetTransients(), EventSetupRecordProvider(), finder(), operator=(), resetTransients(), and std::swap().
void EventSetupRecordProvider::usePreferred | ( | DataToPreferredProviderMap const & | ) |
In the case of a conflict, sets what Provider to call. This must be called after all providers have been added. An empty map is acceptable.
Definition at line 118 of file EventSetupRecordProvider.cc.
References addProxiesToRecordHelper(), and edm::for_all().
Referenced by record().
|
inline |
Definition at line 54 of file EventSetupRecordProvider.h.
References validityInterval_.
|
private |
Definition at line 135 of file EventSetupRecordProvider.h.
Referenced by finder().
|
private |
Definition at line 133 of file EventSetupRecordProvider.h.
Referenced by key().
|
private |
Definition at line 139 of file EventSetupRecordProvider.h.
|
private |
Definition at line 138 of file EventSetupRecordProvider.h.
|
private |
Definition at line 136 of file EventSetupRecordProvider.h.
|
private |
Definition at line 132 of file EventSetupRecordProvider.h.
Referenced by record().
|
private |
Definition at line 134 of file EventSetupRecordProvider.h.
Referenced by validityInterval().