CMS 3D CMS Logo

List of all members | Public Types | Static Public Member Functions
edm::eventsetup::ModuleMakerTraits Struct Reference

#include <ModuleFactory.h>

Public Types

typedef DataProxyProvider base_type
 

Static Public Member Functions

static void addTo (EventSetupProvider &iProvider, std::shared_ptr< DataProxyProvider > iComponent, ParameterSet const &, bool)
 
static std::shared_ptr< base_typegetComponentAndRegisterProcess (EventSetupsController &esController, ParameterSet const &iConfiguration)
 
static std::string name ()
 
static void putComponent (EventSetupsController &esController, ParameterSet const &iConfiguration, std::shared_ptr< base_type > const &component)
 
static void replaceExisting (EventSetupProvider &iProvider, std::shared_ptr< DataProxyProvider > iComponent)
 

Detailed Description

Definition at line 37 of file ModuleFactory.h.

Member Typedef Documentation

◆ base_type

Definition at line 38 of file ModuleFactory.h.

Member Function Documentation

◆ addTo()

void edm::eventsetup::ModuleMakerTraits::addTo ( EventSetupProvider iProvider,
std::shared_ptr< DataProxyProvider iComponent,
ParameterSet const &  ,
bool   
)
static

Definition at line 30 of file ModuleFactory.cc.

33  {
34  iProvider.add(iComponent);
35  }

References edm::eventsetup::EventSetupProvider::add().

◆ getComponentAndRegisterProcess()

std::shared_ptr< ModuleMakerTraits::base_type > edm::eventsetup::ModuleMakerTraits::getComponentAndRegisterProcess ( EventSetupsController esController,
ParameterSet const &  iConfiguration 
)
static

Definition at line 42 of file ModuleFactory.cc.

43  {
44  return esController.getESProducerAndRegisterProcess(iConfiguration, esController.indexOfNextProcess());
45  }

References edm::eventsetup::EventSetupsController::getESProducerAndRegisterProcess(), and edm::eventsetup::EventSetupsController::indexOfNextProcess().

◆ name()

std::string edm::eventsetup::ModuleMakerTraits::name ( void  )
static

Definition at line 29 of file ModuleFactory.cc.

29 { return "CMS EDM Framework ESModule"; }

Referenced by config.CFG::__str__(), validation.Sample::digest(), and VIDSelectorBase.VIDSelectorBase::initialize().

◆ putComponent()

void edm::eventsetup::ModuleMakerTraits::putComponent ( EventSetupsController esController,
ParameterSet const &  iConfiguration,
std::shared_ptr< base_type > const &  component 
)
static

Definition at line 47 of file ModuleFactory.cc.

49  {
50  esController.putESProducer(iConfiguration, component, esController.indexOfNextProcess());
51  }

References edm::eventsetup::EventSetupsController::indexOfNextProcess(), and edm::eventsetup::EventSetupsController::putESProducer().

◆ replaceExisting()

void edm::eventsetup::ModuleMakerTraits::replaceExisting ( EventSetupProvider iProvider,
std::shared_ptr< DataProxyProvider iComponent 
)
static

Definition at line 37 of file ModuleFactory.cc.

38  {
39  iProvider.replaceExisting(iComponent);
40  }

References edm::eventsetup::EventSetupProvider::replaceExisting().