CMS 3D CMS Logo

Public Types | Static Public Member Functions

edm::eventsetup::SourceMakerTraits Struct Reference

#include <SourceFactory.h>

List of all members.

Public Types

typedef
EventSetupRecordIntervalFinder 
base_type

Static Public Member Functions

template<class T >
static void addTo (EventSetupProvider &iProvider, boost::shared_ptr< T > iComponent)
static boost::shared_ptr
< base_type > const * 
getAlreadyMadeComponent (EventSetupsController const &esController, ParameterSet const &iConfiguration)
static std::string name ()
static void putComponent (EventSetupsController &esController, ParameterSet const &iConfiguration, boost::shared_ptr< base_type > const &component)

Detailed Description

Definition at line 55 of file SourceFactory.h.


Member Typedef Documentation

Definition at line 56 of file SourceFactory.h.


Member Function Documentation

template<class T >
static void edm::eventsetup::SourceMakerTraits::addTo ( EventSetupProvider iProvider,
boost::shared_ptr< T iComponent 
) [inline, static]

Definition at line 59 of file SourceFactory.h.

References edm::eventsetup::EventSetupProvider::add(), and edm::eventsetup::addProviderTo().

            {
               //a source does not always have to be a provider
               addProviderTo(iProvider, iComponent, static_cast<const T*>(0));
               boost::shared_ptr<EventSetupRecordIntervalFinder> pFinder(iComponent);
               iProvider.add(pFinder);
            }
boost::shared_ptr< SourceMakerTraits::base_type > const * edm::eventsetup::SourceMakerTraits::getAlreadyMadeComponent ( EventSetupsController const &  esController,
ParameterSet const &  iConfiguration 
) [static]

Definition at line 29 of file SourceFactory.cc.

References edm::eventsetup::EventSetupsController::getAlreadyMadeESSource().

                                                                                     {
         return esController.getAlreadyMadeESSource(iConfiguration);
      }
std::string edm::eventsetup::SourceMakerTraits::name ( void  ) [static]

Definition at line 26 of file SourceFactory.cc.

{ return "CMS EDM Framework ESSource"; }
void edm::eventsetup::SourceMakerTraits::putComponent ( EventSetupsController esController,
ParameterSet const &  iConfiguration,
boost::shared_ptr< base_type > const &  component 
) [static]

Definition at line 34 of file SourceFactory.cc.

References edm::eventsetup::EventSetupsController::putESSource().

                                                                                        {
         esController.putESSource(iConfiguration, component);
      }