#include <RecoLocalTracker/SiPixelRecHits/interface/PixelCPEParmErrorESProducer.h>
Public Member Functions | |
PixelCPEParmErrorESProducer (const edm::ParameterSet &p) | |
boost::shared_ptr < PixelClusterParameterEstimator > | produce (const TkPixelCPERecord &) |
virtual | ~PixelCPEParmErrorESProducer () |
Private Attributes | |
boost::shared_ptr < PixelClusterParameterEstimator > | cpe_ |
edm::ParameterSet | pset_ |
Definition at line 10 of file PixelCPEParmErrorESProducer.h.
PixelCPEParmErrorESProducer::PixelCPEParmErrorESProducer | ( | const edm::ParameterSet & | p | ) |
Definition at line 20 of file PixelCPEParmErrorESProducer.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 }
PixelCPEParmErrorESProducer::~PixelCPEParmErrorESProducer | ( | ) | [virtual] |
boost::shared_ptr< PixelClusterParameterEstimator > PixelCPEParmErrorESProducer::produce | ( | const TkPixelCPERecord & | iRecord | ) |
Definition at line 30 of file PixelCPEParmErrorESProducer.cc.
References cpe_, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), volumeBasedMagneticField_1103l_cfi::magfield, edm::ESHandle< T >::product(), and pset_.
00030 { 00031 00032 ESHandle<MagneticField> magfield; 00033 iRecord.getRecord<IdealMagneticFieldRecord>().get(magfield ); 00034 00035 ESHandle<SiPixelLorentzAngle> lorentzAngle; 00036 iRecord.getRecord<SiPixelLorentzAngleRcd>().get(lorentzAngle ); 00037 00038 edm::ESHandle<TrackerGeometry> pDD; 00039 iRecord.getRecord<TrackerDigiGeometryRecord>().get( pDD ); 00040 00041 cpe_ = boost::shared_ptr<PixelClusterParameterEstimator>(new PixelCPEParmError(pset_,magfield.product(),lorentzAngle.product()) ); 00042 return cpe_; 00043 }
boost::shared_ptr<PixelClusterParameterEstimator> PixelCPEParmErrorESProducer::cpe_ [private] |
Definition at line 17 of file PixelCPEParmErrorESProducer.h.
Referenced by PixelCPEParmErrorESProducer(), and produce().