CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes | Friends
CSCRadialStripTopology Class Reference

#include <CSCRadialStripTopology.h>

Inheritance diagram for CSCRadialStripTopology:
RadialStripTopology StripTopology Topology OffsetRadialStripTopology CSCStripTopology CSCGangedStripTopology CSCUngangedStripTopology

Public Member Functions

float angularWidth () const override
 
float centreToIntersection () const override
 
int channel (const LocalPoint &) const override
 
 CSCRadialStripTopology (int ns, float aw, float dh, float r, float yAx=1.f, float yMid=0.)
 
float detHeight () const override
 
LocalError localError (float strip, float stripErr2) const override
 
LocalError localError (const MeasurementPoint &, const MeasurementError &) const override
 
float localPitch (const LocalPoint &) const override
 
LocalPoint localPosition (float strip) const override
 
LocalPoint localPosition (const MeasurementPoint &) const override
 
float localStripLength (const LocalPoint &) const override
 
MeasurementError measurementError (const LocalPoint &, const LocalError &) const override
 
MeasurementPoint measurementPosition (const LocalPoint &) const override
 
int nearestStrip (const LocalPoint &) const override
 
int nstrips () const override
 
float originToIntersection () const override
 
float phiOfOneEdge () const override
 
float phiPitch (void) const override
 
float strip (const LocalPoint &) const override
 
float stripAngle (float strip) const override
 
float stripLength () const override
 
float xOfStrip (int strip, float y) const override
 
float yAxisOrientation () const override
 
float yCentreOfStripPlane () const override
 
float yDistanceToIntersection (float y) const override
 
float yExtentOfStripPlane () const override
 
 ~CSCRadialStripTopology () override
 
- Public Member Functions inherited from RadialStripTopology
float pitch () const final
 
 ~RadialStripTopology () override
 
- Public Member Functions inherited from StripTopology
virtual float coveredStrips (const LocalPoint &lp1, const LocalPoint &lp2) const
 
virtual LocalError localError (float strip, float stripErr2, const Topology::LocalTrackPred &) const
 conversion taking also the angle from the predicted track state More...
 
virtual float localPitch (const LocalPoint &lp, const Topology::LocalTrackAngles &) const
 conversion taking also the angle from the track state (LocalTrajectoryParameters) More...
 
virtual LocalPoint localPosition (float strip, const Topology::LocalTrackPred &) const
 conversion taking also the predicted track state More...
 
virtual float localStripLength (const LocalPoint &lp, const Topology::LocalTrackAngles &) const
 conversion taking also the angle from the track state (LocalTrajectoryParameters) More...
 
virtual float strip (const LocalPoint &lp, const Topology::LocalTrackAngles &) const
 conversion taking also the angle from the track state (LocalTrajectoryParameters) More...
 
 ~StripTopology () override
 
- Public Member Functions inherited from Topology
virtual int channel (const LocalPoint &lp, const LocalTrackAngles &) const
 conversion taking also the angle from the track state More...
 
virtual LocalError localError (const MeasurementPoint &mp, const MeasurementError &me, const LocalTrackPred &) const
 conversion taking also the angle from the predicted track state More...
 
virtual LocalPoint localPosition (const MeasurementPoint &mp, const LocalTrackPred &) const
 conversion taking also the angle from the predicted track state More...
 
virtual MeasurementError measurementError (const LocalPoint &lp, const LocalError &le, const LocalTrackAngles &) const
 conversion taking also the angle from the track state More...
 
virtual MeasurementPoint measurementPosition (const LocalPoint &lp, const LocalTrackAngles &) const
 conversion taking also the angle from the track state More...
 
virtual ~Topology ()
 

Private Attributes

float theAngularWidth
 
float theCentreToIntersection
 
float theDetHeight
 
int theNumberOfStrips
 
float thePhiOfOneEdge
 
float theYAxisOrientation
 
float yCentre
 

Friends

std::ostream & operator<< (std::ostream &, const RadialStripTopology &)
 

Additional Inherited Members

- Public Types inherited from Topology
typedef Point2DBase< double, LocalTagLocal2DPoint
 
typedef Vector2D::MathVector MathVector2D
 
typedef Basic2DVector< double > Vector2D
 

Detailed Description

Definition at line 28 of file CSCRadialStripTopology.h.

Constructor & Destructor Documentation

