CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Private Member Functions
edm::eventsetup::ComponentMaker< T, TComponent > Class Template Reference

#include <ComponentMaker.h>

Inheritance diagram for edm::eventsetup::ComponentMaker< T, TComponent >:
edm::eventsetup::ComponentMakerBase< T > edm::eventsetup::ComponentMakerBaseHelper

Public Types

typedef T::base_type base_type
 
- Public Types inherited from edm::eventsetup::ComponentMakerBase< T >
typedef T::base_type base_type
 

Public Member Functions

virtual boost::shared_ptr
< base_type
addTo (EventSetupProvider &iProvider, ParameterSet const &iConfiguration, std::string const &iProcessName, ReleaseVersion const &iVersion, PassID const &iPass) const
 
 ComponentMaker ()
 

Private Member Functions

 ComponentMaker (const ComponentMaker &)
 
const ComponentMakeroperator= (const ComponentMaker &)
 
void setDescription (DataProxyProvider *iProv, const ComponentDescription &iDesc) const
 
void setDescription (void *, const ComponentDescription &) const
 
void setDescriptionForFinder (EventSetupRecordIntervalFinder *iFinder, const ComponentDescription &iDesc) const
 
void setDescriptionForFinder (void *, const ComponentDescription &) const
 
void setPostConstruction (DataProxyProvider *iProv, const edm::ParameterSet &iPSet) const
 
void setPostConstruction (void *, const edm::ParameterSet &) const
 

Detailed Description

template<class T, class TComponent>
class edm::eventsetup::ComponentMaker< T, TComponent >

Definition at line 62 of file ComponentMaker.h.

Member Typedef Documentation

template<class T, class TComponent>
typedef T::base_type edm::eventsetup::ComponentMaker< T, TComponent >::base_type

Definition at line 68 of file ComponentMaker.h.

Constructor & Destructor Documentation

template<class T, class TComponent>
edm::eventsetup::ComponentMaker< T, TComponent >::ComponentMaker ( )
inline

Definition at line 66 of file ComponentMaker.h.

66 {}
template<class T, class TComponent>
edm::eventsetup::ComponentMaker< T, TComponent >::ComponentMaker ( const ComponentMaker< T, TComponent > &  )
private

Member Function Documentation

template<class T , class TComponent >
boost::shared_ptr< typename ComponentMaker< T, TComponent >::base_type > ComponentMaker::addTo ( EventSetupProvider iProvider,
ParameterSet const &  iConfiguration,
std::string const &  iProcessName,
ReleaseVersion const &  iVersion,
PassID const &  iPass 
) const
virtual

Implements edm::eventsetup::ComponentMakerBase< T >.

Definition at line 108 of file ComponentMaker.h.

References idDealer::description.

113 {
114  boost::shared_ptr<TComponent> component(new TComponent(iConfiguration));
116  this->createComponentDescription(iConfiguration,
117  iProcessName,
118  iVersion,
119  iPass);
120 
121  this->setDescription(component.get(),description);
122  this->setDescriptionForFinder(component.get(),description);
123  this->setPostConstruction(component.get(),iConfiguration);
124  T::addTo(iProvider, component);
125  return component;
126 }
ComponentDescription createComponentDescription(ParameterSet const &iConfiguration, std::string const &iProcessName, ReleaseVersion const &iVersion, PassID const &iPass) const
void setPostConstruction(DataProxyProvider *iProv, const edm::ParameterSet &iPSet) const
tuple description
Definition: idDealer.py:66
void setDescription(DataProxyProvider *iProv, const ComponentDescription &iDesc) const
void setDescriptionForFinder(EventSetupRecordIntervalFinder *iFinder, const ComponentDescription &iDesc) const
template<class T, class TComponent>
const ComponentMaker& edm::eventsetup::ComponentMaker< T, TComponent >::operator= ( const ComponentMaker< T, TComponent > &  )
private
template<class T, class TComponent>
void edm::eventsetup::ComponentMaker< T, TComponent >::setDescription ( DataProxyProvider iProv,
const ComponentDescription iDesc 
) const
inlineprivate

Definition at line 85 of file ComponentMaker.h.

85  {
86  iProv->setDescription(iDesc);
87  }
template<class T, class TComponent>
void edm::eventsetup::ComponentMaker< T, TComponent >::setDescription ( void *  ,
const ComponentDescription  
) const
inlineprivate

Definition at line 96 of file ComponentMaker.h.

96  {
97  }
template<class T, class TComponent>
void edm::eventsetup::ComponentMaker< T, TComponent >::setDescriptionForFinder ( EventSetupRecordIntervalFinder iFinder,
const ComponentDescription iDesc 
) const
inlineprivate

Definition at line 88 of file ComponentMaker.h.

88  {
89  iFinder->setDescriptionForFinder(iDesc);
90  }
template<class T, class TComponent>
void edm::eventsetup::ComponentMaker< T, TComponent >::setDescriptionForFinder ( void *  ,
const ComponentDescription  
) const
inlineprivate

Definition at line 98 of file ComponentMaker.h.

98  {
99  }
template<class T, class TComponent>
void edm::eventsetup::ComponentMaker< T, TComponent >::setPostConstruction ( DataProxyProvider iProv,
const edm::ParameterSet iPSet 
) const
inlineprivate

Definition at line 91 of file ComponentMaker.h.

91  {
92  //The 'appendToDataLabel' parameter was added very late in the development cycle and since
93  // the ParameterSet is not sent to the base class we must set the value after construction
94  iProv->setAppendToDataLabel(iPSet);
95  }
template<class T, class TComponent>
void edm::eventsetup::ComponentMaker< T, TComponent >::setPostConstruction ( void *  ,
const edm::ParameterSet  
) const
inlineprivate

Definition at line 100 of file ComponentMaker.h.

100  {
101  }