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
20 
21 //
22 // constants, enums and typedefs
23 //
24 namespace edm {
25  namespace eventsetup {
26 
27  //
28  // static member functions
29  //
30  std::string ModuleMakerTraits::name() { return "CMS EDM Framework ESModule"; }
33  std::shared_ptr<DataProxyProvider> iComponent,
34  ParameterSet const&,
35  bool) {
36  iProvider.add(iComponent);
37  }
38 
40  std::shared_ptr<DataProxyProvider> iComponent) {
41  iProvider.replaceExisting(iComponent);
42  }
43 
44  std::shared_ptr<ModuleMakerTraits::base_type> ModuleMakerTraits::getComponentAndRegisterProcess(
45  EventSetupsController& esController, ParameterSet const& iConfiguration) {
46  return esController.getESProducerAndRegisterProcess(iConfiguration, esController.indexOfNextProcess());
47  }
48 
50  ParameterSet& iConfiguration,
51  std::shared_ptr<base_type> const& component) {
52  esController.putESProducer(iConfiguration, component, esController.indexOfNextProcess());
53  }
54  } // namespace eventsetup
55 } // namespace edm
static void replaceExisting(EventSetupProvider &iProvider, std::shared_ptr< DataProxyProvider > iComponent)
static std::shared_ptr< base_type > getComponentAndRegisterProcess(EventSetupsController &esController, ParameterSet const &iConfiguration)
#define COMPONENTFACTORY_GET(_type_)
void putESProducer(ParameterSet &pset, std::shared_ptr< DataProxyProvider > const &component, unsigned subProcessIndex)
std::shared_ptr< DataProxyProvider > getESProducerAndRegisterProcess(ParameterSet const &pset, unsigned subProcessIndex)
static std::string const & baseType()
static void putComponent(EventSetupsController &esController, ParameterSet &iConfiguration, std::shared_ptr< base_type > const &component)
void replaceExisting(std::shared_ptr< DataProxyProvider >)
HLT enums.
void add(std::shared_ptr< DataProxyProvider >)
static void addTo(EventSetupProvider &iProvider, std::shared_ptr< DataProxyProvider > iComponent, ParameterSet const &, bool)