1 #ifndef FWCore_Framework_EventSetupProvider_h 2 #define FWCore_Framework_EventSetupProvider_h 41 namespace eventsetup {
42 struct ComponentDescription;
48 class EventSetupsController;
49 class ParameterSetIDHolder;
78 void add(std::shared_ptr<DataProxyProvider>);
80 void add(std::shared_ptr<EventSetupRecordIntervalFinder>);
91 std::set<ParameterSetIDHolder>& sharingCheckDone,
97 std::map<EventSetupRecordKey, bool> & allComponentsMatch,
112 void insert(std::unique_ptr<EventSetupRecordProvider> iRecordProvider);
123 typedef std::map<EventSetupRecordKey, std::shared_ptr<EventSetupRecordProvider> >
Providers;
132 std::unique_ptr<std::vector<std::shared_ptr<EventSetupRecordIntervalFinder> > >
finders_;
133 std::unique_ptr<std::vector<std::shared_ptr<DataProxyProvider> > >
dataProviders_;
134 std::unique_ptr<std::map<EventSetupRecordKey, std::map<DataKey, ComponentDescription const*> > >
referencedDataKeys_;
135 std::unique_ptr<std::map<EventSetupRecordKey, std::vector<std::shared_ptr<EventSetupRecordIntervalFinder> > > >
recordToFinders_;
137 std::unique_ptr<std::map<EventSetupRecordKey, std::map<DataKey, ComponentDescription> > >
recordToPreferred_;
EventSetup const & eventSetupForInstance(IOVSyncValue const &)
void finishConfiguration()
static void logInfoWhenSharing(ParameterSet const &iConfiguration)
void forceCacheClear()
Used when testing that all code properly updates on IOV changes of all Records.
EventSetupProvider(ActivityRegistry *, unsigned subProcessIndex=0U, PreferredProviderInfo const *iInfo=0)
bool mustFinishConfiguration_
std::unique_ptr< std::map< ParameterSetIDHolder, std::set< EventSetupRecordKey > > > psetIDToRecordKey_
std::multimap< RecordName, DataKeyInfo > RecordToDataMap
std::unique_ptr< std::map< EventSetupRecordKey, std::map< DataKey, ComponentDescription const * > > > referencedDataKeys_
void resetRecordPlusDependentRecords(EventSetupRecordKey const &)
Used when we need to force a Record to reset all its proxies.
void fillReferencedDataKeys(EventSetupRecordKey const &eventSetupRecordKey)
std::map< ComponentDescription, RecordToDataMap > PreferredProviderInfo
void insert(std::unique_ptr< EventSetupRecordProvider > iRecordProvider)
void add(std::shared_ptr< DataProxyProvider >)
EventSetupProvider const & operator=(EventSetupProvider const &)=delete
virtual ~EventSetupProvider()
EventSetup const & eventSetup() const
std::unique_ptr< std::set< EventSetupRecordKey > > recordsWithALooperProxy_
std::unique_ptr< std::vector< std::shared_ptr< EventSetupRecordIntervalFinder > > > finders_
std::pair< DataType, DataLabel > DataKeyInfo
std::unique_ptr< PreferredProviderInfo > preferredProviderInfo_
std::unique_ptr< std::vector< std::shared_ptr< DataProxyProvider > > > dataProviders_
std::unique_ptr< std::map< EventSetupRecordKey, std::vector< std::shared_ptr< EventSetupRecordIntervalFinder > > > > recordToFinders_
void resetRecordToProxyPointers()
void checkESProducerSharing(EventSetupProvider &precedingESProvider, std::set< ParameterSetIDHolder > &sharingCheckDone, std::map< EventSetupRecordKey, std::vector< ComponentDescription const * > > &referencedESProducers, EventSetupsController &esController)
unsigned subProcessIndex() const
std::unique_ptr< EventSetupKnownRecordsSupplier > knownRecordsSupplier_
std::map< EventSetupRecordKey, std::shared_ptr< EventSetupRecordProvider > > Providers
void addRecordToEventSetup(EventSetupRecordImpl &iRecord)
std::unique_ptr< std::map< EventSetupRecordKey, std::map< DataKey, ComponentDescription > > > recordToPreferred_
void clearInitializationData()
void replaceExisting(std::shared_ptr< DataProxyProvider >)
std::set< ComponentDescription > proxyProviderDescriptions() const
unsigned subProcessIndex_
bool isWithinValidityInterval(IOVSyncValue const &) const
bool doRecordsMatch(EventSetupProvider &precedingESProvider, EventSetupRecordKey const &eventSetupRecordKey, std::map< EventSetupRecordKey, bool > &allComponentsMatch, EventSetupsController const &esController)