CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ProxyPixelTopology.h
Go to the documentation of this file.
1 #ifndef Geometry_CommonTopologies_ProxyPixelTopology_H
2 #define Geometry_CommonTopologies_ProxyPixelTopology_H
3 
15 //
21 
25 
26 class Plane;
27 
28 class ProxyPixelTopology final : public PixelTopology {
29 public:
31 
32  LocalPoint localPosition(const MeasurementPoint &) const override;
34  LocalPoint localPosition(const MeasurementPoint &mp, const Topology::LocalTrackPred &trkPred) const override;
35 
36  LocalError localError(const MeasurementPoint &, const MeasurementError &) const override;
39  const MeasurementError &me,
40  const Topology::LocalTrackPred &trkPred) const override;
41 
42  MeasurementPoint measurementPosition(const LocalPoint &) const override;
44 
45  MeasurementError measurementError(const LocalPoint &lp, const LocalError &le) const override;
47  const LocalError &le,
48  const Topology::LocalTrackAngles &dir) const override;
49 
50  int channel(const LocalPoint &) const override;
51  int channel(const LocalPoint &lp, const Topology::LocalTrackAngles &dir) const override;
52 
53  std::pair<float, float> pixel(const LocalPoint &p) const override;
55  std::pair<float, float> pixel(const LocalPoint &p, const Topology::LocalTrackAngles &ltp) const override;
56 
57  std::pair<float, float> pitch() const override { return specificTopology().pitch(); }
58  int nrows() const override { return specificTopology().nrows(); }
59  int ncolumns() const override { return specificTopology().ncolumns(); }
60  int rocsY() const override { return specificTopology().rocsY(); }
61  int rocsX() const override { return specificTopology().rocsX(); }
62  int rowsperroc() const override { return specificTopology().rowsperroc(); }
63  int colsperroc() const override { return specificTopology().colsperroc(); }
64  bool isBricked() const override { return specificTopology().isBricked(); }
65  float localX(const float mpX) const override;
66  float localX(const float mpX, const Topology::LocalTrackPred &trkPred) const override;
67  float localY(const float mpY) const override;
68  float localY(const float mpY, const Topology::LocalTrackPred &trkPred) const override;
69 
70  bool isItBigPixelInX(const int ixbin) const override { return specificTopology().isItBigPixelInX(ixbin); }
71  bool isItBigPixelInY(const int iybin) const override { return specificTopology().isItBigPixelInY(iybin); }
72  bool containsBigPixelInX(int ixmin, int ixmax) const override {
73  return specificTopology().containsBigPixelInX(ixmin, ixmax);
74  }
75  bool containsBigPixelInY(int iymin, int iymax) const override {
76  return specificTopology().containsBigPixelInY(iymin, iymax);
77  }
78 
79  bool isItEdgePixelInX(int ixbin) const override { return specificTopology().isItEdgePixelInX(ixbin); }
80  bool isItEdgePixelInY(int iybin) const override { return specificTopology().isItEdgePixelInY(iybin); }
81  bool isItEdgePixel(int ixbin, int iybin) const override { return specificTopology().isItEdgePixel(ixbin, iybin); }
82 
83  virtual const GeomDetType &type() const { return *theType; }
84 
85  virtual PixelGeomDetType const &specificType() const { return *theType; }
86 
87  const SurfaceDeformation *surfaceDeformation() const { return theSurfaceDeformation.operator->(); }
88  virtual void setSurfaceDeformation(const SurfaceDeformation *deformation);
89 
90  virtual const PixelTopology &specificTopology() const { return specificType().specificTopology(); }
91 
92 private:
96  const Topology::LocalTrackAngles &dir) const;
100 
103  std::unique_ptr<const SurfaceDeformation> theSurfaceDeformation;
104 };
105 
106 #endif
SurfaceDeformation::Local2DVector positionCorrection(const LocalPoint &pos, const Topology::LocalTrackAngles &dir) const
virtual void setSurfaceDeformation(const SurfaceDeformation *deformation)
LocalPoint localPosition(const MeasurementPoint &) const override
std::pair< float, float > pitch() const override
PixelGeomDetType const * theType
int nrows() const override
virtual int ncolumns() const =0
LocalError localError(const MeasurementPoint &, const MeasurementError &) const override
virtual int rowsperroc() const =0
bool isItEdgePixelInY(int iybin) const override
virtual int nrows() const =0
int channel(const LocalPoint &) const override
bool containsBigPixelInX(int ixmin, int ixmax) const override
virtual int rocsX() const =0
Definition: Plane.h:16
ProxyPixelTopology(PixelGeomDetType const *type, Plane *bp)
MeasurementError measurementError(const LocalPoint &lp, const LocalError &le) const override
virtual bool isItEdgePixelInX(int ixbin) const =0
virtual bool containsBigPixelInY(int iymin, int iymax) const =0
virtual bool isItBigPixelInX(int ixbin) const =0
virtual int colsperroc() const =0
virtual bool isBricked() const =0
float localY(const float mpY) const override
virtual bool isItBigPixelInY(int iybin) const =0
virtual bool containsBigPixelInX(int ixmin, int ixmax) const =0
int rowsperroc() const override
bool containsBigPixelInY(int iymin, int iymax) const override
bool isItEdgePixel(int ixbin, int iybin) const override
virtual int rocsY() const =0
bool isBricked() const override
int rocsY() const override
virtual PixelGeomDetType const & specificType() const
bool isItEdgePixelInX(int ixbin) const override
int ncolumns() const override
virtual const PixelTopology & specificTopology() const
virtual const TopologyType & specificTopology() const
std::pair< float, float > pixel(const LocalPoint &p) const override
bool isItBigPixelInX(const int ixbin) const override
int colsperroc() const override
float localX(const float mpX) const override
std::unique_ptr< const SurfaceDeformation > theSurfaceDeformation
virtual bool isItEdgePixelInY(int iybin) const =0
const SurfaceDeformation * surfaceDeformation() const
virtual const GeomDetType & type() const
bool isItBigPixelInY(const int iybin) const override
virtual std::pair< float, float > pitch() const =0
int rocsX() const override
MeasurementPoint measurementPosition(const LocalPoint &) const override
virtual bool isItEdgePixel(int ixbin, int iybin) const =0