CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Attributes
SimpleLineRZ Class Reference

#include <PixelRecoLineRZ.h>

Public Types

typedef PixelRecoPointRZ Point
 

Public Member Functions

float cotLine () const
 
Point const & origin () const
 
float rAtZ (float z) const
 
 SimpleLineRZ ()
 
 SimpleLineRZ (const Point &aOrigin, const Point &aPoint)
 
 SimpleLineRZ (const Point &aOrigin, float aCotLine)
 
float zAtR (float r) const
 

Private Attributes

float theCotLine = 0
 
Point theOrigin
 

Detailed Description

Definition at line 63 of file PixelRecoLineRZ.h.

Member Typedef Documentation

◆ Point

Definition at line 65 of file PixelRecoLineRZ.h.

Constructor & Destructor Documentation

◆ SimpleLineRZ() [1/3]

SimpleLineRZ::SimpleLineRZ ( )
inline

Definition at line 67 of file PixelRecoLineRZ.h.

67 {}

◆ SimpleLineRZ() [2/3]

SimpleLineRZ::SimpleLineRZ ( const Point aOrigin,
float  aCotLine 
)
inline

Definition at line 69 of file PixelRecoLineRZ.h.

69 : theOrigin(aOrigin), theCotLine(aCotLine) {}

◆ SimpleLineRZ() [3/3]

SimpleLineRZ::SimpleLineRZ ( const Point aOrigin,
const Point aPoint 
)
inline

Definition at line 71 of file PixelRecoLineRZ.h.

72  : theOrigin(aOrigin), theCotLine((aPoint.z() - theOrigin.z()) / (aPoint.r() - theOrigin.r())) {}

Member Function Documentation

◆ cotLine()

float SimpleLineRZ::cotLine ( ) const
inline

◆ origin()

Point const& SimpleLineRZ::origin ( ) const
inline

Definition at line 75 of file PixelRecoLineRZ.h.

75 { return theOrigin; }

References theOrigin.

◆ rAtZ()

float SimpleLineRZ::rAtZ ( float  z) const
inline

Definition at line 78 of file PixelRecoLineRZ.h.

78 { return theOrigin.r() + (z - theOrigin.z()) / theCotLine; }

References PixelRecoPointRZ::r(), theCotLine, theOrigin, z, and PixelRecoPointRZ::z().

Referenced by HitRCheck::range().

◆ zAtR()

float SimpleLineRZ::zAtR ( float  r) const
inline

Definition at line 77 of file PixelRecoLineRZ.h.

77 { return theOrigin.z() + (r - theOrigin.r()) * theCotLine; }

References PixelRecoPointRZ::r(), alignCSCRings::r, theCotLine, theOrigin, and PixelRecoPointRZ::z().

Referenced by HitZCheck::range().

Member Data Documentation

◆ theCotLine

float SimpleLineRZ::theCotLine = 0
private

Definition at line 82 of file PixelRecoLineRZ.h.

Referenced by cotLine(), rAtZ(), and zAtR().

◆ theOrigin

Point SimpleLineRZ::theOrigin
private

Definition at line 81 of file PixelRecoLineRZ.h.

Referenced by origin(), rAtZ(), and zAtR().

PixelRecoPointRZ::r
float r() const
Definition: PixelRecoPointRZ.h:10
PixelRecoPointRZ::z
float z() const
Definition: PixelRecoPointRZ.h:11
DDAxes::z
alignCSCRings.r
r
Definition: alignCSCRings.py:93
SimpleLineRZ::theOrigin
Point theOrigin
Definition: PixelRecoLineRZ.h:81
SimpleLineRZ::theCotLine
float theCotLine
Definition: PixelRecoLineRZ.h:82