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
PixelClusterParameterEstimator
Definition: PixelClusterParameterEstimator.h:15
TrajectoryStateOnSurface.h
SiPixelRecHitQuality.h
GeomDet
Definition: GeomDet.h:27
PixelClusterParameterEstimator.h
SiPixelCluster.h
SiPixelCluster
Pixel cluster – collection of neighboring pixels above threshold.
Definition: SiPixelCluster.h:27
PixelFakeCPE::LocalValues
std::pair< LocalPoint, LocalError > LocalValues
Definition: PixelFakeCPE.h:23
FakeCPE.h
PixelFakeCPE::~PixelFakeCPE
~PixelFakeCPE() override=default
PixelFakeCPE::PixelFakeCPE
PixelFakeCPE()=default
LocalTrajectoryParameters
Definition: LocalTrajectoryParameters.h:25
GetRecoTauVFromDQM_MC_cff.cl
cl
Definition: GetRecoTauVFromDQM_MC_cff.py:38
LocalTrajectoryParameters.h
PixelFakeCPE::getParameters
ReturnType getParameters(const SiPixelCluster &cl, const GeomDetUnit &det, const LocalTrajectoryParameters &) const override
Definition: PixelFakeCPE.h:36
LocalError.h
PixelFakeCPE::setFakeCPE
void setFakeCPE(FakeCPE *iFakeCPE)
Definition: PixelFakeCPE.h:42
PixelFakeCPE
Definition: PixelFakeCPE.h:18
PixelFakeCPE::m_fakeCPE
const FakeCPE * m_fakeCPE
Definition: PixelFakeCPE.h:46
FakeCPE
Definition: FakeCPE.h:17
PixelFakeCPE::fakeCPE
const FakeCPE & fakeCPE() const
Definition: PixelFakeCPE.h:43
FakeCPE::Map::get
LocalValues const & get(const Cluster &cluster, const GeomDetUnit &gd) const
Definition: FakeCPE.h:35
FakeCPE::map
Map & map()
Definition: FakeCPE.h:61
GeomDet.h
PixelFakeCPE::getParameters
ReturnType getParameters(const SiPixelCluster &cl, const GeomDetUnit &det) const override
Definition: PixelFakeCPE.h:31
LocalPoint.h
PixelFakeCPE::VLocalValues
std::vector< LocalValues > VLocalValues
Definition: PixelFakeCPE.h:24
PixelClusterParameterEstimator::ReturnType
std::tuple< LocalPoint, LocalError, SiPixelRecHitQuality::QualWordType > ReturnType
Definition: PixelClusterParameterEstimator.h:22