CSCRadialStripTopology::CSCRadialStripTopology ( int  ns,
float  aw,
float  dh,
float  r,
float  yAx = 1.f,
float  yMid = 0. 
)

Constructor from:

Parameters
nsnumber of strips
awangular width of a strip
dhdetector height (usually 2 x apothem of TrapezoidalPlaneBounds)
rradial distance from symmetry centre of detector to the point at which the outer edges of the two extreme strips (projected) intersect.
yAxorientation of local y axis: 1 means pointing from the smaller side of the module to the larger side (along apothem), and -1 means in the opposite direction, i.e. from the larger side along the apothem to the smaller side. Default value is 1.
yMidlocal y offset if mid-point of detector (strip plane) does not coincide with local origin. This decouples the extent of strip plane from the boundary of the detector in which the RST is embedded.

Definition at line 7 of file CSCRadialStripTopology.cc.

References LogTrace, theAngularWidth, theNumberOfStrips, thePhiOfOneEdge, theYAxisOrientation, and yCentre.

7  :
10  theYAxisOrientation(yAx), yCentre( yMid) {
11  // Angular offset of extreme edge of detector, so that angle is
12  // zero for a strip lying along local y axis = long symmetry axis of plane of strips
14 
15  LogTrace("CSCRadialStripTopology") << "CSCRadialStripTopology: constructed with"
16  << " strips = " << ns
17  << " width = " << aw << " rad "
18  << " det_height = " << dh
19  << " ctoi = " << r
20  << " phi_edge = " << thePhiOfOneEdge << " rad "
21  << " y_ax_ori = " << theYAxisOrientation
22  << " y_det_centre = " << yCentre
23  << "\n";
24 }
#define LogTrace(id)
dh
Definition: cuy.py:353
CSCRadialStripTopology::~CSCRadialStripTopology ( )
inlineoverride

Destructor

Definition at line 50 of file CSCRadialStripTopology.h.

References localError(), localPitch(), localPosition(), strip(), and stripAngle().

50 {}

Member Function Documentation

float CSCRadialStripTopology::angularWidth ( ) const
inlineoverridevirtual
float CSCRadialStripTopology::centreToIntersection ( ) const
inlineoverridevirtual

Distance from the intersection of the projections of the extreme edges of the two extreme strips to the symmetry centre of the plane of strips.

Implements RadialStripTopology.

Definition at line 185 of file CSCRadialStripTopology.h.

References theCentreToIntersection.

Referenced by FWRecoGeometryESProducer::addCSCGeometry(), localError(), and ValidateGeometry::validateCSCLayerGeometry().

int CSCRadialStripTopology::channel ( const LocalPoint lp) const
overridevirtual

Channel number corresponding to a given LocalPoint.
This is effectively an integer version of strip(), with range 0 to nstrips-1.
LocalPoints outside the detector strip plane will be considered as contributing to the edge channels 0 or nstrips-1.

Implements RadialStripTopology.

Reimplemented in OffsetRadialStripTopology, CSCUngangedStripTopology, and CSCGangedStripTopology.

Definition at line 26 of file CSCRadialStripTopology.cc.

References min(), strip(), and theNumberOfStrips.

Referenced by CSCUngangedStripTopology::channel(), and stripLength().

26 { return std::min( int( strip(lp) ), theNumberOfStrips-1 ) ;}
T min(T a, T b)
Definition: MathUtil.h:58
float strip(const LocalPoint &) const override
float CSCRadialStripTopology::detHeight ( ) const
inlineoverridevirtual

Length of long symmetry axis of plane of strips

Implements RadialStripTopology.

Definition at line 173 of file CSCRadialStripTopology.h.

References theDetHeight.

Referenced by localError(), OffsetRadialStripTopology::localPosition(), localPosition(), localStripLength(), measurementError(), and measurementPosition().

LocalError CSCRadialStripTopology::localError ( float  strip,
float  stripErr2 
) const
overridevirtual

LocalError for a pure strip measurement, where 'strip' is the (float) position (a 'phi' angle wrt y axis) and stripErr2 is the sigma-squared. Both quantities are expressed in units of theAngularWidth of a strip.

Implements RadialStripTopology.

Definition at line 68 of file CSCRadialStripTopology.cc.

