1 #ifndef FWCore_Framework_EventSetupProvider_h
2 #define FWCore_Framework_EventSetupProvider_h
25 #include "boost/shared_ptr.hpp"
40 namespace eventsetup {
41 struct ComponentDescription;
47 class EventSetupsController;
48 class ParameterSetIDHolder;
76 void add(boost::shared_ptr<DataProxyProvider>);
78 void add(boost::shared_ptr<EventSetupRecordIntervalFinder>);
89 std::set<ParameterSetIDHolder>& sharingCheckDone,
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, boost::shared_ptr<EventSetupRecordProvider> >
Providers;
136 std::unique_ptr<std::vector<boost::shared_ptr<EventSetupRecordIntervalFinder> > >
finders_;
137 std::unique_ptr<std::vector<boost::shared_ptr<DataProxyProvider> > >
dataProviders_;
138 std::unique_ptr<std::map<EventSetupRecordKey, std::map<DataKey, ComponentDescription const*> > >
referencedDataKeys_;
139 std::unique_ptr<std::map<EventSetupRecordKey, std::vector<boost::shared_ptr<EventSetupRecordIntervalFinder> > > >
recordToFinders_;
141 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(boost::shared_ptr< DataProxyProvider >)
virtual ~EventSetupProvider()
EventSetup const & eventSetup() const
std::unique_ptr< std::set< EventSetupRecordKey > > recordsWithALooperProxy_
std::map< EventSetupRecordKey, boost::shared_ptr< EventSetupRecordProvider > > Providers
std::pair< DataType, DataLabel > DataKeyInfo
std::unique_ptr< PreferredProviderInfo > preferredProviderInfo_
void replaceExisting(boost::shared_ptr< DataProxyProvider >)
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< std::vector< boost::shared_ptr< DataProxyProvider > > > dataProviders_
std::unique_ptr< std::map< EventSetupRecordKey, std::map< DataKey, ComponentDescription > > > recordToPreferred_
void clearInitializationData()
std::unique_ptr< std::map< EventSetupRecordKey, std::vector< boost::shared_ptr< EventSetupRecordIntervalFinder > > > > recordToFinders_
std::set< ComponentDescription > proxyProviderDescriptions() const
unsigned subProcessIndex_
std::unique_ptr< std::vector< boost::shared_ptr< EventSetupRecordIntervalFinder > > > finders_
bool doRecordsMatch(EventSetupProvider &precedingESProvider, EventSetupRecordKey const &eventSetupRecordKey, std::map< EventSetupRecordKey, bool > &allComponentsMatch, EventSetupsController const &esController)