BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
Trajectory Class Referenceabstract

#include <Trajectory.h>

Inheritance diagram for Trajectory:

Public Member Functions

 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
 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

Protected Member Functions

Trajectoryoperator= (const Trajectory &)
Trajectoryoperator= (const Trajectory &)
Trajectoryoperator= (const Trajectory &)

Protected Attributes

double flightrange [2]

Detailed Description

Constructor & Destructor Documentation

◆ Trajectory() [1/3]

Trajectory::Trajectory ( double lowlim,
double hilim )

Definition at line 35 of file Trajectory.cxx.

35 {
36 if ( hilim < lowlim )
37 {
38 std::cout << "ErrMsg(error) "
39 << "Invalid Trajectory range requested." << std::endl;
40 flightrange[0] = hilim;
41 flightrange[1] = lowlim;
42 }
43 flightrange[0] = lowlim;
44 flightrange[1] = hilim;
45}

Referenced by clone(), operator=(), printAll(), TrkDifTraj::TrkDifTraj(), and TrkGeomTraj::TrkGeomTraj().

◆ ~Trajectory() [1/3]

Trajectory::~Trajectory ( )
virtual

Definition at line 47 of file Trajectory.cxx.

47{}

◆ Trajectory() [2/3]

Trajectory::Trajectory ( double lowlim,
double hilim )

◆ ~Trajectory() [2/3]

virtual Trajectory::~Trajectory ( )
virtual

◆ Trajectory() [3/3]

Trajectory::Trajectory ( double lowlim,
double hilim )

◆ ~Trajectory() [3/3]

virtual Trajectory::~Trajectory ( )
virtual

Member Function Documentation

◆ clone() [1/3]

◆ clone() [2/3]

◆ clone() [3/3]

◆ curvature() [1/3]

◆ curvature() [2/3]

◆ curvature() [3/3]

◆ delDirect() [1/3]

◆ delDirect() [2/3]

◆ delDirect() [3/3]

◆ direction() [1/3]

◆ direction() [2/3]

◆ direction() [3/3]

◆ distTo0thError() [1/3]

double Trajectory::distTo0thError ( double s,
double tol,
int pathDir ) const

Definition at line 49 of file Trajectory.cxx.

49 {
50 return fabs( tolerance );
51}

◆ distTo0thError() [2/3]

double Trajectory::distTo0thError ( double s,
double tol,
int pathDir ) const

◆ distTo0thError() [3/3]

double Trajectory::distTo0thError ( double s,
double tol,
int pathDir ) const

◆ distTo1stError() [1/3]

◆ distTo1stError() [2/3]

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

◆ distTo1stError() [3/3]

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

◆ distTo2ndError() [1/3]

◆ distTo2ndError() [2/3]

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

◆ distTo2ndError() [3/3]

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

◆ getInfo() [1/6]

◆ getInfo() [2/6]

◆ getInfo() [3/6]

◆ getInfo() [4/6]

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

◆ getInfo() [5/6]

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

◆ getInfo() [6/6]

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

◆ hiRange() [1/3]

◆ hiRange() [2/3]

double Trajectory::hiRange ( ) const

◆ hiRange() [3/3]

double Trajectory::hiRange ( ) const

◆ lowRange() [1/3]

◆ lowRange() [2/3]

double Trajectory::lowRange ( ) const

◆ lowRange() [3/3]

double Trajectory::lowRange ( ) const

◆ operator=() [1/3]

Trajectory & Trajectory::operator= ( const Trajectory & other)
protected

Definition at line 76 of file Trajectory.cxx.

76 {
77 flightrange[0] = other.flightrange[0];
78 flightrange[1] = other.flightrange[1];
79 return *this;
80}
Index other(Index i, Index j)

Referenced by HelixTraj::operator=(), TrkCircleTraj::operator=(), TrkDifLineTraj::operator=(), and TrkLineTraj::operator=().

◆ operator=() [2/3]

Trajectory & Trajectory::operator= ( const Trajectory & )
protected

◆ operator=() [3/3]

Trajectory & Trajectory::operator= ( const Trajectory & )
protected

◆ position() [1/3]

◆ position() [2/3]

◆ position() [3/3]

◆ print() [1/3]

virtual void Trajectory::print ( std::ostream & os) const
virtual

◆ print() [2/3]

virtual void Trajectory::print ( std::ostream & os) const
virtual

◆ print() [3/3]

virtual void Trajectory::print ( std::ostream & os) const
virtual

◆ printAll() [1/3]

virtual void Trajectory::printAll ( std::ostream & os) const
virtual

◆ printAll() [2/3]

virtual void Trajectory::printAll ( std::ostream & os) const
virtual

◆ printAll() [3/3]

virtual void Trajectory::printAll ( std::ostream & os) const
virtual

◆ range() [1/3]

◆ range() [2/3]

double Trajectory::range ( ) const

◆ range() [3/3]

double Trajectory::range ( ) const

◆ setFlightRange() [1/3]

void Trajectory::setFlightRange ( double newrange[2])
virtual

Reimplemented in TrkDifPieceTraj, TrkDifPieceTraj, and TrkDifPieceTraj.

Definition at line 53 of file Trajectory.cxx.

53 {
54 if ( newrange[1] >= newrange[0] )
55 {
56 flightrange[0] = newrange[0];
57 flightrange[1] = newrange[1];
58 }
59 else
60 {
61 std::cout << "ErrMsg(error) "
62 << "Invalid Trajectory range requested." << std::endl;
63 flightrange[0] = newrange[1];
64 flightrange[1] = newrange[0];
65 }
66}

Referenced by TrkDifPieceTraj::append(), TrkDifPieceTraj::append(), TrkSimpTraj::changePoint(), TrkDifPieceTraj::invert(), TrkSimpTraj::invert(), TrkDifPieceTraj::prepend(), TrkDifPieceTraj::prepend(), and TrkDifPieceTraj::TrkDifPieceTraj().

◆ setFlightRange() [2/3]

virtual void Trajectory::setFlightRange ( double newrange[2])
virtual

◆ setFlightRange() [3/3]

virtual void Trajectory::setFlightRange ( double newrange[2])
virtual

◆ validFlightDistance() [1/3]

bool Trajectory::validFlightDistance ( double f,
double tolerance = 0.0 ) const
inline

Definition at line 86 of file InstallArea/x86_64-el9-gcc13-dbg/include/MdcGeom/Trajectory.h.

86 {
87 return f >= flightrange[0] - tol && f <= flightrange[1] + tol;
88}
TFile f("ana_bhabha660a_dqa_mcPat_zy_old.root")

Referenced by TrkDifPieceTraj::trajIndex().

◆ validFlightDistance() [2/3]

bool Trajectory::validFlightDistance ( double f,
double tolerance = 0.0 ) const

◆ validFlightDistance() [3/3]

bool Trajectory::validFlightDistance ( double f,
double tolerance = 0.0 ) const

Member Data Documentation

◆ flightrange


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