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
EventSetupProvider.h
edm::eventsetup::ModuleMakerTraits::name
static std::string name()
Definition: ModuleFactory.cc:29
edm::eventsetup::ModuleMakerTraits::putComponent
static void putComponent(EventSetupsController &esController, ParameterSet const &iConfiguration, std::shared_ptr< base_type > const &component)
Definition: ModuleFactory.cc:47
edm
HLT enums.
Definition: AlignableModifier.h:19
edm::eventsetup::ModuleMakerTraits::replaceExisting
static void replaceExisting(EventSetupProvider &iProvider, std::shared_ptr< DataProxyProvider > iComponent)
Definition: ModuleFactory.cc:37
EventSetupsController.h
edm::eventsetup::EventSetupProvider::replaceExisting
void replaceExisting(std::shared_ptr< DataProxyProvider >)
Definition: EventSetupProvider.cc:94
COMPONENTFACTORY_GET
#define COMPONENTFACTORY_GET(_type_)
Definition: ComponentFactory.h:120
edm::eventsetup::EventSetupProvider
Definition: EventSetupProvider.h:49
edm::eventsetup::ModuleMakerTraits
Definition: ModuleFactory.h:37
edm::eventsetup::ModuleMakerTraits::addTo
static void addTo(EventSetupProvider &iProvider, std::shared_ptr< DataProxyProvider > iComponent, ParameterSet const &, bool)
Definition: ModuleFactory.cc:30
edm::eventsetup::ModuleMakerTraits::getComponentAndRegisterProcess
static std::shared_ptr< base_type > getComponentAndRegisterProcess(EventSetupsController &esController, ParameterSet const &iConfiguration)
Definition: ModuleFactory.cc:42
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::eventsetup::EventSetupsController::putESProducer
void putESProducer(ParameterSet const &pset, std::shared_ptr< DataProxyProvider > const &component, unsigned subProcessIndex)
Definition: EventSetupsController.cc:204
edm::ParameterSet
Definition: ParameterSet.h:47
edm::eventsetup::EventSetupsController::indexOfNextProcess
unsigned indexOfNextProcess() const
Definition: EventSetupsController.h:133
edm::eventsetup::EventSetupsController::getESProducerAndRegisterProcess
std::shared_ptr< DataProxyProvider > getESProducerAndRegisterProcess(ParameterSet const &pset, unsigned subProcessIndex)
Definition: EventSetupsController.cc:187
edm::eventsetup::EventSetupsController
Definition: EventSetupsController.h:79
edm::eventsetup::EventSetupProvider::add
void add(std::shared_ptr< DataProxyProvider >)
Definition: EventSetupProvider.cc:89
ModuleFactory.h