CMS 3D CMS Logo

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

List of all members.

Public Types

typedef T::base_type base_type

Public Member Functions

virtual boost::shared_ptr
< base_type
addTo (EventSetupsController &esController, EventSetupProvider &iProvider, ParameterSet const &iConfiguration) 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 (void *, const edm::ParameterSet &) const
void setPostConstruction (DataProxyProvider *iProv, const edm::ParameterSet &iPSet) const

Detailed Description

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

Definition at line 57 of file ComponentMaker.h.


Member Typedef Documentation

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

Reimplemented from edm::eventsetup::ComponentMakerBase< T >.

Definition at line 63 of file ComponentMaker.h.


Constructor & Destructor Documentation

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

Definition at line 61 of file ComponentMaker.h.

{}
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 ( EventSetupsController esController,
EventSetupProvider iProvider,
ParameterSet const &  iConfiguration 
) const [virtual]

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

Definition at line 101 of file ComponentMaker.h.

References idDealer::description.

{
   boost::shared_ptr<typename T::base_type> const* alreadyMadeComponent = T::getAlreadyMadeComponent(esController, iConfiguration);

   if (alreadyMadeComponent) {
      this->logInfoWhenSharing(iConfiguration);
      boost::shared_ptr<TComponent> component(boost::static_pointer_cast<TComponent, typename T::base_type>(*alreadyMadeComponent));
      T::addTo(iProvider, component);
      return component;
   }

   boost::shared_ptr<TComponent> component(new TComponent(iConfiguration));
   ComponentDescription description =
       this->createComponentDescription(iConfiguration);

   this->setDescription(component.get(),description);
   this->setDescriptionForFinder(component.get(),description);
   this->setPostConstruction(component.get(),iConfiguration);
   T::addTo(iProvider, component);
   T::putComponent(esController, iConfiguration, component);

   return component;
}
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 [inline, private]

Definition at line 78 of file ComponentMaker.h.

                                                                                             {
        iProv->setDescription(iDesc);
      }
template<class T, class TComponent>
void edm::eventsetup::ComponentMaker< T, TComponent >::setDescription ( void *  ,
const ComponentDescription  
) const [inline, private]

Definition at line 89 of file ComponentMaker.h.

                                                                    {
      }
template<class T, class TComponent>
void edm::eventsetup::ComponentMaker< T, TComponent >::setDescriptionForFinder ( EventSetupRecordIntervalFinder iFinder,
const ComponentDescription iDesc 
) const [inline, private]

Definition at line 81 of file ComponentMaker.h.

                                                                                                                     {
        iFinder->setDescriptionForFinder(iDesc);
      }
template<class T, class TComponent>
void edm::eventsetup::ComponentMaker< T, TComponent >::setDescriptionForFinder ( void *  ,
const ComponentDescription  
) const [inline, private]

Definition at line 91 of file ComponentMaker.h.

                                                                             {
      }
template<class T, class TComponent>
void edm::eventsetup::ComponentMaker< T, TComponent >::setPostConstruction ( void *  ,
const edm::ParameterSet  
) const [inline, private]

Definition at line 93 of file ComponentMaker.h.

                                                                    {
      }
template<class T, class TComponent>
void edm::eventsetup::ComponentMaker< T, TComponent >::setPostConstruction ( DataProxyProvider iProv,
const edm::ParameterSet iPSet 
) const [inline, private]

Definition at line 84 of file ComponentMaker.h.

                                                                                             {
        //The 'appendToDataLabel' parameter was added very late in the development cycle and since
        // the ParameterSet is not sent to the base class we must set the value after construction
        iProv->setAppendToDataLabel(iPSet);
      }