BOSS 7.1.2
BESIII Offline Software System
Loading...
Searching...
No Matches
TrkLineTraj Class Reference

#include <TrkLineTraj.h>

+ Inheritance diagram for TrkLineTraj:

Public Member Functions

 TrkLineTraj (const HepPoint3D &point, const Hep3Vector &direction, double length)
 
 TrkLineTraj (const HepPoint3D &point, const Hep3Vector &direction, double lorange, double hirange)
 
 TrkLineTraj (const HepPoint3D &point1, const HepPoint3D &point2)
 
 TrkLineTraj (const TrkLineTraj &)
 
TrkLineTrajclone () const
 
 ~TrkLineTraj ()
 
TrkLineTrajoperator= (const TrkLineTraj &)
 
HepPoint3D position (double) const
 
Hep3Vector direction (double) const
 
double curvature (double f=0.) const
 
Hep3Vector delDirect (double) const
 
void getInfo (double fltLen, HepPoint3D &, Hep3Vector &direction) const
 
void getInfo (double fltLen, HepPoint3D &, Hep3Vector &direction, Hep3Vector &delDirect) const
 
virtual double distTo1stError (double s, double tol, int pathDir) const
 
virtual double distTo2ndError (double s, double tol, int pathDir) const
 
void accept (TrkGeomTrajVisitor &visitor) const
 
- Public Member Functions inherited from TrkGeomTraj
 TrkGeomTraj (double lowlim, double hilim)
 
virtual ~TrkGeomTraj ()
 
- Public Member Functions inherited from Trajectory
 Trajectory (double lowlim, double hilim)
 
virtual ~Trajectory ()
 
double distTo0thError (double s, double tol, int pathDir) const
 
bool validFlightDistance (double f, double tolerance=0.0) const
 
virtual void setFlightRange (double newrange[2])
 
double lowRange () const
 
double hiRange () const
 
double range () const
 
virtual void print (std::ostream &os) const
 
virtual void printAll (std::ostream &os) const
 

Additional Inherited Members

- Protected Member Functions inherited from Trajectory
Trajectoryoperator= (const Trajectory &)
 
- Protected Attributes inherited from Trajectory
double flightrange [2]
 

Detailed Description

Definition at line 19 of file TrkLineTraj.h.

Constructor & Destructor Documentation

◆ TrkLineTraj() [1/4]

TrkLineTraj::TrkLineTraj ( const HepPoint3D & point,
const Hep3Vector & direction,
double length )

Definition at line 17 of file TrkLineTraj.cxx.

18 :
19 TrkGeomTraj(0.0,length) , _start(point),
20 _direction(direction)
21{
22 _direction.setMag(1.0);
23}
TrkGeomTraj(double lowlim, double hilim)
Hep3Vector direction(double) const

Referenced by clone().

◆ TrkLineTraj() [2/4]

TrkLineTraj::TrkLineTraj ( const HepPoint3D & point,
const Hep3Vector & direction,
double lorange,
double hirange )

Definition at line 25 of file TrkLineTraj.cxx.

29 :
30 TrkGeomTraj(lorange,hirange),
31 _start(point),
32 _direction(direction)
33{
34 _direction.setMag(1.0);
35}

◆ TrkLineTraj() [3/4]

TrkLineTraj::TrkLineTraj ( const HepPoint3D & point1,
const HepPoint3D & point2 )

Definition at line 39 of file TrkLineTraj.cxx.

40 : TrkGeomTraj(0.0,point1.distance2(point2)), _start(point1)
41{
42 //_direction = point2 - point1;
43 _direction = ((CLHEP::Hep3Vector) point2) - ((CLHEP::Hep3Vector) point1);
44 _direction.setMag(1.0);
45}

◆ TrkLineTraj() [4/4]

TrkLineTraj::TrkLineTraj ( const TrkLineTraj & other)

Definition at line 47 of file TrkLineTraj.cxx.

47 :
48 TrkGeomTraj(other.lowRange(),other.hiRange()), _start(other._start),
49 _direction(other._direction)
50{
51}
Index other(Index i, Index j)

◆ ~TrkLineTraj()

TrkLineTraj::~TrkLineTraj ( )

Definition at line 53 of file TrkLineTraj.cxx.

54{
55}

Member Function Documentation

◆ accept()

void TrkLineTraj::accept ( TrkGeomTrajVisitor & visitor) const
virtual

Reimplemented from TrkGeomTraj.

Definition at line 126 of file TrkLineTraj.cxx.

127{
128 visitor.visitLine(this);
129}
virtual void visitLine(const TrkLineTraj *)=0

◆ clone()

TrkLineTraj * TrkLineTraj::clone ( ) const
virtual

Implements TrkGeomTraj.

Definition at line 68 of file TrkLineTraj.cxx.

69{
70 return new TrkLineTraj(*this);
71}
TrkLineTraj(const HepPoint3D &point, const Hep3Vector &direction, double length)

◆ curvature()

double TrkLineTraj::curvature ( double f = 0.) const
virtual

Implements Trajectory.

Definition at line 104 of file TrkLineTraj.cxx.

105{
106 return 0.0;
107}

◆ delDirect()

Hep3Vector TrkLineTraj::delDirect ( double ) const
virtual

Implements Trajectory.

Definition at line 86 of file TrkLineTraj.cxx.

87{
88 return Hep3Vector(0.,0.,0.);
89}

Referenced by getInfo().

◆ direction()

Hep3Vector TrkLineTraj::direction ( double ) const
virtual

Implements Trajectory.

Definition at line 80 of file TrkLineTraj.cxx.

81{
82 return _direction;
83}

Referenced by getInfo(), and getInfo().

◆ distTo1stError()

double TrkLineTraj::distTo1stError ( double s,
double tol,
int pathDir ) const
virtual

Implements Trajectory.

Definition at line 92 of file TrkLineTraj.cxx.

93{
94 return 999.e4;
95}

◆ distTo2ndError()

double TrkLineTraj::distTo2ndError ( double s,
double tol,
int pathDir ) const
virtual

Implements Trajectory.

Definition at line 98 of file TrkLineTraj.cxx.

99{
100 return 999.e4;
101}

◆ getInfo() [1/2]

void TrkLineTraj::getInfo ( double fltLen,
HepPoint3D & pos,
Hep3Vector & direction ) const
virtual

Implements Trajectory.

Definition at line 110 of file TrkLineTraj.cxx.

111{
112 pos = position(fltLen);
113 dir = direction(fltLen);
114}
HepPoint3D position(double) const

◆ getInfo() [2/2]

void TrkLineTraj::getInfo ( double fltLen,
HepPoint3D & pos,
Hep3Vector & direction,
Hep3Vector & delDirect ) const
virtual

Implements Trajectory.

Definition at line 117 of file TrkLineTraj.cxx.

119{
120 pos = position(fltLen);
121 dir = direction(fltLen);
122 delDir = delDirect(fltLen);
123}
Hep3Vector delDirect(double) const

◆ operator=()

TrkLineTraj & TrkLineTraj::operator= ( const TrkLineTraj & other)

Definition at line 57 of file TrkLineTraj.cxx.

58{
59 if(&other != this){
61 _start = other._start;
62 _direction = other._direction;
63 }
64 return *this;
65}
Trajectory & operator=(const Trajectory &)

◆ position()

HepPoint3D TrkLineTraj::position ( double flightlen) const
virtual

Implements Trajectory.

Definition at line 74 of file TrkLineTraj.cxx.

75{
76 return _start + _direction*flightlen;
77}

Referenced by getInfo(), and getInfo().


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