1 #ifndef FWCore_Framework_SourceFactory_h 2 #define FWCore_Framework_SourceFactory_h 36 namespace eventsetup {
37 class DataProxyProvider;
38 class EventSetupsController;
42 std::shared_ptr<DataProxyProvider> pProvider(iComponent);
46 iProvider.
add(pProvider);
59 std::shared_ptr<T> iComponent,
61 bool matchesPreceding) {
62 if (matchesPreceding) {
66 addProviderTo(iProvider, iComponent, static_cast<const T*>(
nullptr));
67 std::shared_ptr<EventSetupRecordIntervalFinder> pFinder(iComponent);
68 iProvider.
add(pFinder);
71 std::shared_ptr<EventSetupRecordIntervalFinder> iComponent);
78 std::shared_ptr<base_type>
const& component);
83 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 std::string const & baseType()
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
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 add(std::shared_ptr< DataProxyProvider >)
void addProviderTo(EventSetupProvider &iProvider, std::shared_ptr< T > iComponent, const DataProxyProvider *)