CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PixelCPEGenericESProducer.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 
38  ESHandle<SiPixelLorentzAngle> lorentzAngle;
39  iRecord.getRecord<SiPixelLorentzAngleRcd>().get(lorentzAngle );
40 
42  iRecord.getRecord<SiPixelCPEGenericErrorParmRcd>().get(genErrorParm);
43 
44  ESHandle<SiPixelTemplateDBObject> templateDBobject;
45  iRecord.getRecord<SiPixelTemplateDBObjectESProducerRcd>().get(templateDBobject);
46 
47  cpe_ = boost::shared_ptr<PixelClusterParameterEstimator>(new PixelCPEGeneric(pset_,magfield.product(),lorentzAngle.product(),genErrorParm.product(),templateDBobject.product()) );
48  //ToDo? Replace blah.product() with ESHandle
49 
50  return cpe_;
51 }
52 
53 
T getParameter(std::string const &) const
tuple magfield
Definition: HLT_ES_cff.py:2311
T const * product() const
Definition: ESHandle.h:62
boost::shared_ptr< PixelClusterParameterEstimator > produce(const TkPixelCPERecord &)
PixelCPEGenericESProducer(const edm::ParameterSet &p)