CMS 3D CMS Logo

PixelCPEParmErrorESProducer Class Reference

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

Inheritance diagram for PixelCPEParmErrorESProducer:

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

List of all members.

Public Member Functions

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

Private Attributes

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


Detailed Description

Definition at line 10 of file PixelCPEParmErrorESProducer.h.


Constructor & Destructor Documentation

PixelCPEParmErrorESProducer::PixelCPEParmErrorESProducer ( const edm::ParameterSet p  ) 

Definition at line 20 of file PixelCPEParmErrorESProducer.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 }

PixelCPEParmErrorESProducer::~PixelCPEParmErrorESProducer (  )  [virtual]

Definition at line 27 of file PixelCPEParmErrorESProducer.cc.

00027 {}


Member Function Documentation

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

Definition at line 30 of file PixelCPEParmErrorESProducer.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   ESHandle<SiPixelLorentzAngle> lorentzAngle;
00036   iRecord.getRecord<SiPixelLorentzAngleRcd>().get(lorentzAngle );
00037   
00038   edm::ESHandle<TrackerGeometry> pDD;
00039   iRecord.getRecord<TrackerDigiGeometryRecord>().get( pDD );
00040 
00041   cpe_  = boost::shared_ptr<PixelClusterParameterEstimator>(new PixelCPEParmError(pset_,magfield.product(),lorentzAngle.product()) );
00042   return cpe_;
00043 }


Member Data Documentation

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

Definition at line 16 of file PixelCPEParmErrorESProducer.h.

Referenced by produce().

edm::ParameterSet PixelCPEParmErrorESProducer::pset_ [private]

Definition at line 17 of file PixelCPEParmErrorESProducer.h.

Referenced by PixelCPEParmErrorESProducer(), 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