CMS 3D CMS Logo

DetIdAssociatorESProducer Class Reference

Description: <one line="" class="" summary>="">. More...

#include <TrackingTools/TrackAssociator/plugins/DetIdAssociatorESProducer.cc>

Inheritance diagram for DetIdAssociatorESProducer:

edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

List of all members.

Public Types

typedef boost::shared_ptr
< DetIdAssociator
ReturnType

Public Member Functions

 DetIdAssociatorESProducer (const edm::ParameterSet &)
ReturnType produce (const DetIdAssociatorRecord &)
 ~DetIdAssociatorESProducer ()

Private Attributes

std::string cName
edm::ParameterSet pSet


Detailed Description

Description: <one line="" class="" summary>="">.

Implementation: <Notes on="" implementation>="">

Definition at line 39 of file DetIdAssociatorESProducer.cc.


Member Typedef Documentation

typedef boost::shared_ptr<DetIdAssociator> DetIdAssociatorESProducer::ReturnType

Definition at line 44 of file DetIdAssociatorESProducer.cc.


Constructor & Destructor Documentation

DetIdAssociatorESProducer::DetIdAssociatorESProducer ( const edm::ParameterSet iConfig  ) 

Definition at line 63 of file DetIdAssociatorESProducer.cc.

References cName, edm::ParameterSet::getParameter(), pSet, and edm::ESProducer::setWhatProduced().

00064 {
00065   cName =iConfig.getParameter<std::string>("ComponentName");
00066   pSet = iConfig;
00067   setWhatProduced(this, cName);
00068 }

DetIdAssociatorESProducer::~DetIdAssociatorESProducer (  ) 

Definition at line 71 of file DetIdAssociatorESProducer.cc.

00072 {
00073 }


Member Function Documentation

DetIdAssociatorESProducer::ReturnType DetIdAssociatorESProducer::produce ( const DetIdAssociatorRecord iRecord  ) 

Definition at line 82 of file DetIdAssociatorESProducer.cc.

References cName, DBSPlugin::get(), and pSet.

00083 {
00084    using namespace edm::es;
00085 
00086    ReturnType dia(DetIdAssociatorFactory::get()->create(cName, pSet));
00087    dia->setGeometry(iRecord);
00088    dia->buildMap();
00089    return dia;
00090 }


Member Data Documentation

std::string DetIdAssociatorESProducer::cName [private]

Definition at line 48 of file DetIdAssociatorESProducer.cc.

Referenced by DetIdAssociatorESProducer(), and produce().

edm::ParameterSet DetIdAssociatorESProducer::pSet [private]

Definition at line 49 of file DetIdAssociatorESProducer.cc.

Referenced by DetIdAssociatorESProducer(), and produce().


The documentation for this class was generated from the following file:
Generated on Tue Jun 9 18:18:24 2009 for CMSSW by  doxygen 1.5.4