CMS 3D CMS Logo

Public Member Functions | Private Attributes

PixelCPETemplateRecoESProducer Class Reference

#include <PixelCPETemplateRecoESProducer.h>

Inheritance diagram for PixelCPETemplateRecoESProducer:
edm::ESProducer edm::ESProxyFactoryProducer edm::eventsetup::DataProxyProvider

List of all members.

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_

Detailed Description

Definition at line 10 of file PixelCPETemplateRecoESProducer.h.


Constructor & Destructor Documentation

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.

{}

Member Function Documentation

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_;
}

Member Data Documentation

Definition at line 16 of file PixelCPETemplateRecoESProducer.h.

Definition at line 17 of file PixelCPETemplateRecoESProducer.h.