CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PixelCPETemplateRecoESProducer.cc
Go to the documentation of this file.
7 
12 
13 
14 
15 #include <string>
16 #include <memory>
17 
18 using namespace edm;
19 
21 {
22  std::string myname = p.getParameter<std::string>("ComponentName");
23  pset_ = p;
24  setWhatProduced(this,myname);
25 }
26 
28 
29 boost::shared_ptr<PixelClusterParameterEstimator>
31 
33  iRecord.getRecord<IdealMagneticFieldRecord>().get(magfield );
34 
36  iRecord.getRecord<TrackerDigiGeometryRecord>().get( pDD );
37 
39  iRecord.getRecord<SiPixelLorentzAngleRcd>().get(lorentzAngle);
40 
41  ESHandle<SiPixelTemplateDBObject> templateDBobject;
42  iRecord.getRecord<SiPixelTemplateDBObjectESProducerRcd>().get(templateDBobject);
43 
44  cpe_ = boost::shared_ptr<PixelClusterParameterEstimator>(new PixelCPETemplateReco(pset_,magfield.product(),lorentzAngle.product(),templateDBobject.product() ));
45  return cpe_;
46 }
47 
48 
T getParameter(std::string const &) const
tuple magfield
Definition: HLT_ES_cff.py:2311
boost::shared_ptr< PixelClusterParameterEstimator > produce(const TkPixelCPERecord &)
T const * product() const
Definition: ESHandle.h:62
PixelCPETemplateRecoESProducer(const edm::ParameterSet &p)