BOSS 7.0.4
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
 
 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 ()
 
virtual void accept (TrkGeomTrajVisitor &) const
 
virtual TrkGeomTrajclone () const =0
 
 TrkGeomTraj (double lowlim, double hilim)
 
virtual ~TrkGeomTraj ()
 
virtual void accept (TrkGeomTrajVisitor &) const
 
virtual TrkGeomTrajclone () const =0
 
- Public Member Functions inherited from Trajectory
 Trajectory (double lowlim, double hilim)
 
virtual ~Trajectory ()
 
virtual HepPoint3D position (double) const =0
 
virtual Hep3Vector direction (double) const =0
 
virtual Hep3Vector delDirect (double) const =0
 
virtual double curvature (double) const =0
 
virtual void getInfo (double fltLen, HepPoint3D &pos, Hep3Vector &direction) const =0
 
virtual void getInfo (double fltLen, HepPoint3D &pos, Hep3Vector &direction, Hep3Vector &delDirect) const =0
 
double distTo0thError (double s, double tol, int pathDir) const
 
virtual double distTo1stError (double s, double tol, int pathDir) const =0
 
virtual double distTo2ndError (double s, double tol, int pathDir) const =0
 
virtual Trajectoryclone () const =0
 
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
 
 Trajectory (double lowlim, double hilim)
 
virtual ~Trajectory ()
 
virtual HepPoint3D position (double) const =0
 
virtual Hep3Vector direction (double) const =0
 
virtual Hep3Vector delDirect (double) const =0
 
virtual double curvature (double) const =0
 
virtual void getInfo (double fltLen, HepPoint3D &pos, Hep3Vector &direction) const =0
 
virtual void getInfo (double fltLen, HepPoint3D &pos, Hep3Vector &direction, Hep3Vector &delDirect) const =0
 
double distTo0thError (double s, double tol, int pathDir) const
 
virtual double distTo1stError (double s, double tol, int pathDir) const =0
 
virtual double distTo2ndError (double s, double tol, int pathDir) const =0
 
virtual Trajectoryclone () const =0
 
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 &)
 
Trajectoryoperator= (const Trajectory &)
 
- Protected Attributes inherited from Trajectory
double flightrange [2]
 

Detailed Description

Constructor & Destructor Documentation

◆ TrkLineTraj() [1/8]

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}
Hep3Vector direction(double) const
Definition: TrkLineTraj.cxx:80

◆ TrkLineTraj() [2/8]

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/8]

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/8]

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)
Definition: EvtCyclic3.cc:118

◆ ~TrkLineTraj() [1/2]

TrkLineTraj::~TrkLineTraj ( )

Definition at line 53 of file TrkLineTraj.cxx.

54{
55}

◆ TrkLineTraj() [5/8]

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

◆ TrkLineTraj() [6/8]

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

◆ TrkLineTraj() [7/8]

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

◆ TrkLineTraj() [8/8]

TrkLineTraj::TrkLineTraj ( const TrkLineTraj )

◆ ~TrkLineTraj() [2/2]

TrkLineTraj::~TrkLineTraj ( )

Member Function Documentation

◆ accept() [1/2]

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

◆ accept() [2/2]

void TrkLineTraj::accept ( TrkGeomTrajVisitor visitor) const
virtual

Reimplemented from TrkGeomTraj.

◆ clone() [1/2]

TrkLineTraj * TrkLineTraj::clone ( ) const
virtual

Implements TrkGeomTraj.

Definition at line 68 of file TrkLineTraj.cxx.

◆ clone() [2/2]

TrkLineTraj * TrkLineTraj::clone ( ) const
virtual

Implements TrkGeomTraj.

◆ curvature() [1/2]

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

Implements Trajectory.

Definition at line 104 of file TrkLineTraj.cxx.

105{
106 return 0.0;
107}

◆ curvature() [2/2]

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

Implements Trajectory.

◆ delDirect() [1/2]

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

◆ delDirect() [2/2]

Hep3Vector TrkLineTraj::delDirect ( double  ) const
virtual

Implements Trajectory.

◆ direction() [1/2]

Hep3Vector TrkLineTraj::direction ( double  ) const
virtual

Implements Trajectory.

Definition at line 80 of file TrkLineTraj.cxx.

81{
82 return _direction;
83}

Referenced by getInfo().

◆ direction() [2/2]

Hep3Vector TrkLineTraj::direction ( double  ) const
virtual

Implements Trajectory.

◆ distTo1stError() [1/2]

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}

◆ distTo1stError() [2/2]

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

Implements Trajectory.

◆ distTo2ndError() [1/2]

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}

◆ distTo2ndError() [2/2]

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

Implements Trajectory.

◆ getInfo() [1/4]

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
Definition: TrkLineTraj.cxx:74

◆ getInfo() [2/4]

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

Implements Trajectory.

◆ getInfo() [3/4]

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
Definition: TrkLineTraj.cxx:86

◆ getInfo() [4/4]

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

Implements Trajectory.

◆ operator=() [1/2]

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 &)
Definition: Trajectory.cxx:86

◆ operator=() [2/2]

TrkLineTraj & TrkLineTraj::operator= ( const TrkLineTraj )

◆ position() [1/2]

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

◆ position() [2/2]

HepPoint3D TrkLineTraj::position ( double  ) const
virtual

Implements Trajectory.


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