References angularWidth(), centreToIntersection(), detHeight(), f, phi, funct::pow(), findQualityFiles::rr, stripAngle(), reco::t2, funct::tan(), groupFilesInBlocks::tt, geometryCSVtoXML::xx, geometryCSVtoXML::xy, and geometryCSVtoXML::yy.

Referenced by ~CSCRadialStripTopology().

68  {
69  const double
70  phi(stripAngle(strip)), t1(std::tan(phi)), t2(t1*t1),
71  // s1(std::sin(phi)), c1(std::cos(phi)),
72  // cs(s1*c1), s2(s1*s1), c2(1-s2), // rotation matrix
73 
74  tt( stripErr2 * std::pow( centreToIntersection()*angularWidth() ,2.f) ), // tangential sigma^2 *c2
75  rr( std::pow(detHeight(), 2.f) * (1.f/12.f) ), // radial sigma^2( uniform prob density along strip) *c2
76 
77  xx( tt + t2*rr ),
78  yy( t2*tt + rr ),
79  xy( t1*( rr - tt ) );
80 
81  return LocalError( xx, xy, yy );
82 }
float detHeight() const override
float centreToIntersection() const override
auto const T2 &decltype(t1.eta()) t2
Definition: deltaR.h:16
float stripAngle(float strip) const override
Tan< T >::type tan(const T &t)
Definition: Tan.h:22
double f[11][100]
float angularWidth() const override
float strip(const LocalPoint &) const override
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40
LocalError CSCRadialStripTopology::localError ( const MeasurementPoint mp,
const MeasurementError me 
) const
overridevirtual

LocalError for a given MeasurementPoint with known MeasurementError. This may be used in Kalman filtering and hence must allow possible correlations between the components.

Implements RadialStripTopology.

Definition at line 84 of file CSCRadialStripTopology.cc.

References angularWidth(), alignmentValidation::c1, centreToIntersection(), funct::cos(), fwrapper::cs, detHeight(), phi, dttmaxenums::R, findQualityFiles::rr, indexGen::s2, funct::sin(), stripAngle(), groupFilesInBlocks::tt, MeasurementError::uu(), MeasurementError::uv(), MeasurementError::vv(), PV2DBase< T, PVType, FrameType >::x(), geometryCSVtoXML::xx, geometryCSVtoXML::xy, PV2DBase< T, PVType, FrameType >::y(), yAxisOrientation(), and geometryCSVtoXML::yy.

84  {
85  const double
86  phi(stripAngle(mp.x())), s1(std::sin(phi)), c1(std::cos(phi)),
87  cs(s1*c1), s2(s1*s1), c2(1-s2), // rotation matrix
88 
89  T( angularWidth() * ( centreToIntersection() + yAxisOrientation()*mp.y()*detHeight()) / c1 ), // tangential measurement unit (local pitch)
90  R( detHeight()/ c1 ), // radial measurement unit (strip length)
91  tt( me.uu() * T*T ), // tangential sigma^2
92  rr( me.vv() * R*R ), // radial sigma^2
93  tr( me.uv() * T*R ),
94 
95  xx( c2*tt + 2*cs*tr + s2*rr ),
96  yy( s2*tt - 2*cs*tr + c2*rr ),
97  xy( cs*( rr - tt ) + tr*( c2 - s2 ) );
98 
99  return LocalError( xx, xy, yy );
100 }
float detHeight() const override
float vv() const
auto_ptr< ClusterSequence > cs
T y() const
Definition: PV2DBase.h:46
float centreToIntersection() const override
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
float stripAngle(float strip) const override
float uu() const
float yAxisOrientation() const override
float angularWidth() const override
T x() const
Definition: PV2DBase.h:45
long double T
float uv() const
float CSCRadialStripTopology::localPitch ( const LocalPoint lp) const
overridevirtual

Pitch (strip width) at a given LocalPoint.
BEWARE: are you sure you really want to call this for a RadialStripTopology?

Implements RadialStripTopology.

Definition at line 119 of file CSCRadialStripTopology.cc.

References angularWidth(), funct::cos(), f, min(), nstrips(), funct::pow(), funct::sin(), strip(), stripAngle(), PV3DBase< T, PVType, FrameType >::y(), and yDistanceToIntersection().

Referenced by CSCLayerGeometry::stripPitch(), and ~CSCRadialStripTopology().

