CMS 3D CMS Logo

StripCPEESProducer Class Reference

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

Inheritance diagram for StripCPEESProducer:

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

List of all members.

Public Member Functions

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

Private Attributes

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


Detailed Description

Definition at line 10 of file StripCPEESProducer.h.


Constructor & Destructor Documentation

StripCPEESProducer::StripCPEESProducer ( const edm::ParameterSet p  ) 

Definition at line 22 of file StripCPEESProducer.cc.

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

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

StripCPEESProducer::~StripCPEESProducer (  )  [virtual]

Definition at line 29 of file StripCPEESProducer.cc.

00029 {}


Member Function Documentation

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

Definition at line 32 of file StripCPEESProducer.cc.

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

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


Member Data Documentation

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

Definition at line 16 of file StripCPEESProducer.h.

Referenced by produce().

edm::ParameterSet StripCPEESProducer::pset_ [private]

Definition at line 17 of file StripCPEESProducer.h.

Referenced by produce(), and StripCPEESProducer().


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