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