119  {
120  // The local pitch is the local x width of the strip at the local (x,y)
121  const int istrip = std::min(nstrips(), static_cast<int>(strip(lp)) + 1); // which strip number
122  const float fangle = stripAngle(static_cast<float>(istrip) - 0.5); // angle of strip centre
123  return
125  std::pow( std::cos(fangle-0.5f*angularWidth()), 2.f);
126 }
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
T y() const
Definition: PV3DBase.h:63
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
float stripAngle(float strip) const override
double f[11][100]
T min(T a, T b)
Definition: MathUtil.h:58
int nstrips() const override
float angularWidth() const override
float yDistanceToIntersection(float y) const override
float strip(const LocalPoint &) const override
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40
LocalPoint CSCRadialStripTopology::localPosition ( float  strip) const
overridevirtual

LocalPoint on x axis for given 'strip' 'strip' is a float in units of the strip (angular) width

Implements RadialStripTopology.

Reimplemented in OffsetRadialStripTopology.

Definition at line 50 of file CSCRadialStripTopology.cc.

References originToIntersection(), stripAngle(), funct::tan(), and yAxisOrientation().

Referenced by OffsetRadialStripTopology::localPosition(), and ~CSCRadialStripTopology().

50  {
52 }
Point3DBase< Scalar, LocalTag > LocalPoint
Definition: Definitions.h:32
float stripAngle(float strip) const override
Tan< T >::type tan(const T &t)
Definition: Tan.h:22
float originToIntersection() const override
float yAxisOrientation() const override
float strip(const LocalPoint &) const override
LocalPoint CSCRadialStripTopology::localPosition ( const MeasurementPoint mp) const
overridevirtual

LocalPoint for a given MeasurementPoint
What's a MeasurementPoint?
In analogy with that used with TrapezoidalStripTopology objects, a MeasurementPoint is a 2-dim object.
The first dimension measures the angular position wrt central line of symmetry of detector, in units of strip (angular) widths (range 0 to total angle subtended by a detector).
The second dimension measures the fractional position along the strip (range -0.5 to +0.5).
BEWARE! The components are not Cartesian.

Implements RadialStripTopology.

Reimplemented in OffsetRadialStripTopology.

Definition at line 54 of file CSCRadialStripTopology.cc.

References detHeight(), stripAngle(), funct::tan(), x, PV2DBase< T, PVType, FrameType >::x(), y, PV2DBase< T, PVType, FrameType >::y(), yAxisOrientation(), yCentreOfStripPlane(), and yDistanceToIntersection().

54  {
55  const float // y = (L/cos(phi))*mp.y()*cos(phi)
56  y( mp.y()*detHeight() + yCentreOfStripPlane() ),
58  return LocalPoint( x, y );
59 }
float detHeight() const override
Point3DBase< Scalar, LocalTag > LocalPoint
Definition: Definitions.h:32
T y() const
Definition: PV2DBase.h:46
float yCentreOfStripPlane() const override
float stripAngle(float strip) const override
Tan< T >::type tan(const T &t)
Definition: Tan.h:22
float yAxisOrientation() const override
float yDistanceToIntersection(float y) const override
T x() const
Definition: PV2DBase.h:45
float CSCRadialStripTopology::localStripLength ( const LocalPoint lp) const
overridevirtual

Length of a strip passing through a given LocalPpoint

Implements RadialStripTopology.

Definition at line 34 of file CSCRadialStripTopology.cc.

