Line Class Reference

STAR includes. More...

#include <Line.hh>

List of all members.

Public Member Functions

 Line (const StThreeVectorD &o, const StThreeVectorD &d)
StThreeVectorD origin () const
 Origin of the line.
StThreeVectorD direction () const
 Direction vector of the line (normalized to the unit vector).
StThreeVectorD at (double pathlength) const
 Point at a given path length along the line.
StThreeVectorD perigee (const StThreeVectorD &point) const
 Perigee, i.e. Closest point on the line to a given point.
StThreeVectorD dca (const Line &line) const
 DCA = Distance of Closest Approach to a given line.
double pathlength (const StThreeVectorD &point) const
 Pathlength of a given point from the origin of the line.
pair< double, double > pathlengths (const Line &line) const
 Pathlengths of the points of closest approach between the lines.
void setOrigin (const StThreeVectorD &o)
 Set the origin of the line to a given point.
void setDirection (const StThreeVectorD &d)
 Set the direction of the line to a given vector. The direction is normalized to the unit vector.


Detailed Description

STAR includes.

3D lines

Definition at line 23 of file Line.hh.


Member Function Documentation

StThreeVectorD Line::at ( double  pathlength  )  const

Point at a given path length along the line.

Parameters:
Pathlength 
Returns:
Point at pathlength

Definition at line 16 of file Line.cc.

Referenced by dca(), and perigee().

StThreeVectorD Line::dca ( const Line line  )  const

DCA = Distance of Closest Approach to a given line.

Parameters:
Any line
Returns:
3D-vector of the closest distance between the two lines

Definition at line 31 of file Line.cc.

References at(), direction(), origin(), and pathlength().

double Line::pathlength ( const StThreeVectorD &  point  )  const

Pathlength of a given point from the origin of the line.

Parameters:
Any point
Returns:
Pathlength from the origin

Definition at line 21 of file Line.cc.

Referenced by dca(), pathlengths(), and perigee().

pair< double, double > Line::pathlengths ( const Line line  )  const

Pathlengths of the points of closest approach between the lines.

Parameters:
Any line
Returns:
Pair of double. The first value is the pathlength at this line of the point of closest approach to that line. The second value is the pathlength on that lineof the point of closest to this line.

Definition at line 41 of file Line.cc.

References direction(), origin(), and pathlength().

StThreeVectorD Line::perigee ( const StThreeVectorD &  point  )  const

Perigee, i.e. Closest point on the line to a given point.

Parameters:
Any point
Returns:
Closest point on the line

Definition at line 26 of file Line.cc.

References at(), and pathlength().

Referenced by Track::fit().

void Line::setDirection ( const StThreeVectorD &  d  )  [inline]

Set the direction of the line to a given vector. The direction is normalized to the unit vector.

Parameters:
Any vector

Definition at line 97 of file Line.hh.

void Line::setOrigin ( const StThreeVectorD &  o  )  [inline]

Set the origin of the line to a given point.

Parameters:
Any point

Definition at line 96 of file Line.hh.


The documentation for this class was generated from the following files:

Generated on Fri Feb 10 04:27:57 2012 for StRoot by  doxygen 1.5.9