StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Public Attributes | List of all members
Line Class Reference

STAR includes. More...

#include <Line.hh>

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. More...
 
StThreeVectorD perigee (const StThreeVectorD &point) const
 Perigee, i.e. Closest point on the line to a given point. More...
 
StThreeVectorD dca (const Line &line) const
 DCA = Distance of Closest Approach to a given line. More...
 
double pathlength (const StThreeVectorD &point) const
 Pathlength of a given point from the origin of the line. More...
 
pair< double, double > pathlengths (const Line &line) const
 Pathlengths of the points of closest approach between the lines. More...
 
void setOrigin (const StThreeVectorD &o)
 Set the origin of the line to a given point. More...
 
void setDirection (const StThreeVectorD &d)
 Set the direction of the line to a given vector. The direction is normalized to the unit vector. More...
 
 Line (Vector &u0, Vector &u1)
 

Public Attributes

Vector v0
 
Vector v1
 

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

StThreeVectorD Line::dca ( const Line line) const

DCA = Distance of Closest Approach to a given line.

Parameters
Anyline
Returns
3D-vector of the closest distance between the two lines

Definition at line 31 of file Line.cc.

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

double Line::pathlength ( const StThreeVectorD point) const

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

Parameters
Anypoint
Returns
Pathlength from the origin

Definition at line 21 of file Line.cc.

Referenced by pathlengths().

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

Pathlengths of the points of closest approach between the lines.

Parameters
Anyline
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
Anypoint
Returns
Closest point on the line

Definition at line 26 of file Line.cc.

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
Anyvector

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
Anypoint

Definition at line 96 of file Line.hh.


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