CMS 3D CMS Logo

StripCPEfromTrackAngle2ESProducer Class Reference

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

Inheritance diagram for StripCPEfromTrackAngle2ESProducer:

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

List of all members.

Public Member Functions

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

Private Attributes

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


Detailed Description

Definition at line 10 of file StripCPEfromTrackAngle2ESProducer.h.


Constructor & Destructor Documentation

StripCPEfromTrackAngle2ESProducer::StripCPEfromTrackAngle2ESProducer ( const edm::ParameterSet p  ) 

Definition at line 19 of file StripCPEfromTrackAngle2ESProducer.cc.

References GenMuonPlsPt100GeV_cfg::cout, lat::endl(), edm::ParameterSet::getParameter(), pset_, and edm::ESProducer::setWhatProduced().

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

StripCPEfromTrackAngle2ESProducer::~StripCPEfromTrackAngle2ESProducer (  )  [virtual]

Definition at line 27 of file StripCPEfromTrackAngle2ESProducer.cc.

00027 {}


Member Function Documentation

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

Definition at line 30 of file StripCPEfromTrackAngle2ESProducer.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 
00044   _cpe  = boost::shared_ptr<StripClusterParameterEstimator>(new StripCPEfromTrackAngle2(pset_,magfield.product(), pDD.product(),SiStripLorentzAngle_.product()));
00045   return _cpe;
00046 
00047 
00048 }


Member Data Documentation

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

Definition at line 16 of file StripCPEfromTrackAngle2ESProducer.h.

Referenced by produce().

edm::ParameterSet StripCPEfromTrackAngle2ESProducer::pset_ [private]

Definition at line 17 of file StripCPEfromTrackAngle2ESProducer.h.

Referenced by produce(), and StripCPEfromTrackAngle2ESProducer().


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