#include <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(), and AlCaHLTBitMon_ParallelJobs::p.
{ std::string myname = p.getParameter<std::string>("ComponentName"); pset_ = p; setWhatProduced(this,myname); }
PixelCPEGenericESProducer::~PixelCPEGenericESProducer | ( | ) | [virtual] |
Definition at line 27 of file PixelCPEGenericESProducer.cc.
{}
boost::shared_ptr< PixelClusterParameterEstimator > PixelCPEGenericESProducer::produce | ( | const TkPixelCPERecord & | iRecord | ) |
Definition at line 30 of file PixelCPEGenericESProducer.cc.
References edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::getRecord(), autoMagneticFieldProducer_cfi::magfield, and edm::ESHandle< T >::product().
{ ESHandle<MagneticField> magfield; iRecord.getRecord<IdealMagneticFieldRecord>().get( magfield ); edm::ESHandle<TrackerGeometry> pDD; iRecord.getRecord<TrackerDigiGeometryRecord>().get( pDD ); ESHandle<SiPixelLorentzAngle> lorentzAngle; iRecord.getRecord<SiPixelLorentzAngleRcd>().get(lorentzAngle ); ESHandle<SiPixelCPEGenericErrorParm> genErrorParm; iRecord.getRecord<SiPixelCPEGenericErrorParmRcd>().get(genErrorParm); ESHandle<SiPixelTemplateDBObject> templateDBobject; iRecord.getRecord<SiPixelTemplateDBObjectESProducerRcd>().get(templateDBobject); cpe_ = boost::shared_ptr<PixelClusterParameterEstimator>(new PixelCPEGeneric(pset_,magfield.product(),lorentzAngle.product(),genErrorParm.product(),templateDBobject.product()) ); //ToDo? Replace blah.product() with ESHandle return cpe_; }
boost::shared_ptr<PixelClusterParameterEstimator> PixelCPEGenericESProducer::cpe_ [private] |
Definition at line 16 of file PixelCPEGenericESProducer.h.
Definition at line 17 of file PixelCPEGenericESProducer.h.