BOSS 8.0.0
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
 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 ()
 TrkGeomTraj (double lowlim, double hilim)
virtual ~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
 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
 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 &)
Trajectoryoperator= (const Trajectory &)
Trajectoryoperator= (const Trajectory &)
Protected Attributes inherited from Trajectory
double flightrange [2]

Detailed Description

Constructor & Destructor Documentation

◆ TrkLineTraj() [1/12]

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

Definition at line 17 of file TrkLineTraj.cxx.

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

Referenced by clone(), operator=(), and TrkLineTraj().

◆ TrkLineTraj() [2/12]

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

Definition at line 22 of file TrkLineTraj.cxx.

24 : TrkGeomTraj( lorange, hirange ), _start( point ), _direction( direction ) {
25 _direction.setMag( 1.0 );
26}

◆ TrkLineTraj() [3/12]

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

Definition at line 28 of file TrkLineTraj.cxx.

29 : TrkGeomTraj( 0.0, point1.distance2( point2 ) ), _start( point1 ) {
30 //_direction = point2 - point1;
31 _direction = ( (CLHEP::Hep3Vector)point2 ) - ( (CLHEP::Hep3Vector)point1 );
32 _direction.setMag( 1.0 );
33}

◆ TrkLineTraj() [4/12]

TrkLineTraj::TrkLineTraj ( const TrkLineTraj & other)

Definition at line 35 of file TrkLineTraj.cxx.

36 : TrkGeomTraj( other.lowRange(), other.hiRange() )
37 , _start( other._start )
38 , _direction( other._direction ) {}
Index other(Index i, Index j)

◆ ~TrkLineTraj() [1/3]

TrkLineTraj::~TrkLineTraj ( )

Definition at line 40 of file TrkLineTraj.cxx.

40{}

◆ TrkLineTraj() [5/12]

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

◆ TrkLineTraj() [6/12]

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

◆ TrkLineTraj() [7/12]

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

◆ TrkLineTraj() [8/12]

TrkLineTraj::TrkLineTraj ( const TrkLineTraj & )

◆ ~TrkLineTraj() [2/3]

TrkLineTraj::~TrkLineTraj ( )

◆ TrkLineTraj() [9/12]

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

◆ TrkLineTraj() [10/12]

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

◆ TrkLineTraj() [11/12]

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

◆ TrkLineTraj() [12/12]

TrkLineTraj::TrkLineTraj ( const TrkLineTraj & )

◆ ~TrkLineTraj() [3/3]

TrkLineTraj::~TrkLineTraj ( )

Member Function Documentation

◆ accept() [1/3]

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

Reimplemented from TrkGeomTraj.

Definition at line 80 of file TrkLineTraj.cxx.

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

◆ accept() [2/3]

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

Reimplemented from TrkGeomTraj.

◆ accept() [3/3]

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

Reimplemented from TrkGeomTraj.

◆ clone() [1/3]

TrkLineTraj * TrkLineTraj::clone ( ) const
virtual

Implements TrkGeomTraj.

Definition at line 52 of file TrkLineTraj.cxx.

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

◆ clone() [2/3]

TrkLineTraj * TrkLineTraj::clone ( ) const
virtual

Implements TrkGeomTraj.

◆ clone() [3/3]

TrkLineTraj * TrkLineTraj::clone ( ) const
virtual

Implements TrkGeomTraj.

◆ curvature() [1/3]

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

Implements Trajectory.

Definition at line 66 of file TrkLineTraj.cxx.

66{ return 0.0; }

◆ curvature() [2/3]

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

Implements Trajectory.

◆ curvature() [3/3]

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

Implements Trajectory.

◆ delDirect() [1/3]

Hep3Vector TrkLineTraj::delDirect ( double ) const
virtual

Implements Trajectory.

Definition at line 60 of file TrkLineTraj.cxx.

60{ return Hep3Vector( 0., 0., 0. ); }

Referenced by getInfo().

◆ delDirect() [2/3]

Hep3Vector TrkLineTraj::delDirect ( double ) const
virtual

Implements Trajectory.

◆ delDirect() [3/3]

Hep3Vector TrkLineTraj::delDirect ( double ) const
virtual

Implements Trajectory.

◆ direction() [1/3]

Hep3Vector TrkLineTraj::direction ( double ) const
virtual

Implements Trajectory.

Definition at line 58 of file TrkLineTraj.cxx.

58{ return _direction; }

Referenced by getInfo(), getInfo(), TrkLineTraj(), and TrkLineTraj().

◆ direction() [2/3]

Hep3Vector TrkLineTraj::direction ( double ) const
virtual

Implements Trajectory.

◆ direction() [3/3]

Hep3Vector TrkLineTraj::direction ( double ) const
virtual

Implements Trajectory.

◆ distTo1stError() [1/3]

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

Implements Trajectory.

Definition at line 62 of file TrkLineTraj.cxx.

62{ return 999.e4; }

◆ distTo1stError() [2/3]

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

Implements Trajectory.

◆ distTo1stError() [3/3]

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

Implements Trajectory.

◆ distTo2ndError() [1/3]

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

Implements Trajectory.

Definition at line 64 of file TrkLineTraj.cxx.

64{ return 999.e4; }

◆ distTo2ndError() [2/3]

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

Implements Trajectory.

◆ distTo2ndError() [3/3]

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

Implements Trajectory.

◆ getInfo() [1/6]

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

Implements Trajectory.

Definition at line 68 of file TrkLineTraj.cxx.

68 {
69 pos = position( fltLen );
70 dir = direction( fltLen );
71}
HepPoint3D position(double) const

◆ getInfo() [2/6]

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

Implements Trajectory.

◆ getInfo() [3/6]

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

Implements Trajectory.

◆ getInfo() [4/6]

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

Implements Trajectory.

Definition at line 73 of file TrkLineTraj.cxx.

74 {
75 pos = position( fltLen );
76 dir = direction( fltLen );
77 delDir = delDirect( fltLen );
78}
Hep3Vector delDirect(double) const

◆ getInfo() [5/6]

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

Implements Trajectory.

◆ getInfo() [6/6]

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

Implements Trajectory.

◆ operator=() [1/3]

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

Definition at line 42 of file TrkLineTraj.cxx.

42 {
43 if ( &other != this )
44 {
45 Trajectory::operator=( other );
46 _start = other._start;
47 _direction = other._direction;
48 }
49 return *this;
50}
Trajectory & operator=(const Trajectory &)

◆ operator=() [2/3]

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

◆ operator=() [3/3]

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

◆ position() [1/3]

HepPoint3D TrkLineTraj::position ( double flightlen) const
virtual

Implements Trajectory.

Definition at line 54 of file TrkLineTraj.cxx.

54 {
55 return _start + _direction * flightlen;
56}

Referenced by getInfo(), and getInfo().

◆ position() [2/3]

HepPoint3D TrkLineTraj::position ( double ) const
virtual

Implements Trajectory.

◆ position() [3/3]

HepPoint3D TrkLineTraj::position ( double ) const
virtual

Implements Trajectory.


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