CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
RectangularStripTopology Class Referencefinal

#include <RectangularStripTopology.h>

Inheritance diagram for RectangularStripTopology:
StripTopology Topology

Public Member Functions

int channel (const LocalPoint &lp) const override
 
float coveredStrips (const LocalPoint &lp1, const LocalPoint &lp2) const override
 
virtual LocalError localError (float strip, float stripErr2) const=0
 
virtual LocalError localError (float strip, float stripErr2, const Topology::LocalTrackPred &) const
 conversion taking also the angle from the predicted track state More...
 
LocalError localError (float strip, float stripErr2) const override
 
LocalError localError (const MeasurementPoint &, const MeasurementError &) const override
 
float localPitch (const LocalPoint &) const override
 
virtual LocalPoint localPosition (float strip) const=0
 
virtual LocalPoint localPosition (float strip, const Topology::LocalTrackPred &) const
 conversion taking also the predicted track state More...
 
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 nstrips () const override
 
float pitch () const override
 
 RectangularStripTopology (int nstrips, float pitch, float detlength)
 
float strip (const LocalPoint &) const override
 
float stripAngle (float strip) const override
 
float stripLength () const override
 
- 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 LocalError localError (const MeasurementPoint &, const MeasurementError &) const=0
 
virtual LocalError localError (const MeasurementPoint &mp, const MeasurementError &me, const 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 (const MeasurementPoint &) const=0
 
virtual LocalPoint localPosition (const MeasurementPoint &mp, const LocalTrackPred &) const
 conversion taking also the angle from the predicted track state 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

int theNumberOfStrips
 
float theOffset
 
float thePitch
 
float theStripLength
 

Additional Inherited Members

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

Detailed Description

Specialised strip topology for rectangular barrel detectors. The strips are parallel to the local Y axis, so X is the precisely measured coordinate.

Definition at line 11 of file RectangularStripTopology.h.

Constructor & Destructor Documentation

◆ RectangularStripTopology()

RectangularStripTopology::RectangularStripTopology ( int  nstrips,
float  pitch,
float  detlength 
)

Definition at line 7 of file RectangularStripTopology.cc.

References gather_cfg::cout, MainPageGenerator::l, AlCaHLTBitMon_ParallelJobs::p, theNumberOfStrips, theOffset, and thePitch.

10 
11 #ifdef VERBOSE
12  cout << "Constructing RectangularStripTopology with"
13  << " nstrips = " << ns << " pitch = " << p << " length = " << l << endl;
14 #endif
15 }

Member Function Documentation

◆ channel()

int RectangularStripTopology::channel ( const LocalPoint lp) const
inlineoverridevirtual

Implements Topology.

Definition at line 34 of file RectangularStripTopology.h.

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

◆ coveredStrips()

float RectangularStripTopology::coveredStrips ( const LocalPoint lp1,
const LocalPoint lp2 
) const
overridevirtual

Reimplemented from StripTopology.

Definition at line 44 of file RectangularStripTopology.cc.

References thePitch, and PV3DBase< T, PVType, FrameType >::x().

44  {
45  return (lp1.x() - lp2.x()) / thePitch;
46 }
T x() const
Definition: PV3DBase.h:59

◆ localError() [1/4]

virtual LocalError StripTopology::localError

◆ localError() [2/4]

virtual LocalError StripTopology::localError
inline

conversion taking also the angle from the predicted track state

Definition at line 26 of file StripTopology.h.

26  {
27  return localError(strip, stripErr2);
28  }
float strip(const LocalPoint &) const override
LocalError localError(float strip, float stripErr2) const override

◆ localError() [3/4]

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

Implements StripTopology.

Definition at line 25 of file RectangularStripTopology.cc.

References f, thePitch, and theStripLength.

25  {
26  return LocalError(stripErr2 * thePitch * thePitch, 0.f, theStripLength * theStripLength * (1.f / 12.f));
27 }
double f[11][100]

◆ localError() [4/4]

LocalError RectangularStripTopology::localError ( const MeasurementPoint ,
const MeasurementError merr 
) const
overridevirtual

◆ localPitch()

float RectangularStripTopology::localPitch ( const LocalPoint ) const
inlineoverridevirtual

Implements StripTopology.

Definition at line 38 of file RectangularStripTopology.h.

References thePitch.

◆ localPosition() [1/4]

virtual LocalPoint StripTopology::localPosition
inline

conversion taking also the predicted track state

Definition at line 20 of file StripTopology.h.

