1 #ifndef FWCore_Framework_LooperFactory_h
2 #define FWCore_Framework_LooperFactory_h
23 #include "boost/shared_ptr.hpp"
35 namespace eventsetup {
44 boost::shared_ptr<DataProxyProvider> pProvider(iComponent);
48 if(description.
label_ ==
"@main_looper") {
52 pProvider->setDescription(description);
53 iProvider.
add(pProvider);
64 boost::shared_ptr<EventSetupRecordIntervalFinder> pFinder(iComponent);
69 if(description.
label_ ==
"@main_looper") {
73 pFinder->setDescriptionForFinder(description);
75 iProvider.
add(pFinder);
85 static std::string
name();
98 boost::shared_ptr<base_type>
const& component);
100 template<
class TType>
108 #define DEFINE_FWK_LOOPER(type) \
109 DEFINE_EDM_PLUGIN (edm::eventsetup::LooperPluginFactory,edm::eventsetup::LooperMaker<type>,#type)
static std::string name()
void addFinderTo(EventSetupProvider &iProvider, boost::shared_ptr< T > iComponent, const EventSetupRecordIntervalFinder *)
static void putComponent(EventSetupsController &esController, ParameterSet const &iConfiguration, boost::shared_ptr< base_type > const &component)
ComponentFactory< LooperMakerTraits > LooperFactory
void add(boost::shared_ptr< DataProxyProvider >)
static boost::shared_ptr< base_type > const * getAlreadyMadeComponent(EventSetupsController const &esController, ParameterSet const &iConfiguration)
void addProviderTo(EventSetupProvider &iProvider, boost::shared_ptr< T > iComponent, const DataProxyProvider *)
static void addTo(EventSetupProvider &iProvider, boost::shared_ptr< T > iComponent)