CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 71 of file PixelRecoLineRZ.h.

Member Typedef Documentation

Definition at line 74 of file PixelRecoLineRZ.h.

Constructor & Destructor Documentation

SimpleLineRZ::SimpleLineRZ ( )
inline

Definition at line 76 of file PixelRecoLineRZ.h.

76 { }
SimpleLineRZ::SimpleLineRZ ( const Point aOrigin,
float  aCotLine 
)
inline

Definition at line 78 of file PixelRecoLineRZ.h.

78  :
79  theOrigin( aOrigin ),
80  theCotLine(aCotLine) { }
SimpleLineRZ::SimpleLineRZ ( const Point aOrigin,
const Point aPoint 
)
inline

Definition at line 82 of file PixelRecoLineRZ.h.

82  :
83  theOrigin( aOrigin ),
84  theCotLine( (aPoint.z()-theOrigin.z())/ (aPoint.r()-theOrigin.r()) )
85  { }
float z() const
float r() const

Member Function Documentation

float SimpleLineRZ::cotLine ( ) const
inline
Point const& SimpleLineRZ::origin ( ) const
inline

Definition at line 88 of file PixelRecoLineRZ.h.

References theOrigin.

88 { return theOrigin; }
float SimpleLineRZ::rAtZ ( float  z) const
inline

Definition at line 91 of file PixelRecoLineRZ.h.

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

Referenced by MSLayer::crossing(), and HitRCheck::range().

91 { return theOrigin.r()+(z-theOrigin.z())/theCotLine; }
float float float z
float z() const
float r() const
float SimpleLineRZ::zAtR ( float  r) const
inline

Definition at line 90 of file PixelRecoLineRZ.h.

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

Referenced by MSLayer::crossing(), and HitZCheck::range().

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

Member Data Documentation

float SimpleLineRZ::theCotLine =0
private

Definition at line 96 of file PixelRecoLineRZ.h.

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

Point SimpleLineRZ::theOrigin
private

Definition at line 95 of file PixelRecoLineRZ.h.

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