CMS 3D CMS Logo

PixelCPEGenericESProducer Class Reference

#include <RecoLocalTracker/SiPixelRecHits/interface/PixelCPEGenericESProducer.h>

Inheritance diagram for PixelCPEGenericESProducer:

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

List of all members.

Public Member Functions

 PixelCPEGenericESProducer (const edm::ParameterSet &p)
boost::shared_ptr
< PixelClusterParameterEstimator
produce (const TkPixelCPERecord &)
virtual ~PixelCPEGenericESProducer ()

Private Attributes

boost::shared_ptr
< PixelClusterParameterEstimator
cpe_
edm::ParameterSet pset_


Detailed Description

Definition at line 10 of file PixelCPEGenericESProducer.h.


Constructor & Destructor Documentation

PixelCPEGenericESProducer::PixelCPEGenericESProducer ( const edm::ParameterSet p  ) 

Definition at line 20 of file PixelCPEGenericESProducer.cc.

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

00021 {
00022   std::string myname = p.getParameter<std::string>("ComponentName");
00023   pset_ = p;
00024   setWhatProduced(this,myname);
00025 }

PixelCPEGenericESProducer::~PixelCPEGenericESProducer (  )  [virtual]

Definition at line 27 of file PixelCPEGenericESProducer.cc.

00027 {}


Member Function Documentation

boost::shared_ptr< PixelClusterParameterEstimator > PixelCPEGenericESProducer::produce ( const TkPixelCPERecord iRecord  ) 

Definition at line 30 of file PixelCPEGenericESProducer.cc.

References cpe_, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), volumeBasedMagneticField_1103l_cfi::magfield, edm::ESHandle< T >::product(), and pset_.

00030                                                                   { 
00031 
00032   ESHandle<MagneticField> magfield;
00033   iRecord.getRecord<IdealMagneticFieldRecord>().get( magfield );
00034 
00035   edm::ESHandle<TrackerGeometry> pDD;
00036   iRecord.getRecord<TrackerDigiGeometryRecord>().get( pDD );
00037 
00038   ESHandle<SiPixelLorentzAngle> lorentzAngle;
00039   iRecord.getRecord<SiPixelLorentzAngleRcd>().get(lorentzAngle );
00040 
00041   cpe_  = boost::shared_ptr<PixelClusterParameterEstimator>(new PixelCPEGeneric(pset_,magfield.product(),lorentzAngle.product()) );
00042         //ToDo? Replace blah.product() with ESHandle
00043         
00044   return cpe_;
00045 }


Member Data Documentation

boost::shared_ptr<PixelClusterParameterEstimator> PixelCPEGenericESProducer::cpe_ [private]

Definition at line 16 of file PixelCPEGenericESProducer.h.

Referenced by produce().

edm::ParameterSet PixelCPEGenericESProducer::pset_ [private]

Definition at line 17 of file PixelCPEGenericESProducer.h.

Referenced by PixelCPEGenericESProducer(), and produce().


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