CMS 3D CMS Logo

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  iProvider.add(iComponent);
35  }
36 
38  std::shared_ptr<DataProxyProvider> iComponent) {
39  iProvider.replaceExisting(iComponent);
40  }
41 
42  std::shared_ptr<ModuleMakerTraits::base_type> ModuleMakerTraits::getComponentAndRegisterProcess(
43  EventSetupsController& esController, ParameterSet const& iConfiguration) {
44  return esController.getESProducerAndRegisterProcess(iConfiguration, esController.indexOfNextProcess());
45  }
46 
48  ParameterSet const& iConfiguration,
49  std::shared_ptr<base_type> const& component) {
50  esController.putESProducer(iConfiguration, component, esController.indexOfNextProcess());
51  }
52  } // namespace eventsetup
53 } // namespace edm
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)
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)
HLT enums.
void replaceExisting(std::shared_ptr< DataProxyProvider >)
static void addTo(EventSetupProvider &iProvider, std::shared_ptr< DataProxyProvider > iComponent, ParameterSet const &, bool)
#define COMPONENTFACTORY_GET(_type_)