#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. | |
| 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. | |
3D lines
Definition at line 23 of file Line.hh.
| StThreeVectorD Line::at | ( | double | pathlength | ) | const |
| StThreeVectorD Line::dca | ( | const Line & | line | ) | const |
DCA = Distance of Closest Approach to a given line.
| Any | line |
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.
| Any | point |
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.
| Any | 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.
| Any | point |
Definition at line 26 of file Line.cc.
References at(), and pathlength().
Referenced by Track::fit().
| void Line::setDirection | ( | const StThreeVectorD & | d | ) | [inline] |
| void Line::setOrigin | ( | const StThreeVectorD & | o | ) | [inline] |
1.5.9