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

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

Definition at line 60 of file LooperFactory.h.

References edm::eventsetup::EventSetupProvider::add(), heppy_report::description, edm::eventsetup::ComponentDescription::isLooper_, edm::eventsetup::ComponentDescription::isSource_, and edm::eventsetup::ComponentDescription::label_.

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

62  {
63  std::shared_ptr<EventSetupRecordIntervalFinder> pFinder(iComponent);
64 
65  ComponentDescription description = pFinder->descriptionForFinder();
66  description.isSource_ = true;
67  description.isLooper_ = true;
68  if (description.label_ == "@main_looper") {
69  //remove the 'hidden' label so that es_prefer statements will work
70  description.label_ = "";
71  }
72  pFinder->setDescriptionForFinder(description);
73 
74  iProvider.add(pFinder);
75  }
template<class T >
void edm::eventsetup::looper::addFinderTo ( EventSetupProvider ,
std::shared_ptr< T ,
const void *   
)

Definition at line 77 of file LooperFactory.h.

77  {
78  //do nothing
79  }
template<class T >
void edm::eventsetup::looper::addProviderTo ( EventSetupProvider iProvider,
std::shared_ptr< T iComponent,
const DataProxyProvider  
)

Definition at line 42 of file LooperFactory.h.

References edm::eventsetup::EventSetupProvider::add(), heppy_report::description, edm::eventsetup::ComponentDescription::isLooper_, edm::eventsetup::ComponentDescription::isSource_, and edm::eventsetup::ComponentDescription::label_.

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

42  {
43  std::shared_ptr<DataProxyProvider> pProvider(iComponent);
44  ComponentDescription description = pProvider->description();
45  description.isSource_ = true;
46  description.isLooper_ = true;
47  if (description.label_ == "@main_looper") {
48  //remove the 'hidden' label so that es_prefer statements will work
49  description.label_ = "";
50  }
51  pProvider->setDescription(description);
52  iProvider.add(pProvider);
53  }
template<class T >
void edm::eventsetup::looper::addProviderTo ( EventSetupProvider ,
std::shared_ptr< T ,
const void *   
)

Definition at line 55 of file LooperFactory.h.

55  {
56  //do nothing
57  }