References detHeight(), f, funct::pow(), mathSSE::sqrt(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and yDistanceToIntersection().

Referenced by stripLength().

34  {
35  return detHeight() * std::sqrt(1.f + std::pow( lp.x()/yDistanceToIntersection(lp.y()), 2.f) );
36 }
float detHeight() const override
T y() const
Definition: PV3DBase.h:63
T sqrt(T t)
Definition: SSEVec.h:18
double f[11][100]
float yDistanceToIntersection(float y) const override
T x() const
Definition: PV3DBase.h:62
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40
MeasurementError CSCRadialStripTopology::measurementError ( const LocalPoint p,
const LocalError e 
) const
overridevirtual

Implements RadialStripTopology.

Definition at line 102 of file CSCRadialStripTopology.cc.

References angularWidth(), fwrapper::cs, detHeight(), f, funct::pow(), indexGen::s2, mathSSE::sqrt(), lumiQTWidget::t, PV3DBase< T, PVType, FrameType >::x(), LocalError::xx(), LocalError::xy(), PV3DBase< T, PVType, FrameType >::y(), yAxisOrientation(), yDistanceToIntersection(), and LocalError::yy().

Referenced by stripLength().

102  {
103  const double
104  yHitToInter(yDistanceToIntersection(p.y())),
105  t(yAxisOrientation() * p.x() / yHitToInter), // tan(strip angle)
106  cs(t/(1+t*t)), s2(t*cs), c2(1-s2), // rotation matrix
107 
108  T2( 1./(std::pow(angularWidth(),2.f) * ( std::pow(p.x(),2.f) + std::pow(yHitToInter,2)) )), // 1./tangential measurement unit (local pitch) ^2
109  R2( c2/std::pow(detHeight(),2.f) ), // 1./ radial measurement unit (strip length) ^2
110 
111  uu( ( c2*e.xx() - 2*cs*e.xy() + s2*e.yy() ) * T2 ),
112  vv( ( s2*e.xx() + 2*cs*e.xy() + c2*e.yy() ) * R2 ),
113  uv( ( cs*( e.xx() - e.yy() ) + e.xy()*( c2 - s2 ) ) * std::sqrt (T2*R2) );
114 
115  return MeasurementError(uu, uv, vv);
116 }
float detHeight() const override
float xx() const
Definition: LocalError.h:24
auto_ptr< ClusterSequence > cs
T y() const
Definition: PV3DBase.h:63
float xy() const
Definition: LocalError.h:25
float yy() const
Definition: LocalError.h:26
T sqrt(T t)
Definition: SSEVec.h:18
double f[11][100]
float yAxisOrientation() const override
float angularWidth() const override
float yDistanceToIntersection(float y) const override
T x() const
Definition: PV3DBase.h:62
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40
MeasurementPoint CSCRadialStripTopology::measurementPosition ( const LocalPoint lp) const
overridevirtual

Implements RadialStripTopology.

Reimplemented in OffsetRadialStripTopology.

Definition at line 61 of file CSCRadialStripTopology.cc.

References angularWidth(), detHeight(), phi, phiOfOneEdge(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), yAxisOrientation(), yCentreOfStripPlane(), and yDistanceToIntersection().

Referenced by OffsetRadialStripTopology::measurementPosition(), and stripLength().

61  {
62  const float // phi is [pi/2 - conventional local phi], use atan2(x,y) rather than atan2(y,x)
63  phi( yAxisOrientation() * std::atan2( lp.x(), yDistanceToIntersection( lp.y() ) ));
65  ( lp.y() - yCentreOfStripPlane() ) / detHeight() );
66 }
float detHeight() const override
T y() const
Definition: PV3DBase.h:63
Measurement2DPoint MeasurementPoint
Measurement points are two-dimensional by default.
float yCentreOfStripPlane() const override
float phiOfOneEdge() const override
float yAxisOrientation() const override
float angularWidth() const override
float yDistanceToIntersection(float y) const override
T x() const
Definition: PV3DBase.h:62
int CSCRadialStripTopology::nearestStrip ( const LocalPoint lp) const
overridevirtual

Nearest strip to given LocalPoint

Implements RadialStripTopology.

Definition at line 28 of file CSCRadialStripTopology.cc.

References SiStripPI::max, min(), nstrips(), and strip().

Referenced by CSCLayerGeometry::nearestStrip(), and phiOfOneEdge().

28 { return std::min( nstrips(), static_cast<int>( std::max(float(0), strip(lp)) ) + 1);}
T min(T a, T b)
Definition: MathUtil.h:58
int nstrips() const override
float strip(const LocalPoint &) const override
int CSCRadialStripTopology::nstrips ( ) const
inlineoverridevirtual
float CSCRadialStripTopology::originToIntersection ( ) const
inlineoverridevirtual

(y) distance from intersection of the projections of the strips to the local coordinate origin. Same as centreToIntersection() if symmetry centre of strip plane coincides with local origin.

Implements RadialStripTopology.

Definition at line 192 of file CSCRadialStripTopology.h.

References theCentreToIntersection, and yCentre.

Referenced by CSCStripTopology::equationOfStrip(), localPosition(), OffsetRadialStripTopology::localPosition(), OffsetRadialStripTopology::strip(), OffsetRadialStripTopology::toLocal(), OffsetRadialStripTopology::toPrime(), and yDistanceToIntersection().

