#include <TrkLineTraj.h>
Inheritance diagram for TrkLineTraj:
Public Member Functions | |
void | accept (TrkGeomTrajVisitor &visitor) const |
void | accept (TrkGeomTrajVisitor &visitor) const |
TrkLineTraj * | clone () const |
TrkLineTraj * | clone () const |
double | curvature (double f=0.) const |
double | curvature (double f=0.) const |
Hep3Vector | delDirect (double) const |
Hep3Vector | delDirect (double) const |
Hep3Vector | direction (double) const |
Hep3Vector | direction (double) const |
double | distTo0thError (double s, double tol, int pathDir) const |
double | distTo0thError (double s, double tol, int pathDir) const |
virtual double | distTo1stError (double s, double tol, int pathDir) const |
virtual double | distTo1stError (double s, double tol, int pathDir) const |
virtual double | distTo2ndError (double s, double tol, int pathDir) const |
virtual double | distTo2ndError (double s, double tol, int pathDir) const |
void | getInfo (double fltLen, HepPoint3D &, Hep3Vector &direction, Hep3Vector &delDirect) const |
void | getInfo (double fltLen, HepPoint3D &, Hep3Vector &direction) const |
void | getInfo (double fltLen, HepPoint3D &, Hep3Vector &direction, Hep3Vector &delDirect) const |
void | getInfo (double fltLen, HepPoint3D &, Hep3Vector &direction) const |
double | hiRange () const |
double | hiRange () const |
double | lowRange () const |
double | lowRange () const |
TrkLineTraj & | operator= (const TrkLineTraj &) |
TrkLineTraj & | operator= (const TrkLineTraj &) |
HepPoint3D | position (double) const |
HepPoint3D | position (double) const |
virtual void | print (std::ostream &os) const |
virtual void | print (std::ostream &os) const |
virtual void | printAll (std::ostream &os) const |
virtual void | printAll (std::ostream &os) const |
double | range () const |
double | range () const |
virtual void | setFlightRange (double newrange[2]) |
virtual void | setFlightRange (double newrange[2]) |
TrkLineTraj (const TrkLineTraj &) | |
TrkLineTraj (const HepPoint3D &point1, const HepPoint3D &point2) | |
TrkLineTraj (const HepPoint3D &point, const Hep3Vector &direction, double lorange, double hirange) | |
TrkLineTraj (const HepPoint3D &point, const Hep3Vector &direction, double length) | |
TrkLineTraj (const TrkLineTraj &) | |
TrkLineTraj (const HepPoint3D &point1, const HepPoint3D &point2) | |
TrkLineTraj (const HepPoint3D &point, const Hep3Vector &direction, double lorange, double hirange) | |
TrkLineTraj (const HepPoint3D &point, const Hep3Vector &direction, double length) | |
bool | validFlightDistance (double f, double tolerance=0.0) const |
bool | validFlightDistance (double f, double tolerance=0.0) const |
~TrkLineTraj () | |
~TrkLineTraj () | |
Protected Attributes | |
double | flightrange [2] |
Private Attributes | |
Hep3Vector | _direction |
HepPoint3D | _start |
|
00018 : 00019 TrkGeomTraj(0.0,length) , _start(point), 00020 _direction(direction) 00021 { 00022 _direction.setMag(1.0); 00023 }
|
|
00029 : 00030 TrkGeomTraj(lorange,hirange), 00031 _start(point), 00032 _direction(direction) 00033 { 00034 _direction.setMag(1.0); 00035 }
|
|
00040 : TrkGeomTraj(0.0,point1.distance2(point2)), _start(point1) 00041 { 00042 //_direction = point2 - point1; 00043 _direction = ((CLHEP::Hep3Vector) point2) - ((CLHEP::Hep3Vector) point1); 00044 _direction.setMag(1.0); 00045 }
|
|
00047 : 00048 TrkGeomTraj(other.lowRange(),other.hiRange()), _start(other._start), 00049 _direction(other._direction) 00050 { 00051 }
|
|
00054 { 00055 }
|
|
|
|
|
|
|
|
|
|
|
|
Reimplemented from TrkGeomTraj. |
|
Reimplemented from TrkGeomTraj. 00127 { 00128 visitor.visitLine(this); 00129 }
|
|
Implements TrkGeomTraj. |
|
Implements TrkGeomTraj. 00069 { 00070 return new TrkLineTraj(*this); 00071 }
|
|
Implements Trajectory. |
|
Implements Trajectory. 00105 {
00106 return 0.0;
00107 }
|
|
Implements Trajectory. |
|
Implements Trajectory. 00087 {
00088 return Hep3Vector(0.,0.,0.);
00089 }
|
|
Implements Trajectory. |
|
Implements Trajectory. 00081 {
00082 return _direction;
00083 }
|
|
|
|
00052 {
00053 return fabs(tolerance);
00054 }
|
|
Implements Trajectory. |
|
Implements Trajectory. 00093 {
00094 return 999.e4;
00095 }
|
|
Implements Trajectory. |
|
Implements Trajectory. 00099 {
00100 return 999.e4;
00101 }
|
|
Implements Trajectory. |
|
Implements Trajectory. |
|
Implements Trajectory. 00119 { 00120 pos = position(fltLen); 00121 dir = direction(fltLen); 00122 delDir = delDirect(fltLen); 00123 }
|
|
Implements Trajectory.
|
|
|
|
00092 {return flightrange[1];}
|
|
|
|
00091 {return flightrange[0];}
|
|
|
|
00058 { 00059 if(&other != this){ 00060 Trajectory::operator=(other); 00061 _start = other._start; 00062 _direction = other._direction; 00063 } 00064 return *this; 00065 }
|
|
Implements Trajectory. |
|
Implements Trajectory. 00075 { 00076 return _start + _direction*flightlen; 00077 }
|
|
Reimplemented in HelixTraj, TrkDifPieceTraj, TrkSimpTraj, HelixTraj, TrkDifPieceTraj, and TrkSimpTraj. |
|
Reimplemented in HelixTraj, TrkDifPieceTraj, TrkSimpTraj, HelixTraj, TrkDifPieceTraj, and TrkSimpTraj. 00071 { 00072 os << "Trajectory range from " 00073 << flightrange[0] << " to " 00074 << flightrange[1] << endl; 00075 }
|
|
Reimplemented in HelixTraj, TrkDifPieceTraj, TrkSimpTraj, HelixTraj, TrkDifPieceTraj, and TrkSimpTraj. |
|
Reimplemented in HelixTraj, TrkDifPieceTraj, TrkSimpTraj, HelixTraj, TrkDifPieceTraj, and TrkSimpTraj. 00079 { 00080 os << "Trajectory range from " 00081 << flightrange[0] << " to " 00082 << flightrange[1] << endl; 00083 }
|
|
|
|
|
|
Reimplemented in TrkDifPieceTraj, and TrkDifPieceTraj. |
|
Reimplemented in TrkDifPieceTraj, and TrkDifPieceTraj. 00058 { 00059 if (newrange[1] >= newrange[0]) { 00060 flightrange[0] = newrange[0]; 00061 flightrange[1] = newrange[1]; 00062 } else { 00063 std::cout<<"ErrMsg(error) "<< "Invalid Trajectory range requested." << std::endl; 00064 flightrange[0] = newrange[1]; 00065 flightrange[1] = newrange[0]; 00066 } 00067 }
|
|
|
|
00088 { 00089 return f >= flightrange[0]-tol && f <= flightrange[1]+tol; 00090 }
|
|
|
|
|
|
|