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 ESProductResolverProvider base_type
 

Static Public Member Functions

static void addTo (EventSetupProvider &iProvider, std::shared_ptr< ESProductResolverProvider > iComponent, ParameterSet const &, bool)
 
static std::string const & baseType ()
 
static std::shared_ptr< base_typegetComponentAndRegisterProcess (EventSetupsController &esController, ParameterSet const &iConfiguration)
 
static std::string name ()
 
static void putComponent (EventSetupsController &esController, ParameterSet &iConfiguration, std::shared_ptr< base_type > const &component)
 
static void replaceExisting (EventSetupProvider &iProvider, std::shared_ptr< ESProductResolverProvider > 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< ESProductResolverProvider iComponent,
ParameterSet const &  ,
bool   
)
static

Definition at line 32 of file ModuleFactory.cc.

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

35  {
36  iProvider.add(iComponent);
37  }

◆ baseType()

std::string const & edm::eventsetup::ModuleMakerTraits::baseType ( )
static

◆ getComponentAndRegisterProcess()

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

Definition at line 44 of file ModuleFactory.cc.

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

45  {
46  return esController.getESProducerAndRegisterProcess(iConfiguration, esController.indexOfNextProcess());
47  }

◆ name()

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

Definition at line 30 of file ModuleFactory.cc.

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

30 { return "CMS EDM Framework ESModule"; }

◆ putComponent()

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

Definition at line 49 of file ModuleFactory.cc.

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

51  {
52  esController.putESProducer(iConfiguration, component, esController.indexOfNextProcess());
53  }

◆ replaceExisting()

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

Definition at line 39 of file ModuleFactory.cc.

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

40  {
41  iProvider.replaceExisting(iComponent);
42  }