1 #ifndef FWCore_Framework_EventSetupProvider_h
2 #define FWCore_Framework_EventSetupProvider_h
40 namespace eventsetup {
41 struct ComponentDescription;
47 class EventSetupsController;
48 class ParameterSetIDHolder;
76 void add(std::shared_ptr<DataProxyProvider>);
78 void add(std::shared_ptr<EventSetupRecordIntervalFinder>);
89 std::set<ParameterSetIDHolder>& sharingCheckDone,
90 std::map<
EventSetupRecordKey, std::vector<ComponentDescription const*> >& referencedESProducers,
95 std::map<EventSetupRecordKey, bool> & allComponentsMatch,
110 template <
typename T>
111 void insert(std::auto_ptr<T> iRecordProvider) {
112 std::auto_ptr<EventSetupRecordProvider>
temp(iRecordProvider.release());
114 typename T::RecordType,
128 typedef std::map<EventSetupRecordKey, std::shared_ptr<EventSetupRecordProvider> >
Providers;
137 std::unique_ptr<std::vector<std::shared_ptr<EventSetupRecordIntervalFinder> > >
finders_;
138 std::unique_ptr<std::vector<std::shared_ptr<DataProxyProvider> > >
dataProviders_;
139 std::unique_ptr<std::map<EventSetupRecordKey, std::map<DataKey, ComponentDescription const*> > >
referencedDataKeys_;
140 std::unique_ptr<std::map<EventSetupRecordKey, std::vector<std::shared_ptr<EventSetupRecordIntervalFinder> > > >
recordToFinders_;
142 std::unique_ptr<std::map<EventSetupRecordKey, std::map<DataKey, ComponentDescription> > >
recordToPreferred_;
EventSetup const & eventSetupForInstance(IOVSyncValue const &)
void finishConfiguration()
Key makeKey(const IdTag &iIdTag)
static void logInfoWhenSharing(ParameterSet const &iConfiguration)
EventSetupProvider const & operator=(EventSetupProvider const &)
void forceCacheClear()
Used when testing that all code properly updates on IOV changes of all Records.
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 insert(std::auto_ptr< T > iRecordProvider)
void fillReferencedDataKeys(EventSetupRecordKey const &eventSetupRecordKey)
void addRecordToEventSetup(EventSetupRecord &iRecord)
std::map< ComponentDescription, RecordToDataMap > PreferredProviderInfo
void add(std::shared_ptr< DataProxyProvider >)
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)
EventSetupProvider(unsigned subProcessIndex=0U, PreferredProviderInfo const *iInfo=0)
unsigned subProcessIndex() const
std::unique_ptr< EventSetupKnownRecordsSupplier > knownRecordsSupplier_
std::map< EventSetupRecordKey, std::shared_ptr< EventSetupRecordProvider > > Providers
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 doRecordsMatch(EventSetupProvider &precedingESProvider, EventSetupRecordKey const &eventSetupRecordKey, std::map< EventSetupRecordKey, bool > &allComponentsMatch, EventSetupsController const &esController)