CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ModuleFactory.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: Framework
4 // Class : ModuleFactory
5 //
6 // Implementation:
7 // <Notes on implementation>
8 //
9 // Author: Chris Jones
10 // Created: Wed May 25 19:27:44 EDT 2005
11 //
12 
13 // system include files
14 
15 // user include files
19 
20 //
21 // constants, enums and typedefs
22 //
23 namespace edm {
24  namespace eventsetup {
25 
26 //
27 // static member functions
28 //
29  std::string ModuleMakerTraits::name() { return "CMS EDM Framework ESModule"; }
31  std::shared_ptr<DataProxyProvider> iComponent,
32  ParameterSet const&,
33  bool)
34  {
35  iProvider.add(iComponent);
36  }
37 
38  void ModuleMakerTraits::replaceExisting(EventSetupProvider& iProvider, std::shared_ptr<DataProxyProvider> iComponent)
39  {
40  iProvider.replaceExisting(iComponent);
41  }
42 
43  std::shared_ptr<ModuleMakerTraits::base_type>
45  ParameterSet const& iConfiguration) {
46  return esController.getESProducerAndRegisterProcess(iConfiguration, esController.indexOfNextProcess());
47  }
48 
50  ParameterSet const& iConfiguration,
51  std::shared_ptr<base_type> const& component) {
52  esController.putESProducer(iConfiguration, component, esController.indexOfNextProcess());
53  }
54  }
55 }
static void replaceExisting(EventSetupProvider &iProvider, std::shared_ptr< DataProxyProvider > iComponent)
void putESProducer(ParameterSet const &pset, std::shared_ptr< DataProxyProvider > const &component, unsigned subProcessIndex)
static std::shared_ptr< base_type > getComponentAndRegisterProcess(EventSetupsController &esController, ParameterSet const &iConfiguration)
#define COMPONENTFACTORY_GET(_type_)
std::shared_ptr< DataProxyProvider > getESProducerAndRegisterProcess(ParameterSet const &pset, unsigned subProcessIndex)
void add(std::shared_ptr< DataProxyProvider >)
static void putComponent(EventSetupsController &esController, ParameterSet const &iConfiguration, std::shared_ptr< base_type > const &component)
void replaceExisting(std::shared_ptr< DataProxyProvider >)
static void addTo(EventSetupProvider &iProvider, std::shared_ptr< DataProxyProvider > iComponent, ParameterSet const &, bool)