#include <PixelCPETemplateRecoESProducer.h>
Public Member Functions | |
PixelCPETemplateRecoESProducer (const edm::ParameterSet &p) | |
boost::shared_ptr < PixelClusterParameterEstimator > | produce (const TkPixelCPERecord &) |
virtual | ~PixelCPETemplateRecoESProducer () |
Private Attributes | |
boost::shared_ptr < PixelClusterParameterEstimator > | cpe_ |
edm::ParameterSet | pset_ |
Definition at line 10 of file PixelCPETemplateRecoESProducer.h.
PixelCPETemplateRecoESProducer::PixelCPETemplateRecoESProducer | ( | const edm::ParameterSet & | p | ) |
Definition at line 20 of file PixelCPETemplateRecoESProducer.cc.
References edm::ParameterSet::getParameter(), and AlCaHLTBitMon_ParallelJobs::p.
{ std::string myname = p.getParameter<std::string>("ComponentName"); pset_ = p; setWhatProduced(this,myname); }
PixelCPETemplateRecoESProducer::~PixelCPETemplateRecoESProducer | ( | ) | [virtual] |
Definition at line 27 of file PixelCPETemplateRecoESProducer.cc.
{}
boost::shared_ptr< PixelClusterParameterEstimator > PixelCPETemplateRecoESProducer::produce | ( | const TkPixelCPERecord & | iRecord | ) |
Definition at line 30 of file PixelCPETemplateRecoESProducer.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), HLT_ES_cff::magfield, and edm::ESHandle< T >::product().
{ ESHandle<MagneticField> magfield; iRecord.getRecord<IdealMagneticFieldRecord>().get(magfield ); edm::ESHandle<TrackerGeometry> pDD; iRecord.getRecord<TrackerDigiGeometryRecord>().get( pDD ); edm::ESHandle<SiPixelLorentzAngle> lorentzAngle; iRecord.getRecord<SiPixelLorentzAngleRcd>().get(lorentzAngle); ESHandle<SiPixelTemplateDBObject> templateDBobject; iRecord.getRecord<SiPixelTemplateDBObjectESProducerRcd>().get(templateDBobject); cpe_ = boost::shared_ptr<PixelClusterParameterEstimator>(new PixelCPETemplateReco(pset_,magfield.product(),lorentzAngle.product(),templateDBobject.product() )); return cpe_; }
boost::shared_ptr<PixelClusterParameterEstimator> PixelCPETemplateRecoESProducer::cpe_ [private] |
Definition at line 16 of file PixelCPETemplateRecoESProducer.h.
Definition at line 17 of file PixelCPETemplateRecoESProducer.h.