20  {
21  return localPosition(strip);
22  }
LocalPoint localPosition(float strip) const override
float strip(const LocalPoint &) const override

◆ localPosition() [2/4]

virtual LocalPoint StripTopology::localPosition

◆ localPosition() [3/4]

LocalPoint RectangularStripTopology::localPosition ( float  strip) const
overridevirtual

◆ localPosition() [4/4]

LocalPoint RectangularStripTopology::localPosition ( const MeasurementPoint mp) const
overridevirtual

Implements Topology.

Definition at line 21 of file RectangularStripTopology.cc.

References theOffset, thePitch, theStripLength, PV2DBase< T, PVType, FrameType >::x(), and PV2DBase< T, PVType, FrameType >::y().

21  {
22  return LocalPoint(mp.x() * thePitch + theOffset, mp.y() * theStripLength);
23 }
Point3DBase< Scalar, LocalTag > LocalPoint
Definition: Definitions.h:30
T x() const
Definition: PV2DBase.h:43
T y() const
Definition: PV2DBase.h:44

◆ localStripLength()

float RectangularStripTopology::localStripLength ( const LocalPoint ) const
inlineoverridevirtual

Implements StripTopology.

Definition at line 46 of file RectangularStripTopology.h.

References stripLength().

46 { return stripLength(); }
float stripLength() const override

◆ measurementError()

MeasurementError RectangularStripTopology::measurementError ( const LocalPoint ,
const LocalError lerr 
) const
overridevirtual

Implements Topology.

Definition at line 52 of file RectangularStripTopology.cc.

References thePitch, theStripLength, LocalError::xx(), LocalError::xy(), and LocalError::yy().

52  {
53  return MeasurementError(lerr.xx() / (thePitch * thePitch),
54  lerr.xy() / (thePitch * theStripLength),
55  lerr.yy() / (theStripLength * theStripLength));
56 }
float yy() const
Definition: LocalError.h:24
float xy() const
Definition: LocalError.h:23
float xx() const
Definition: LocalError.h:22

◆ measurementPosition()

MeasurementPoint RectangularStripTopology::measurementPosition ( const LocalPoint lp) const
overridevirtual

Implements Topology.

Definition at line 48 of file RectangularStripTopology.cc.

References theOffset, thePitch, theStripLength, PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::y().

48  {
49  return MeasurementPoint((lp.x() - theOffset) / thePitch, lp.y() / theStripLength);
50 }
T x() const
Definition: PV3DBase.h:59
T y() const
Definition: PV3DBase.h:60
Measurement2DPoint MeasurementPoint
Measurement points are two-dimensional by default.

◆ nstrips()

int RectangularStripTopology::nstrips ( ) const
inlineoverridevirtual

Implements StripTopology.

Definition at line 42 of file RectangularStripTopology.h.

References theNumberOfStrips.

◆ pitch()

float RectangularStripTopology::pitch ( ) const
inlineoverridevirtual

Implements StripTopology.

Definition at line 36 of file RectangularStripTopology.h.

References thePitch.

Referenced by DTSegtoRPC::thePoints().

◆ strip()

float RectangularStripTopology::strip ( const LocalPoint lp) const
overridevirtual

Implements StripTopology.

Definition at line 35 of file RectangularStripTopology.cc.

References theNumberOfStrips, theOffset, thePitch, and PV3DBase< T, PVType, FrameType >::x().

Referenced by channel(), and localPosition().

35  {
36  float aStrip = (lp.x() - theOffset) / thePitch;
37  if (aStrip < 0)
38  aStrip = 0;
39  else if (aStrip > theNumberOfStrips)
40  aStrip = theNumberOfStrips;
41  return aStrip;
42 }
T x() const
Definition: PV3DBase.h:59

◆ stripAngle()

float RectangularStripTopology::stripAngle ( float  strip) const
inlineoverridevirtual

Implements StripTopology.

Definition at line 40 of file RectangularStripTopology.h.

40 { return 0; }

◆ stripLength()

float RectangularStripTopology::stripLength ( ) const
inlineoverridevirtual

Member Data Documentation

◆ theNumberOfStrips

int RectangularStripTopology::theNumberOfStrips
private

Definition at line 50 of file RectangularStripTopology.h.

Referenced by channel(), nstrips(), RectangularStripTopology(), and strip().

◆ theOffset

float RectangularStripTopology::theOffset
private

◆ thePitch

float RectangularStripTopology::thePitch
private

◆ theStripLength

float RectangularStripTopology::theStripLength
private