CMS 3D CMS Logo

Functions
edm::eventsetup::looper Namespace Reference

Functions

template<class T >
void addFinderTo (EventSetupProvider &iProvider, std::shared_ptr< T > iComponent, const EventSetupRecordIntervalFinder *)
 
template<class T >
void addFinderTo (EventSetupProvider &, std::shared_ptr< T >, const void *)
 
template<class T >
void addProviderTo (EventSetupProvider &iProvider, std::shared_ptr< T > iComponent, const DataProxyProvider *)
 
template<class T >
void addProviderTo (EventSetupProvider &, std::shared_ptr< T >, const void *)
 

Function Documentation

◆ addFinderTo() [1/2]

template<class T >
void edm::eventsetup::looper::addFinderTo ( EventSetupProvider iProvider,
std::shared_ptr< T iComponent,
const EventSetupRecordIntervalFinder  
)

Definition at line 61 of file LooperFactory.h.

References edm::eventsetup::EventSetupProvider::add(), and edmLumisInFiles::description.

Referenced by edm::eventsetup::LooperMakerTraits::addTo().

63  {
64  std::shared_ptr<EventSetupRecordIntervalFinder> pFinder(iComponent);
65 
66  ComponentDescription description = pFinder->descriptionForFinder();
67  description.isSource_ = true;
68  description.isLooper_ = true;
69  if (description.label_ == "@main_looper") {
70  //remove the 'hidden' label so that es_prefer statements will work
71  description.label_ = "";
72  }
73  pFinder->setDescriptionForFinder(description);
74 
75  iProvider.add(pFinder);
76  }

◆ addFinderTo() [2/2]

template<class T >
void edm::eventsetup::looper::addFinderTo ( EventSetupProvider ,
std::shared_ptr< T ,
const void *   
)

Definition at line 78 of file LooperFactory.h.

78  {
79  //do nothing
80  }

◆ addProviderTo() [1/2]

template<class T >
void edm::eventsetup::looper::addProviderTo ( EventSetupProvider iProvider,
std::shared_ptr< T iComponent,
const DataProxyProvider  
)

Definition at line 43 of file LooperFactory.h.

References edm::eventsetup::EventSetupProvider::add(), and edmLumisInFiles::description.

Referenced by edm::eventsetup::LooperMakerTraits::addTo().

43  {
44  std::shared_ptr<DataProxyProvider> pProvider(iComponent);
45  ComponentDescription description = pProvider->description();
46  description.isSource_ = true;
47  description.isLooper_ = true;
48  if (description.label_ == "@main_looper") {
49  //remove the 'hidden' label so that es_prefer statements will work
50  description.label_ = "";
51  }
52  pProvider->setDescription(description);
53  iProvider.add(pProvider);
54  }

◆ addProviderTo() [2/2]

template<class T >
void edm::eventsetup::looper::addProviderTo ( EventSetupProvider ,
std::shared_ptr< T ,
const void *   
)

Definition at line 56 of file LooperFactory.h.

56  {
57  //do nothing
58  }