test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CSCRadialStripTopology.h
Go to the documentation of this file.
1 #ifndef _CSCRADIAL_STRIP_TOPOLOGY_H_
2 #define _CSCRADIAL_STRIP_TOPOLOGY_H_
3 
5 
29  public:
30 
45  CSCRadialStripTopology( int ns, float aw, float dh, float r, float yAx = 1.f, float yMid = 0.);
46 
51 
52  // =========================================================
53  // StripTopology interface - implement pure virtual methods
54  // =========================================================
55 
60  virtual LocalPoint localPosition(float strip) const;
61 
75  virtual LocalPoint localPosition(const MeasurementPoint&) const;
76 
83  virtual LocalError localError(float strip, float stripErr2) const;
84 
90  virtual LocalError localError(const MeasurementPoint&, const MeasurementError&) const;
91 
99  virtual float strip(const LocalPoint&) const;
100 
101 
106  virtual float localPitch(const LocalPoint&) const;
107 
119  virtual float stripAngle(float strip) const;
120 
124  virtual int nstrips() const { return theNumberOfStrips; }
125 
129  virtual float stripLength() const { return theDetHeight; }
130 
134  virtual float localStripLength(const LocalPoint& ) const;
135 
136 
137  // =========================================================
138  // Topology interface (not already implemented for
139  // StripTopology interface)
140  // =========================================================
141 
142  virtual MeasurementPoint measurementPosition( const LocalPoint& ) const;
143 
144  virtual MeasurementError measurementError( const LocalPoint&, const LocalError& ) const;
145 
153  virtual int channel( const LocalPoint& ) const;
154 
155 
156  // =========================================================
157  // RadialStripTopology interface itself
158  // =========================================================
159 
163  float angularWidth() const { return theAngularWidth;}
164 
168  virtual float phiPitch(void) const { return angularWidth(); }
169 
173  float detHeight() const { return theDetHeight;}
174 
178  float yExtentOfStripPlane() const { return theDetHeight; } // same as detHeight()
179 
186 
193 
206  float phiOfOneEdge() const { return thePhiOfOneEdge; }
207 
212  float xOfStrip(int strip, float y) const;
213 
217  virtual int nearestStrip(const LocalPoint&) const;
218 
222  float yAxisOrientation() const { return theYAxisOrientation; }
223 
227  float yCentreOfStripPlane() const { return yCentre; }
228 
232  float yDistanceToIntersection( float y ) const;
233 
234  friend std::ostream & operator<<(std::ostream&, const RadialStripTopology& );
235 
236  private:
237 
238  int theNumberOfStrips; // total no. of strips in plane of strips
239  float theAngularWidth; // angle subtended by each strip = phi pitch
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 theYAxisOrientation; // 1 means y axis going from smaller to larger side, -1 means opposite direction
244  float yCentre; // Non-zero if offset in local y between midpoint of detector (strip plane) extent and local origin.
245 };
246 
247 #endif
248 
249 
virtual int nstrips() const
virtual MeasurementError measurementError(const LocalPoint &, const LocalError &) const
virtual int channel(const LocalPoint &) const
virtual float localPitch(const LocalPoint &) const
virtual float strip(const LocalPoint &) const
virtual float stripLength() const
CSCRadialStripTopology(int ns, float aw, float dh, float r, float yAx=1.f, float yMid=0.)
float xOfStrip(int strip, float y) const
virtual float localStripLength(const LocalPoint &) const
double f[11][100]
virtual LocalPoint localPosition(float strip) const
virtual float phiPitch(void) const
float yDistanceToIntersection(float y) const
virtual MeasurementPoint measurementPosition(const LocalPoint &) const
friend std::ostream & operator<<(std::ostream &, const RadialStripTopology &)
virtual LocalError localError(float strip, float stripErr2) const
virtual float stripAngle(float strip) const
virtual int nearestStrip(const LocalPoint &) const
tuple dh
Definition: cuy.py:353