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