CMS 3D CMS Logo

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

#include <LooperFactory.h>

Public Types

typedef EDLooperBase base_type
 

Static Public Member Functions

template<class T >
static void addTo (EventSetupProvider &iProvider, std::shared_ptr< T > 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 const &iConfiguration, std::shared_ptr< base_type > const &component)
 
static void replaceExisting (EventSetupProvider &iProvider, std::shared_ptr< EDLooperBase > iComponent)
 

Detailed Description

Definition at line 82 of file LooperFactory.h.

Member Typedef Documentation

◆ base_type

Definition at line 83 of file LooperFactory.h.

Member Function Documentation

◆ addTo()

template<class T >
static void edm::eventsetup::LooperMakerTraits::addTo ( EventSetupProvider iProvider,
std::shared_ptr< T iComponent,
ParameterSet const &  ,
bool   
)
inlinestatic

Definition at line 87 of file LooperFactory.h.

References edm::eventsetup::looper::addFinderTo(), and edm::eventsetup::looper::addProviderTo().

87  {
88  //a looper does not always have to be a provider or a finder
89  looper::addProviderTo(iProvider, iComponent, static_cast<const T*>(nullptr));
90  looper::addFinderTo(iProvider, iComponent, static_cast<const T*>(nullptr));
91  }
void addProviderTo(EventSetupProvider &iProvider, std::shared_ptr< T > iComponent, const DataProxyProvider *)
Definition: LooperFactory.h:43
void addFinderTo(EventSetupProvider &iProvider, std::shared_ptr< T > iComponent, const EventSetupRecordIntervalFinder *)
Definition: LooperFactory.h:61

◆ baseType()

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

◆ getComponentAndRegisterProcess()

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

Definition at line 33 of file LooperFactory.cc.

34  {
35  return std::shared_ptr<LooperMakerTraits::base_type>();
36  }

◆ name()

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

Definition at line 24 of file LooperFactory.cc.

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

24 { return "CMS EDM Framework EDLooper"; }

◆ putComponent()

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

Definition at line 38 of file LooperFactory.cc.

40  {}

◆ replaceExisting()

void edm::eventsetup::LooperMakerTraits::replaceExisting ( EventSetupProvider iProvider,
std::shared_ptr< EDLooperBase iComponent 
)
static

Definition at line 27 of file LooperFactory.cc.

References Exception, and edm::errors::LogicError.

27  {
28  throw edm::Exception(edm::errors::LogicError) << "LooperMakerTraits::replaceExisting\n"
29  << "This function is not implemented and should never be called.\n"
30  << "Please report this to a Framework Developer\n";
31  }