#include <RecoLocalTracker/SiPixelRecHits/interface/PixelCPEGenericESProducer.h>
Public Member Functions | |
PixelCPEGenericESProducer (const edm::ParameterSet &p) | |
boost::shared_ptr < PixelClusterParameterEstimator > | produce (const TkPixelCPERecord &) |
virtual | ~PixelCPEGenericESProducer () |
Private Attributes | |
boost::shared_ptr < PixelClusterParameterEstimator > | cpe_ |
edm::ParameterSet | pset_ |
Definition at line 10 of file PixelCPEGenericESProducer.h.
PixelCPEGenericESProducer::PixelCPEGenericESProducer | ( | const edm::ParameterSet & | p | ) |
Definition at line 20 of file PixelCPEGenericESProducer.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 }
PixelCPEGenericESProducer::~PixelCPEGenericESProducer | ( | ) | [virtual] |
boost::shared_ptr< PixelClusterParameterEstimator > PixelCPEGenericESProducer::produce | ( | const TkPixelCPERecord & | iRecord | ) |
Definition at line 30 of file PixelCPEGenericESProducer.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 edm::ESHandle<TrackerGeometry> pDD; 00036 iRecord.getRecord<TrackerDigiGeometryRecord>().get( pDD ); 00037 00038 ESHandle<SiPixelLorentzAngle> lorentzAngle; 00039 iRecord.getRecord<SiPixelLorentzAngleRcd>().get(lorentzAngle ); 00040 00041 cpe_ = boost::shared_ptr<PixelClusterParameterEstimator>(new PixelCPEGeneric(pset_,magfield.product(),lorentzAngle.product()) ); 00042 //ToDo? Replace blah.product() with ESHandle 00043 00044 return cpe_; 00045 }
boost::shared_ptr<PixelClusterParameterEstimator> PixelCPEGenericESProducer::cpe_ [private] |
Definition at line 17 of file PixelCPEGenericESProducer.h.
Referenced by PixelCPEGenericESProducer(), and produce().