CMS 3D CMS Logo

TkRadialStripTopology.h
Go to the documentation of this file.
1 #ifndef _TkRADIAL_STRIP_TOPOLOGY_H_
2 #define _TkRADIAL_STRIP_TOPOLOGY_H_
3 
5 
29 public:
44  TkRadialStripTopology(int ns, float aw, float dh, float r, int yAx = 1, float yMid = 0.);
45 
49  ~TkRadialStripTopology() override {}
50 
51  // =========================================================
52  // StripTopology interface - implement pure methods
53  // =========================================================
54 
59  LocalPoint localPosition(float strip) const override;
60 
74  LocalPoint localPosition(const MeasurementPoint&) const override;
75 
82  LocalError localError(float strip, float stripErr2) const override;
83 
89  LocalError localError(const MeasurementPoint&, const MeasurementError&) const override;
90 
98  float strip(const LocalPoint&) const override;
99 
100  // the number of strip span by the segment between the two points..
101  float coveredStrips(const LocalPoint& lp1, const LocalPoint& lp2) const override;
102 
107  float localPitch(const LocalPoint&) const override;
108 
120  float stripAngle(float strip) const override {
121  return yAxisOrientation() * (phiOfOneEdge() + strip * angularWidth());
122  }
123 
127  int nstrips() const override { return theNumberOfStrips; }
128 
132  float stripLength() const override { return theDetHeight; }
133 
137  float localStripLength(const LocalPoint&) const override;
138 
139  // =========================================================
140  // Topology interface (not already implemented for
141  // StripTopology interface)
142  // =========================================================
143 
144  MeasurementPoint measurementPosition(const LocalPoint&) const override;
145 
146  MeasurementError measurementError(const LocalPoint&, const LocalError&) const override;
147 
155  int channel(const LocalPoint&) const override;
156 
157  // =========================================================
158  // RadialStripTopology interface itself
159  // =========================================================
160 
164  float angularWidth() const override { return theAngularWidth; }
165 
169  float phiPitch(void) const override { return angularWidth(); }
170 
174  float detHeight() const override { return theDetHeight; }
175 
179  float yExtentOfStripPlane() const override { return theDetHeight; } // same as detHeight()
180 
186  float centreToIntersection() const override { return theCentreToIntersection; }
187 
193  float originToIntersection() const override { return (theCentreToIntersection - yCentre); }
194 
207  float phiOfOneEdge() const override { return thePhiOfOneEdge; }
208 
213  float xOfStrip(int strip, float y) const override;
214 
218  int nearestStrip(const LocalPoint&) const override;
219 
223  float yAxisOrientation() const override { return theYAxisOrientation; }
224 
228  float yCentreOfStripPlane() const override { return yCentre; }
229 
233  float yDistanceToIntersection(float y) const override;
234 
235 private:
236  int theNumberOfStrips; // total no. of strips in plane of strips
237  float theAngularWidth; // angle subtended by each strip = phi pitch
238  float theAWidthInverse; // inverse of above
239  float theTanAW; // its tangent
240  float theDetHeight; // length of long symmetry axis = twice the apothem of the enclosing trapezoid
241  float theCentreToIntersection; // distance centre of detector face to intersection of edge strips (projected)
242  float thePhiOfOneEdge; // local 'phi' of one edge of plane of strips (I choose it negative!)
243  float theTanOfOneEdge; // the positive tangent of the above...
244  float theYAxisOrientation; // 1 means y axis going from smaller to larger side, -1 means opposite direction
245  float yCentre; // Non-zero if offset in local y between midpoint of detector (strip plane) extent and local origin.
246  double theRadialSigma; // radial sigma^2( uniform prob density along strip)
247 };
248 
249 #endif
int channel(const LocalPoint &) const override
float stripAngle(float strip) const override
float xOfStrip(int strip, float y) const override
TkRadialStripTopology(int ns, float aw, float dh, float r, int yAx=1, float yMid=0.)
int nstrips() const override
float originToIntersection() const override
float strip(const LocalPoint &) const override
float phiPitch(void) const override
float yExtentOfStripPlane() const override
int nearestStrip(const LocalPoint &) const override
LocalError localError(float strip, float stripErr2) const override
float localStripLength(const LocalPoint &) const override
float localPitch(const LocalPoint &) const override
float stripLength() const override
float angularWidth() const override
float centreToIntersection() const override
float coveredStrips(const LocalPoint &lp1, const LocalPoint &lp2) const override
float yCentreOfStripPlane() const override
MeasurementPoint measurementPosition(const LocalPoint &) const override
MeasurementError measurementError(const LocalPoint &, const LocalError &) const override
float detHeight() const override
float yDistanceToIntersection(float y) const override
float yAxisOrientation() const override
dh
Definition: cuy.py:354
float phiOfOneEdge() const override
LocalPoint localPosition(float strip) const override