CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
 
float centreToIntersection () const
 
virtual int channel (const LocalPoint &) const
 
 CSCRadialStripTopology (int ns, float aw, float dh, float r, float yAx=1.f, float yMid=0.)
 
float detHeight () const
 
virtual LocalError localError (float strip, float stripErr2) const
 
virtual LocalError localError (const MeasurementPoint &, const MeasurementError &) const
 
virtual float localPitch (const LocalPoint &) const
 
virtual LocalPoint localPosition (float strip) const
 
virtual LocalPoint localPosition (const MeasurementPoint &) const
 
virtual float localStripLength (const LocalPoint &) const
 
virtual MeasurementError measurementError (const LocalPoint &, const LocalError &) const
 
virtual MeasurementPoint measurementPosition (const LocalPoint &) const
 
virtual int nearestStrip (const LocalPoint &) const
 
virtual int nstrips () const
 
float originToIntersection () const
 
float phiOfOneEdge () const
 
virtual float phiPitch (void) const
 
virtual float strip (const LocalPoint &) const
 
virtual float stripAngle (float strip) const
 
virtual float stripLength () const
 
float xOfStrip (int strip, float y) const
 
float yAxisOrientation () const
 
float yCentreOfStripPlane () const
 
float yDistanceToIntersection (float y) const
 
float yExtentOfStripPlane () const
 
virtual ~CSCRadialStripTopology ()
 
- Public Member Functions inherited from RadialStripTopology
virtual float pitch () const final
 
virtual ~RadialStripTopology ()
 
- 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...
 
virtual ~StripTopology ()
 
- 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,
LocalTag
Local2DPoint
 
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)
tuple dh
Definition: cuy.py:353
virtual CSCRadialStripTopology::~CSCRadialStripTopology ( )
inlinevirtual

Destructor

Definition at line 50 of file CSCRadialStripTopology.h.

50 {}

Member Function Documentation

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

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
virtual

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().

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

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
virtual

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, and create_public_lumi_plots::xy.

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 }
virtual float strip(const LocalPoint &) const
auto const T2 &decltype(t1.eta()) t2
Definition: deltaR.h:16
Tan< T >::type tan(const T &t)
Definition: Tan.h:22
double f[11][100]
virtual float stripAngle(float strip) const
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
virtual

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(), create_public_lumi_plots::xy, PV2DBase< T, PVType, FrameType >::y(), and yAxisOrientation().

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 vv() const
auto_ptr< ClusterSequence > cs
T y() const
Definition: PV2DBase.h:46
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
tuple s2
Definition: indexGen.py:106
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
float uu() const
virtual float stripAngle(float strip) const
T x() const
Definition: PV2DBase.h:45
long double T
float uv() const
float CSCRadialStripTopology::localPitch ( const LocalPoint lp) const
virtual

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().

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 }
virtual int nstrips() const
Sin< T >::type sin(const T &t)
Definition: Sin.h:22
T y() const
Definition: PV3DBase.h:63
virtual float strip(const LocalPoint &) const
Cos< T >::type cos(const T &t)
Definition: Cos.h:22
double f[11][100]
T min(T a, T b)
Definition: MathUtil.h:58
float yDistanceToIntersection(float y) const
virtual float stripAngle(float strip) const
Power< A, B >::type pow(const A &a, const B &b)
Definition: Power.h:40
LocalPoint CSCRadialStripTopology::localPosition ( float  strip) const
virtual

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().

50  {
52 }
virtual float strip(const LocalPoint &) const
Tan< T >::type tan(const T &t)
Definition: Tan.h:22
Local3DPoint LocalPoint
Definition: LocalPoint.h:11
virtual float stripAngle(float strip) const
LocalPoint CSCRadialStripTopology::localPosition ( const MeasurementPoint mp) const
virtual

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 }
T y() const
Definition: PV2DBase.h:46
Tan< T >::type tan(const T &t)
Definition: Tan.h:22
float yDistanceToIntersection(float y) const
Local3DPoint LocalPoint
Definition: LocalPoint.h:11
virtual float stripAngle(float strip) const
T x() const
Definition: PV2DBase.h:45
float CSCRadialStripTopology::localStripLength ( const LocalPoint lp) const
virtual

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().

34  {
35  return detHeight() * std::sqrt(1.f + std::pow( lp.x()/yDistanceToIntersection(lp.y()), 2.f) );
36 }
T y() const
Definition: PV3DBase.h:63
T sqrt(T t)
Definition: SSEVec.h:18
double f[11][100]
float yDistanceToIntersection(float y) const
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
virtual

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().

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 xx() const
Definition: LocalError.h:24
auto_ptr< ClusterSequence > cs
T y() const
Definition: PV3DBase.h:63
tuple s2
Definition: indexGen.py:106
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 yDistanceToIntersection(float y) const
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
virtual

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().

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 }
T y() const
Definition: PV3DBase.h:63
Measurement2DPoint MeasurementPoint
Measurement points are two-dimensional by default.
float yDistanceToIntersection(float y) const
T x() const
Definition: PV3DBase.h:62
int CSCRadialStripTopology::nearestStrip ( const LocalPoint lp) const
virtual

Nearest strip to given LocalPoint

Implements RadialStripTopology.

Definition at line 28 of file CSCRadialStripTopology.cc.

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

Referenced by CSCLayerGeometry::nearestStrip().

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

(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
inlinevirtual

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 thePhiOfOneEdge.

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

virtual float CSCRadialStripTopology::phiPitch ( void  ) const
inlinevirtual

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 CSCRadialStripTopology::strip ( const LocalPoint lp) const
virtual

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(), bookConverter::max, min(), nstrips(), phi, phiOfOneEdge(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), yAxisOrientation(), and yDistanceToIntersection().

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

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 }
virtual int nstrips() const
T y() const
Definition: PV3DBase.h:63
T min(T a, T b)
Definition: MathUtil.h:58
float yDistanceToIntersection(float y) const
T x() const
Definition: PV3DBase.h:62
float CSCRadialStripTopology::stripAngle ( float  strip) const
virtual

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(), and xOfStrip().

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

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

Implements RadialStripTopology.

Definition at line 129 of file CSCRadialStripTopology.h.

References theDetHeight.

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

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 CSCLayerGeometry::xOfStrip().

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

Offset in local y between midpoint of detector (strip plane) extent and local origin

Implements RadialStripTopology.

Definition at line 227 of file CSCRadialStripTopology.h.

References yCentre.

Referenced by FWRecoGeometryESProducer::addCSCGeometry(), OffsetRadialStripTopology::localPosition(), localPosition(), measurementPosition(), ValidateGeometry::validateCSCLayerGeometry(), and CSCStripTopology::yLimitsOfStripPlane().

227 { return yCentre; }
float CSCRadialStripTopology::yDistanceToIntersection ( float  y) const
virtual

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(), and xOfStrip().

float CSCRadialStripTopology::yExtentOfStripPlane ( ) const
inlinevirtual

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.

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 centreToIntersection() const =0
virtual float yAxisOrientation() const =0
virtual float phiPitch(void) const =0
virtual float detHeight() const =0
virtual int nstrips() const =0
virtual float yCentreOfStripPlane() const =0
virtual float phiOfOneEdge() 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