1 #ifndef FWCore_Framework_SourceFactory_h
2 #define FWCore_Framework_SourceFactory_h
23 #include "boost/shared_ptr.hpp"
36 namespace eventsetup {
38 class EventSetupsController;
43 boost::shared_ptr<DataProxyProvider> pProvider(iComponent);
46 pProvider->setDescription(description);
47 iProvider.
add(pProvider);
60 boost::shared_ptr<T> iComponent,
62 bool matchesPreceding)
64 if (matchesPreceding) {
68 addProviderTo(iProvider, iComponent, static_cast<const T*>(
nullptr));
69 boost::shared_ptr<EventSetupRecordIntervalFinder> pFinder(iComponent);
70 iProvider.
add(pFinder);
79 boost::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 boost::shared_ptr< base_type > getComponentAndRegisterProcess(EventSetupsController &esController, ParameterSet const &iConfiguration)
static void replaceExisting(EventSetupProvider &iProvider, boost::shared_ptr< EventSetupRecordIntervalFinder > iComponent)
void add(boost::shared_ptr< DataProxyProvider >)
ComponentFactory< SourceMakerTraits > SourceFactory
static void putComponent(EventSetupsController &esController, ParameterSet const &iConfiguration, boost::shared_ptr< base_type > const &component)
static void addTo(EventSetupProvider &iProvider, boost::shared_ptr< T > iComponent, ParameterSet const &iConfiguration, bool matchesPreceding)
EventSetupRecordIntervalFinder base_type
static void logInfoWhenSharing(ParameterSet const &iConfiguration)
void addProviderTo(EventSetupProvider &iProvider, boost::shared_ptr< T > iComponent, const DataProxyProvider *)