BOSS 6.6.4.p01
BESIII Offline Software System
Loading...
Searching...
No Matches
TrkPoca Class Reference

#include <TrkPoca.h>

+ Inheritance diagram for TrkPoca:

Public Member Functions

 TrkPoca (const Trajectory &traj1, double flt1, const Trajectory &traj2, double flt2, double precision=1.e-5)
 
 TrkPoca (const Trajectory &traj, double flt, const HepPoint3D &pt, double precision=1.e-5)
 
 ~TrkPoca ()
 
double doca () const
 
- Public Member Functions inherited from TrkPocaBase
const TrkErrCodestatus () const
 
double flt1 () const
 
double flt2 () const
 
double precision ()
 

Additional Inherited Members

- Protected Member Functions inherited from TrkPocaBase
 TrkPocaBase (double flt1, double flt2, double precision)
 
 TrkPocaBase (double flt1, double precision)
 
virtual ~TrkPocaBase ()
 
void minimize (const Trajectory &traj1, double f1, const Trajectory &traj2, double f2)
 
void minimize (const Trajectory &traj1, double f1, const HepPoint3D &pt)
 
void stepTowardPoca (const Trajectory &traj1, const Trajectory &traj2)
 
void stepToPointPoca (const Trajectory &traj, const HepPoint3D &pt)
 
- Protected Attributes inherited from TrkPocaBase
double _precision
 
double _flt1
 
double _flt2
 
TrkErrCode _status
 
- Static Protected Attributes inherited from TrkPocaBase
static double _maxDist = 1.e7
 
static int _maxTry = 500
 
static double _extrapToler = 2.
 

Detailed Description

Definition at line 27 of file TrkPoca.h.

Constructor & Destructor Documentation

◆ TrkPoca() [1/2]

TrkPoca::TrkPoca ( const Trajectory traj1,
double  flt1,
const Trajectory traj2,
double  flt2,
double  precision = 1.e-5 
)

Definition at line 22 of file TrkPoca.cxx.

24: TrkPocaBase(f1,f2,prec), _doca(-9999.)
25{
26 minimize(traj1,f1,traj2,f2);
27 if (status().failure()) return;
28 calcDist(traj1,traj2);
29}
TFile * f1
const TrkErrCode & status() const
Definition: TrkPocaBase.h:62
void minimize(const Trajectory &traj1, double f1, const Trajectory &traj2, double f2)
Definition: TrkPocaBase.cxx:32

◆ TrkPoca() [2/2]

TrkPoca::TrkPoca ( const Trajectory traj,
double  flt,
const HepPoint3D pt,
double  precision = 1.e-5 
)

Definition at line 31 of file TrkPoca.cxx.

33: TrkPocaBase(flt,prec)
34{
35 minimize(traj,flt,pt);
36 if (status().failure()) return;
37 _doca = (traj.position(flt1()) - pt).mag();
38}
virtual HepPoint3D position(double) const =0
double flt1() const
Definition: TrkPocaBase.h:65

◆ ~TrkPoca()

TrkPoca::~TrkPoca ( )
inline

Definition at line 34 of file TrkPoca.h.

34{};

Member Function Documentation

◆ doca()


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