float CSCRadialStripTopology::phiOfOneEdge ( ) const
inlineoverridevirtual

Convenience function to access azimuthal angle of extreme edge of first strip measured relative to long symmetry axis of the plane of strips.

WARNING! This angle is measured clockwise from the local y axis which means it is in the conventional azimuthal phi plane, but azimuth is of course measured from local x axis not y. The range of this angle is -(full angle)/2 to +(full angle)/2.
where (full angle) = nstrips() * angularWidth().

Implements RadialStripTopology.

Definition at line 206 of file CSCRadialStripTopology.h.

References nearestStrip(), thePhiOfOneEdge, xOfStrip(), and y.

Referenced by FWRecoGeometryESProducer::addCSCGeometry(), OffsetRadialStripTopology::localPosition(), measurementPosition(), OffsetRadialStripTopology::strip(), strip(), OffsetRadialStripTopology::stripAngle(), stripAngle(), and ValidateGeometry::validateCSCLayerGeometry().

float CSCRadialStripTopology::phiPitch ( void  ) const
inlineoverridevirtual

Phi pitch of each strip (= angular width!)

Implements RadialStripTopology.

Definition at line 168 of file CSCRadialStripTopology.h.

References angularWidth().

Referenced by CSCLayerGeometry::stripPhiPitch().

168 { return angularWidth(); }
float angularWidth() const override
float CSCRadialStripTopology::strip ( const LocalPoint lp) const
overridevirtual

Strip in which a given LocalPoint lies. This is a float which represents the fractional strip position within the detector.
Returns zero if the LocalPoint falls at the extreme low edge of the detector or BELOW, and float(nstrips) if it falls at the extreme high edge or ABOVE.

Implements RadialStripTopology.

Reimplemented in OffsetRadialStripTopology.

Definition at line 43 of file CSCRadialStripTopology.cc.

References angularWidth(), SiStripPI::max, min(), nstrips(), phi, phiOfOneEdge(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), yAxisOrientation(), and yDistanceToIntersection().

Referenced by CSCGangedStripTopology::channel(), channel(), localPitch(), nearestStrip(), and ~CSCRadialStripTopology().

43  {
44  const float // phi is measured from y axis --> sign of angle is sign of x * yAxisOrientation --> use atan2(x,y), not atan2(y,x)
45  phi( std::atan2( lp.x(), yDistanceToIntersection( lp.y() ) )),
46  aStrip( ( phi - yAxisOrientation() * phiOfOneEdge() )/angularWidth());
47  return std::max(float(0), std::min( (float)nstrips(), aStrip ));
48 }
T y() const
Definition: PV3DBase.h:63
float phiOfOneEdge() const override
T min(T a, T b)
Definition: MathUtil.h:58
int nstrips() const override
float yAxisOrientation() const override
float angularWidth() const override
float yDistanceToIntersection(float y) const override
T x() const
Definition: PV3DBase.h:62
float CSCRadialStripTopology::stripAngle ( float  strip) const
overridevirtual

Angle between strip and symmetry axis (=local y axis) for given strip.
This is like a phi angle but measured clockwise from y axis rather than counter clockwise from x axis. Note that 'strip' is a float with a continuous range from 0 to float(nstrips) to cover the whole detector, and the centres of strips correspond to half-integer values 0.5, 1.5, ..., nstrips-0.5 whereas values 1, 2, ... nstrips correspond to the upper phi edges of the strips.

Implements RadialStripTopology.

Reimplemented in OffsetRadialStripTopology.

Definition at line 30 of file CSCRadialStripTopology.cc.

References angularWidth(), phiOfOneEdge(), and yAxisOrientation().

Referenced by localError(), localPitch(), localPosition(), xOfStrip(), and ~CSCRadialStripTopology().

30 { return phiOfOneEdge() + yAxisOrientation() * strip * angularWidth() ;}
float phiOfOneEdge() const override
float yAxisOrientation() const override
float angularWidth() const override
float strip(const LocalPoint &) const override
float CSCRadialStripTopology::stripLength ( ) const
inlineoverridevirtual

Height of detector (= length of long symmetry axis of the plane of strips).

Implements RadialStripTopology.

Definition at line 129 of file CSCRadialStripTopology.h.

References channel(), localStripLength(), measurementError(), measurementPosition(), and theDetHeight.

