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 ESProductResolverProvider *)
 
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 63 of file LooperFactory.h.

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

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

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

◆ addFinderTo() [2/2]

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

Definition at line 80 of file LooperFactory.h.

80  {
81  //do nothing
82  }

◆ addProviderTo() [1/2]

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

Definition at line 43 of file LooperFactory.h.

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

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

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

◆ addProviderTo() [2/2]

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

Definition at line 58 of file LooperFactory.h.

58  {
59  //do nothing
60  }