CMS 3D CMS Logo

Public Member Functions | Private Attributes

PixelCPEGenericESProducer Class Reference

#include <PixelCPEGenericESProducer.h>

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

List of all members.

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_

Detailed Description

Definition at line 10 of file PixelCPEGenericESProducer.h.


Constructor & Destructor Documentation

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.

{}

Member Function Documentation

boost::shared_ptr< PixelClusterParameterEstimator > PixelCPEGenericESProducer::produce ( const TkPixelCPERecord iRecord)

Definition at line 30 of file PixelCPEGenericESProducer.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 );

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

Member Data Documentation

Definition at line 16 of file PixelCPEGenericESProducer.h.

Definition at line 17 of file PixelCPEGenericESProducer.h.