CMS 3D CMS Logo

ProxyMTDTopology.h
Go to the documentation of this file.
1 #ifndef Geometry_MTDGeometryBuilder_ProxyMTDTopology_H
2 #define Geometry_MTDGeometryBuilder_ProxyMTDTopology_H
3 
15 //
21 
25 
26 class Plane;
27 
28 class ProxyMTDTopology 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  float localX(const float mpX) const override;
65  float localX(const float mpX, const Topology::LocalTrackPred &trkPred) const override;
66  float localY(const float mpY) const override;
67  float localY(const float mpY, const Topology::LocalTrackPred &trkPred) const override;
68  bool isBricked() const override { return false; }
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 MTDGeomDetType 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
Point2DBase
Definition: Point2DBase.h:9
ProxyMTDTopology::isItEdgePixel
bool isItEdgePixel(int ixbin, int iybin) const override
Definition: ProxyMTDTopology.h:81
PixelTopology.h
ProxyMTDTopology::surfaceDeformation
const SurfaceDeformation * surfaceDeformation() const
Definition: ProxyMTDTopology.h:87
ProxyMTDTopology::localX
float localX(const float mpX) const override
Definition: ProxyMTDTopology.cc:112
PixelTopology::isItEdgePixelInX
virtual bool isItEdgePixelInX(int ixbin) const =0
ProxyMTDTopology::ProxyMTDTopology
ProxyMTDTopology(MTDGeomDetType const *type, Plane *bp)
Definition: ProxyMTDTopology.cc:8
ProxyMTDTopology::isBricked
bool isBricked() const override
Definition: ProxyMTDTopology.h:68
ProxyMTDTopology::theType
const MTDGeomDetType * theType
Definition: ProxyMTDTopology.h:101
ProxyMTDTopology::positionCorrection
SurfaceDeformation::Local2DVector positionCorrection(const LocalPoint &pos, const Topology::LocalTrackAngles &dir) const
Definition: ProxyMTDTopology.cc:147
PixelTopology::colsperroc
virtual int colsperroc() const =0
MTDGeomDetType::specificTopology
virtual const TopologyType & specificTopology() const
Definition: MTDGeomDetType.h:22
pos
Definition: PixelAliasList.h:18
PixelTopology::pitch
virtual std::pair< float, float > pitch() const =0
ProxyMTDTopology::containsBigPixelInX
bool containsBigPixelInX(int ixmin, int ixmax) const override
Definition: ProxyMTDTopology.h:72
GeomDetType
Definition: GeomDetType.h:9
ProxyMTDTopology::specificTopology
virtual const PixelTopology & specificTopology() const
Definition: ProxyMTDTopology.h:90
ProxyMTDTopology::nrows
int nrows() const override
Definition: ProxyMTDTopology.h:58
PixelTopology::isItEdgePixel
virtual bool isItEdgePixel(int ixbin, int iybin) const =0
SurfaceDeformation
Definition: SurfaceDeformation.h:18
PixelTopology::isItEdgePixelInY
virtual bool isItEdgePixelInY(int iybin) const =0
PixelTopology::isItBigPixelInX
virtual bool isItBigPixelInX(int ixbin) const =0
MTDGeomDetType
Definition: MTDGeomDetType.h:11
ProxyMTDTopology::theWidth
float theWidth
Definition: ProxyMTDTopology.h:102
PixelTopology::containsBigPixelInX
virtual bool containsBigPixelInX(int ixmin, int ixmax) const =0
MeasurementError
Definition: MeasurementError.h:8
Topology::LocalTrackPred
Definition: Topology.h:56
PixelTopology::rocsX
virtual int rocsX() const =0
ProxyMTDTopology::theSurfaceDeformation
std::unique_ptr< const SurfaceDeformation > theSurfaceDeformation
Definition: ProxyMTDTopology.h:103
PixelTopology::ncolumns
virtual int ncolumns() const =0
Vector2DBase
Definition: Vector2DBase.h:8
Point3DBase< float, LocalTag >
PixelTopology
Definition: PixelTopology.h:10
ProxyMTDTopology::isItBigPixelInY
bool isItBigPixelInY(const int iybin) const override
Definition: ProxyMTDTopology.h:71
SurfaceDeformation.h
ProxyMTDTopology::measurementError
MeasurementError measurementError(const LocalPoint &lp, const LocalError &le) const override
Definition: ProxyMTDTopology.cc:63
ProxyMTDTopology::localY
float localY(const float mpY) const override
Definition: ProxyMTDTopology.cc:127
ProxyMTDTopology::pixel
std::pair< float, float > pixel(const LocalPoint &p) const override
Definition: ProxyMTDTopology.cc:97
ProxyMTDTopology::channel
int channel(const LocalPoint &) const override
Definition: ProxyMTDTopology.cc:82
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
ProxyMTDTopology::rocsX
int rocsX() const override
Definition: ProxyMTDTopology.h:61
ProxyMTDTopology::containsBigPixelInY
bool containsBigPixelInY(int iymin, int iymax) const override
Definition: ProxyMTDTopology.h:75
LocalError
Definition: LocalError.h:12
ProxyMTDTopology::setSurfaceDeformation
virtual void setSurfaceDeformation(const SurfaceDeformation *deformation)
Definition: ProxyMTDTopology.cc:142
type
type
Definition: SiPixelVCal_PayloadInspector.cc:39
PixelTopology::isItBigPixelInY
virtual bool isItBigPixelInY(int iybin) const =0
Topology::LocalTrackAngles
Definition: Topology.h:44
ProxyMTDTopology::type
virtual const GeomDetType & type() const
Definition: ProxyMTDTopology.h:83
MTDGeomDetType.h
ProxyMTDTopology::isItEdgePixelInX
bool isItEdgePixelInX(int ixbin) const override
Definition: ProxyMTDTopology.h:79
ProxyMTDTopology::colsperroc
int colsperroc() const override
Definition: ProxyMTDTopology.h:63
ProxyMTDTopology::rocsY
int rocsY() const override
Definition: ProxyMTDTopology.h:60
PixelTopology::rowsperroc
virtual int rowsperroc() const =0
ProxyMTDTopology::measurementPosition
MeasurementPoint measurementPosition(const LocalPoint &) const override
Definition: ProxyMTDTopology.cc:45
ProxyMTDTopology::pitch
std::pair< float, float > pitch() const override
Definition: ProxyMTDTopology.h:57
ProxyMTDTopology
Definition: ProxyMTDTopology.h:28
PixelTopology::containsBigPixelInY
virtual bool containsBigPixelInY(int iymin, int iymax) const =0
ProxyMTDTopology::theLength
float theLength
Definition: ProxyMTDTopology.h:102
ProxyMTDTopology::localPosition
LocalPoint localPosition(const MeasurementPoint &) const override
Definition: ProxyMTDTopology.cc:12
ProxyMTDTopology::ncolumns
int ncolumns() const override
Definition: ProxyMTDTopology.h:59
Plane
Definition: Plane.h:16
PixelTopology::rocsY
virtual int rocsY() const =0
ProxyMTDTopology::isItEdgePixelInY
bool isItEdgePixelInY(int iybin) const override
Definition: ProxyMTDTopology.h:80
hlt_dqm_clientPB-live_cfg.me
me
Definition: hlt_dqm_clientPB-live_cfg.py:61
ProxyMTDTopology::isItBigPixelInX
bool isItBigPixelInX(const int ixbin) const override
Definition: ProxyMTDTopology.h:70
PixelTopology::nrows
virtual int nrows() const =0
ProxyMTDTopology::localError
LocalError localError(const MeasurementPoint &, const MeasurementError &) const override
Definition: ProxyMTDTopology.cc:29
ProxyMTDTopology::rowsperroc
int rowsperroc() const override
Definition: ProxyMTDTopology.h:62
DeadROC_duringRun.dir
dir
Definition: DeadROC_duringRun.py:23
ProxyMTDTopology::specificType
virtual const MTDGeomDetType & specificType() const
Definition: ProxyMTDTopology.h:85