#include <RecoLocalTracker/SiStripRecHitConverter/interface/StripCPEfromTrackAngleESProducer.h>
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_ |
Definition at line 10 of file StripCPEfromTrackAngleESProducer.h.
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] |
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 }
boost::shared_ptr<StripClusterParameterEstimator> StripCPEfromTrackAngleESProducer::_cpe [private] |
Definition at line 17 of file StripCPEfromTrackAngleESProducer.h.
Referenced by produce(), and StripCPEfromTrackAngleESProducer().