float CSCRadialStripTopology::xOfStrip ( int  strip,
float  y 
) const
overridevirtual

Local x where centre of strip intersects input local y
'strip' should be in range 1 to nstrips()

Implements RadialStripTopology.

Definition at line 38 of file CSCRadialStripTopology.cc.

References stripAngle(), funct::tan(), yAxisOrientation(), and yDistanceToIntersection().

Referenced by phiOfOneEdge(), and CSCLayerGeometry::xOfStrip().

38  {
39  return
40  yAxisOrientation() * yDistanceToIntersection( y ) * std::tan( stripAngle(static_cast<float>(strip) - 0.5 ) );
41 }
float stripAngle(float strip) const override
Tan< T >::type tan(const T &t)
Definition: Tan.h:22
float yAxisOrientation() const override
float yDistanceToIntersection(float y) const override
float strip(const LocalPoint &) const override
float CSCRadialStripTopology::yAxisOrientation ( ) const
inlineoverridevirtual
float CSCRadialStripTopology::yCentreOfStripPlane ( ) const
inlineoverridevirtual
float CSCRadialStripTopology::yDistanceToIntersection ( float  y) const
overridevirtual

Distance in local y from a hit to the point of intersection of projected strips

Implements RadialStripTopology.

Definition at line 32 of file CSCRadialStripTopology.cc.

References originToIntersection(), and yAxisOrientation().

Referenced by localPitch(), localPosition(), localStripLength(), measurementError(), measurementPosition(), strip(), xOfStrip(), and yCentreOfStripPlane().

32 { return yAxisOrientation()*y + originToIntersection() ;}
float originToIntersection() const override
float yAxisOrientation() const override
float CSCRadialStripTopology::yExtentOfStripPlane ( ) const
inlineoverridevirtual

y extent of strip plane

Implements RadialStripTopology.

Definition at line 178 of file CSCRadialStripTopology.h.

References theDetHeight.

Referenced by CSCStripTopology::yLimitsOfStripPlane().

178 { return theDetHeight; } // same as detHeight()

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const RadialStripTopology rst 
)
friend

Definition at line 10 of file RadialStripTopology.cc.

Referenced by yCentreOfStripPlane().

10  {
11  os << "RadialStripTopology " << std::endl
12  << " " << std::endl
13  << "number of strips " << rst.nstrips() << std::endl
14  << "centre to whereStripsMeet " << rst.centreToIntersection() << std::endl
15  << "detector height in y " << rst.detHeight() << std::endl
16  << "angular width of strips " << rst.phiPitch() << std::endl
17  << "phi of one edge " << rst.phiOfOneEdge() << std::endl
18  << "y axis orientation " << rst.yAxisOrientation() << std::endl
19  << "y of centre of strip plane " << rst.yCentreOfStripPlane() << std::endl;
20  return os;
21 }
virtual float phiOfOneEdge() const =0
virtual float yCentreOfStripPlane() const =0
virtual float yAxisOrientation() const =0
int nstrips() const override=0
virtual float detHeight() const =0
virtual float centreToIntersection() const =0
virtual float phiPitch(void) const =0

Member Data Documentation

float CSCRadialStripTopology::theAngularWidth
private

Definition at line 239 of file CSCRadialStripTopology.h.

Referenced by angularWidth(), and CSCRadialStripTopology().

float CSCRadialStripTopology::theCentreToIntersection
private

Definition at line 241 of file CSCRadialStripTopology.h.

Referenced by centreToIntersection(), and originToIntersection().

float CSCRadialStripTopology::theDetHeight
private

Definition at line 240 of file CSCRadialStripTopology.h.

Referenced by detHeight(), stripLength(), and yExtentOfStripPlane().

int CSCRadialStripTopology::theNumberOfStrips
private

Definition at line 238 of file CSCRadialStripTopology.h.

Referenced by channel(), CSCRadialStripTopology(), and nstrips().

float CSCRadialStripTopology::thePhiOfOneEdge
private

Definition at line 242 of file CSCRadialStripTopology.h.

Referenced by CSCRadialStripTopology(), and phiOfOneEdge().

float CSCRadialStripTopology::theYAxisOrientation
private

Definition at line 243 of file CSCRadialStripTopology.h.

Referenced by CSCRadialStripTopology(), and yAxisOrientation().

float CSCRadialStripTopology::yCentre
private