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, float aCotLine)
 
 SimpleLineRZ (const Point &aOrigin, const Point &aPoint)
 
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())) {}
float r() const
float z() const

Member Function Documentation

◆ cotLine()

float SimpleLineRZ::cotLine ( ) const
inline

◆ origin()

Point const& SimpleLineRZ::origin ( ) const
inline

Definition at line 75 of file PixelRecoLineRZ.h.

References theOrigin.

75 { return theOrigin; }

◆ rAtZ()

float SimpleLineRZ::rAtZ ( float  z) const
inline

Definition at line 78 of file PixelRecoLineRZ.h.

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

Referenced by HitRCheck::range().

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

◆ zAtR()

float SimpleLineRZ::zAtR ( float  r) const
inline

Definition at line 77 of file PixelRecoLineRZ.h.

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

Referenced by HitZCheck::range().

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

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