CMS 3D CMS Logo

PixelFakeCPE.h
Go to the documentation of this file.
1 #ifndef RecoLocalTracker_Fake_PixelCluster_Parameter_Estimator_H
2 #define RecoLocalTracker_Fake_PixelCluster_Parameter_Estimator_H
3 
6 
10 
13 #include<tuple>
14 
15 
18 
20 public:
21 
22  PixelFakeCPE() = default;
23  ~PixelFakeCPE() = default;
24 
25  typedef std::pair<LocalPoint,LocalError> LocalValues;
26  typedef std::vector<LocalValues> VLocalValues;
27 
28  using ReturnType = std::tuple<LocalPoint,LocalError,SiPixelRecHitQuality::QualWordType>;
29 
30  // here just to implement it in the clients;
31  // to be properly implemented in the sub-classes in order to make them thread-safe
32 
34  const GeomDetUnit & det) const override {
35  auto const & lv = fakeCPE().map().get(cl,det);
36  return {lv.first,lv.second,0};
37  }
38 
40  const GeomDetUnit & det,
41  const LocalTrajectoryParameters &) const override{
42  return getParameters(cl,det);
43  }
44 
45  void setFakeCPE(FakeCPE * iFakeCPE) { m_fakeCPE = iFakeCPE;}
46  FakeCPE const & fakeCPE() const { return *m_fakeCPE; }
47 
48 private:
49  FakeCPE const * m_fakeCPE=nullptr;
50 
51 };
52 
53 #endif
ReturnType getParameters(const SiPixelCluster &cl, const GeomDetUnit &det) const override
Definition: PixelFakeCPE.h:33
~PixelFakeCPE()=default
ReturnType getParameters(const SiPixelCluster &cl, const GeomDetUnit &det, const LocalTrajectoryParameters &) const override
Definition: PixelFakeCPE.h:39
LocalValues const & get(const Cluster &cluster, const GeomDetUnit &gd) const
Definition: FakeCPE.h:33
Map & map()
Definition: FakeCPE.h:58
FakeCPE const * m_fakeCPE
Definition: PixelFakeCPE.h:49
FakeCPE const & fakeCPE() const
Definition: PixelFakeCPE.h:46
std::vector< LocalValues > VLocalValues
Definition: PixelFakeCPE.h:26
std::pair< LocalPoint, LocalError > LocalValues
Definition: PixelFakeCPE.h:25
Pixel cluster – collection of neighboring pixels above threshold.
PixelFakeCPE()=default
void setFakeCPE(FakeCPE *iFakeCPE)
Definition: PixelFakeCPE.h:45
std::tuple< LocalPoint, LocalError, SiPixelRecHitQuality::QualWordType > ReturnType