#include <TkRadialStripTopology.h>
Public Member Functions | |
float | angularWidth () const |
float | centreToIntersection () const |
int | channel (const LocalPoint &) const |
float | coveredStrips (const LocalPoint &lp1, const LocalPoint &lp2) const |
float | detHeight () const |
LocalError | localError (float strip, float stripErr2) const |
LocalError | localError (const MeasurementPoint &, const MeasurementError &) const |
float | localPitch (const LocalPoint &) const |
LocalPoint | localPosition (float strip) const |
LocalPoint | localPosition (const MeasurementPoint &) const |
float | localStripLength (const LocalPoint &) const |
MeasurementError | measurementError (const LocalPoint &, const LocalError &) const |
MeasurementPoint | measurementPosition (const LocalPoint &) const |
int | nearestStrip (const LocalPoint &) const |
int | nstrips () const |
float | originToIntersection () const |
float | phiOfOneEdge () const |
float | phiPitch (void) const |
float | strip (const LocalPoint &) const |
float | stripAngle (float strip) const |
float | stripLength () const |
TkRadialStripTopology (int ns, float aw, float dh, float r, int yAx=1, float yMid=0.) | |
float | xOfStrip (int strip, float y) const |
float | yAxisOrientation () const |
float | yCentreOfStripPlane () const |
float | yDistanceToIntersection (float y) const |
float | yExtentOfStripPlane () const |
~TkRadialStripTopology () | |
Public Member Functions inherited from RadialStripTopology | |
virtual float | pitch () const |
virtual | ~RadialStripTopology () |
Public Member Functions inherited from StripTopology | |
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 | theAWidthInverse |
float | theCentreToIntersection |
float | theDetHeight |
int | theNumberOfStrips |
float | thePhiOfOneEdge |
double | theRadialSigma |
float | theTanAW |
float | theTanOfOneEdge |
float | theYAxisOrientation |
float | yCentre |
Additional Inherited Members | |
Public Types inherited from Topology | |
typedef Point2DBase< double, LocalTag > | Local2DPoint |
typedef Vector2D::MathVector | MathVector2D |
typedef Basic2DVector< double > | Vector2D |
A StripTopology in which the component strips subtend a constant angular width, and, if projected, intersect at a point.
WARNING! Wherever 'float strip' is used the units of 'strip' are angular widths of each strip. The range is from 0.0 at the extreme edge of the 'first' strip at one edge of the detector, to nstrip*angular width at the other edge.
The centre of the first strip is at strip = 0.5
The centre of the last strip is at strip = 0.5 + (nstrip-1)
This is for consistency with CommonDet usage of 'float strip' (but where units are strip pitch rather than strip angular width.)
WARNING! If the mid-point along local y of the plane of strips does not correspond to the local coordinate origin, set the final ctor argument appropriately.
this version is optimized for tracker and is FINAL
Definition at line 28 of file TkRadialStripTopology.h.
TkRadialStripTopology::TkRadialStripTopology | ( | int | ns, |
float | aw, | ||
float | dh, | ||
float | r, | ||
int | yAx = 1 , |
||
float | yMid = 0. |
||
) |
Constructor from:
ns | number of strips |
aw | angular width of a strip |
dh | detector height (usually 2 x apothem of TrapezoidalPlaneBounds) |
r | radial distance from symmetry centre of detector to the point at which the outer edges of the two extreme strips (projected) intersect. |
yAx | orientation 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. |
yMid | local 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 73 of file TkRadialStripTopology.cc.
References funct::abs(), LogTrace, funct::tan(), theAngularWidth, theNumberOfStrips, thePhiOfOneEdge, theTanOfOneEdge, theYAxisOrientation, and yCentre.
|
inline |
|
inlinevirtual |
Angular width of a each strip
Implements RadialStripTopology.
Definition at line 167 of file TkRadialStripTopology.h.
References theAngularWidth.
Referenced by StripCPE::fillParams(), localError(), measurementError(), phiPitch(), and stripAngle().
|
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 189 of file TkRadialStripTopology.h.
References theCentreToIntersection.
Referenced by localError().
|
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.
Definition at line 95 of file TkRadialStripTopology.cc.
References min(), strip(), and theNumberOfStrips.
|
virtual |
Reimplemented from StripTopology.
Definition at line 117 of file TkRadialStripTopology.cc.
References theAWidthInverse, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and yDistanceToIntersection().
|
inlinevirtual |
Length of long symmetry axis of plane of strips
Implements RadialStripTopology.
Definition at line 177 of file TkRadialStripTopology.h.
References theDetHeight.
Referenced by localError(), localPosition(), localStripLength(), measurementError(), and measurementPosition().
|
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 158 of file TkRadialStripTopology.cc.
References angularWidth(), centreToIntersection(), f, phi, funct::pow(), findQualityFiles::rr, stripAngle(), theRadialSigma, groupFilesInBlocks::tt, and create_public_lumi_plots::xy.
|
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 177 of file TkRadialStripTopology.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().
|
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 213 of file TkRadialStripTopology.cc.
References funct::abs(), theTanAW, x, PV3DBase< T, PVType, FrameType >::x(), detailsBasic3DVector::y, PV3DBase< T, PVType, FrameType >::y(), and yDistanceToIntersection().
Referenced by StripCPE::fillParams().
|
virtual |
LocalPoint on x axis for given 'strip' 'strip' is a float in units of the strip (angular) width
Implements RadialStripTopology.
Definition at line 134 of file TkRadialStripTopology.cc.
References originToIntersection(), stripAngle(), funct::tan(), and yAxisOrientation().
|
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.
Definition at line 138 of file TkRadialStripTopology.cc.
References detHeight(), stripAngle(), funct::tan(), x, PV2DBase< T, PVType, FrameType >::x(), detailsBasic3DVector::y, PV2DBase< T, PVType, FrameType >::y(), yAxisOrientation(), yCentreOfStripPlane(), and yDistanceToIntersection().
|
virtual |
Length of a strip passing through a given LocalPpoint
Implements RadialStripTopology.
Definition at line 101 of file TkRadialStripTopology.cc.
References detHeight(), f, funct::pow(), mathSSE::sqrt(), PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and yDistanceToIntersection().
|
virtual |
Implements RadialStripTopology.
Definition at line 195 of file TkRadialStripTopology.cc.
References angularWidth(), fwrapper::cs, detHeight(), f, funct::pow(), indexGen::s2, mathSSE::sqrt(), edmStreamStallGrapher::t, PV3DBase< T, PVType, FrameType >::x(), LocalError::xx(), LocalError::xy(), PV3DBase< T, PVType, FrameType >::y(), yAxisOrientation(), yDistanceToIntersection(), and LocalError::yy().
|
virtual |
Implements RadialStripTopology.
Definition at line 145 of file TkRadialStripTopology.cc.
References detHeight(), phi, phiOfOneEdge(), theAWidthInverse, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), yCentreOfStripPlane(), and yDistanceToIntersection().
|
virtual |
Nearest strip to given LocalPoint
Implements RadialStripTopology.
Definition at line 97 of file TkRadialStripTopology.cc.
References bookConverter::max, min(), nstrips(), and strip().
|
inlinevirtual |
Total number of strips
Implements RadialStripTopology.
Definition at line 128 of file TkRadialStripTopology.h.
References theNumberOfStrips.
Referenced by nearestStrip(), and strip().
|
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 196 of file TkRadialStripTopology.h.
References theCentreToIntersection, and yCentre.
Referenced by localPosition(), and yDistanceToIntersection().
|
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 210 of file TkRadialStripTopology.h.
References thePhiOfOneEdge.
Referenced by measurementPosition(), strip(), and stripAngle().
|
inlinevirtual |
Phi pitch of each strip (= angular width!)
Implements RadialStripTopology.
Definition at line 172 of file TkRadialStripTopology.h.
References angularWidth().
|
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.
Definition at line 110 of file TkRadialStripTopology.cc.
References bookConverter::max, min(), nstrips(), phi, phiOfOneEdge(), theAWidthInverse, PV3DBase< T, PVType, FrameType >::x(), PV3DBase< T, PVType, FrameType >::y(), and yDistanceToIntersection().
Referenced by channel(), and nearestStrip().
|
inlinevirtual |
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.
Definition at line 122 of file TkRadialStripTopology.h.
References angularWidth(), phiOfOneEdge(), and yAxisOrientation().
Referenced by localError(), localPosition(), and xOfStrip().
|
inlinevirtual |
Height of detector (= length of long symmetry axis of the plane of strips).
Implements RadialStripTopology.
Definition at line 133 of file TkRadialStripTopology.h.
References theDetHeight.
Referenced by StripCPE::fillParams().
|
virtual |
Local x where centre of strip intersects input local y
'strip' should be in range 1 to nstrips()
Implements RadialStripTopology.
Definition at line 105 of file TkRadialStripTopology.cc.
References stripAngle(), funct::tan(), yAxisOrientation(), and yDistanceToIntersection().
|
inlinevirtual |
y axis orientation, 1 means detector width increases with local y
Implements RadialStripTopology.
Definition at line 226 of file TkRadialStripTopology.h.
References theYAxisOrientation.
Referenced by localError(), localPosition(), measurementError(), stripAngle(), xOfStrip(), and yDistanceToIntersection().
|
inlinevirtual |
Offset in local y between midpoint of detector (strip plane) extent and local origin
Implements RadialStripTopology.
Definition at line 231 of file TkRadialStripTopology.h.
References yCentre.
Referenced by localPosition(), and measurementPosition().
|
virtual |
Distance in local y from a hit to the point of intersection of projected strips
Implements RadialStripTopology.
Definition at line 99 of file TkRadialStripTopology.cc.
References originToIntersection(), and yAxisOrientation().
Referenced by coveredStrips(), localPitch(), localPosition(), localStripLength(), measurementError(), measurementPosition(), strip(), and xOfStrip().
|
inlinevirtual |
y extent of strip plane
Implements RadialStripTopology.
Definition at line 182 of file TkRadialStripTopology.h.
References theDetHeight.
|
private |
Definition at line 241 of file TkRadialStripTopology.h.
Referenced by angularWidth(), and TkRadialStripTopology().
|
private |
Definition at line 242 of file TkRadialStripTopology.h.
Referenced by coveredStrips(), measurementPosition(), and strip().
|
private |
Definition at line 245 of file TkRadialStripTopology.h.
Referenced by centreToIntersection(), and originToIntersection().
|
private |
Definition at line 244 of file TkRadialStripTopology.h.
Referenced by detHeight(), stripLength(), and yExtentOfStripPlane().
|
private |
Definition at line 240 of file TkRadialStripTopology.h.
Referenced by channel(), nstrips(), and TkRadialStripTopology().
|
private |
Definition at line 246 of file TkRadialStripTopology.h.
Referenced by phiOfOneEdge(), and TkRadialStripTopology().
|
private |
Definition at line 250 of file TkRadialStripTopology.h.
Referenced by localError().
|
private |
Definition at line 243 of file TkRadialStripTopology.h.
Referenced by localPitch().
|
private |
Definition at line 247 of file TkRadialStripTopology.h.
Referenced by TkRadialStripTopology().
|
private |
Definition at line 248 of file TkRadialStripTopology.h.
Referenced by TkRadialStripTopology(), and yAxisOrientation().
|
private |
Definition at line 249 of file TkRadialStripTopology.h.
Referenced by originToIntersection(), TkRadialStripTopology(), and yCentreOfStripPlane().