CMS 3D CMS Logo

StripCPEfromTrackAngleESProducer Class Reference

#include <RecoLocalTracker/SiStripRecHitConverter/interface/StripCPEfromTrackAngleESProducer.h>

Inheritance diagram for StripCPEfromTrackAngleESProducer:

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

List of all members.

Public Member Functions

boost::shared_ptr
< StripClusterParameterEstimator
produce (const TkStripCPERecord &)
 StripCPEfromTrackAngleESProducer (const edm::ParameterSet &p)
virtual ~StripCPEfromTrackAngleESProducer ()

Private Attributes

boost::shared_ptr
< StripClusterParameterEstimator
_cpe
edm::ParameterSet pset_


Detailed Description

Definition at line 10 of file StripCPEfromTrackAngleESProducer.h.


Constructor & Destructor Documentation

StripCPEfromTrackAngleESProducer::StripCPEfromTrackAngleESProducer ( const edm::ParameterSet p  ) 

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

StripCPEfromTrackAngleESProducer::~StripCPEfromTrackAngleESProducer (  )  [virtual]

Definition at line 27 of file StripCPEfromTrackAngleESProducer.cc.

00027 {}


Member Function Documentation

boost::shared_ptr< StripClusterParameterEstimator > StripCPEfromTrackAngleESProducer::produce ( const TkStripCPERecord iRecord  ) 

Definition at line 30 of file StripCPEfromTrackAngleESProducer.cc.

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

00030                                                                          { 
00031 //   if (_propagator){
00032 //     delete _propagator;
00033 //     _propagator = 0;
00034 //   }
00035   ESHandle<MagneticField> magfield;
00036   iRecord.getRecord<IdealMagneticFieldRecord>().get(magfield );
00037 
00038   edm::ESHandle<TrackerGeometry> pDD;
00039   iRecord.getRecord<TrackerDigiGeometryRecord>().get( pDD );
00040 
00041   edm::ESHandle<SiStripLorentzAngle> SiStripLorentzAngle_;
00042   iRecord.getRecord<SiStripLorentzAngleRcd>().get(SiStripLorentzAngle_);
00043   _cpe  = boost::shared_ptr<StripClusterParameterEstimator>(new StripCPEfromTrackAngle(pset_,magfield.product(), pDD.product(),SiStripLorentzAngle_.product() ));
00044 
00045   return _cpe;
00046 }


Member Data Documentation

boost::shared_ptr<StripClusterParameterEstimator> StripCPEfromTrackAngleESProducer::_cpe [private]

Definition at line 16 of file StripCPEfromTrackAngleESProducer.h.

Referenced by produce().

edm::ParameterSet StripCPEfromTrackAngleESProducer::pset_ [private]

Definition at line 17 of file StripCPEfromTrackAngleESProducer.h.

Referenced by produce(), and StripCPEfromTrackAngleESProducer().


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