1 #ifndef FWCore_Framework_SourceFactory_h 2 #define FWCore_Framework_SourceFactory_h 36 namespace eventsetup {
38 class EventSetupsController;
43 std::shared_ptr<DataProxyProvider> pProvider(iComponent);
46 pProvider->setDescription(description);
47 iProvider.
add(pProvider);
60 std::shared_ptr<T> iComponent,
62 bool matchesPreceding)
64 if (matchesPreceding) {
68 addProviderTo(iProvider, iComponent, static_cast<const T*>(
nullptr));
69 std::shared_ptr<EventSetupRecordIntervalFinder> pFinder(iComponent);
70 iProvider.
add(pFinder);
79 std::shared_ptr<base_type>
const& component);
84 template<
class TType>
92 #define DEFINE_FWK_EVENTSETUP_SOURCE(type) \ 93 DEFINE_EDM_PLUGIN (edm::eventsetup::SourcePluginFactory,edm::eventsetup::SourceMaker<type>,#type); \ 94 DEFINE_DESC_FILLER_FOR_ESSOURCES(type) static std::string name()
static void replaceExisting(EventSetupProvider &iProvider, std::shared_ptr< EventSetupRecordIntervalFinder > iComponent)
static void addTo(EventSetupProvider &iProvider, std::shared_ptr< T > iComponent, ParameterSet const &iConfiguration, bool matchesPreceding)
ComponentFactory< SourceMakerTraits > SourceFactory
void add(std::shared_ptr< DataProxyProvider >)
EventSetupRecordIntervalFinder base_type
static void logInfoWhenSharing(ParameterSet const &iConfiguration)
static std::shared_ptr< base_type > getComponentAndRegisterProcess(EventSetupsController &esController, ParameterSet const &iConfiguration)
static void putComponent(EventSetupsController &esController, ParameterSet const &iConfiguration, std::shared_ptr< base_type > const &component)
void addProviderTo(EventSetupProvider &iProvider, std::shared_ptr< T > iComponent, const DataProxyProvider *)