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

#include <TrkDifPoca.h>

+ Inheritance diagram for TrkDifPoca:

Public Member Functions

 TrkDifPoca (const TrkDifTraj &traj1, double flt1, const Trajectory &traj2, double flt2, double precision=1.e-5)
 
 TrkDifPoca (const TrkDifTraj &traj, double flt, const HepPoint3D &pt, double precision=1.e-5)
 
 ~TrkDifPoca ()
 
const DifNumberdifDoca () const
 
double doca () const
 
const HepVector derivs () const
 
void fetchDerivs (HepVector &) 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 31 of file TrkDifPoca.h.

Constructor & Destructor Documentation

◆ TrkDifPoca() [1/2]

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

Definition at line 25 of file TrkDifPoca.cxx.

27 : TrkPocaBase(f1,f2,prec), _doca(-9999.,0)
28{
29 minimize(traj1,f1,traj2,f2);
30 if (status().failure()) return;
31 calcDist(traj1,traj2);
32
33}
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

◆ TrkDifPoca() [2/2]

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

Definition at line 36 of file TrkDifPoca.cxx.

38 : TrkPocaBase(f1,prec), _doca(-9999.,0)
39{
40 minimize(traj,f1,pt);
41 if (status().failure()) return;
42 calcDist(traj,pt);
43}

◆ ~TrkDifPoca()

TrkDifPoca::~TrkDifPoca ( )
inline

Definition at line 39 of file TrkDifPoca.h.

39{};

Member Function Documentation

◆ derivs()

const HepVector TrkDifPoca::derivs ( ) const
inline

Definition at line 66 of file TrkDifPoca.h.

66{return _doca.derivatives();}
HepVector derivatives() const
Definition: DifNumber.cxx:46

Referenced by TrkHitOnTrk::getFitStuff().

◆ difDoca()

const DifNumber & TrkDifPoca::difDoca ( ) const
inline

Definition at line 65 of file TrkDifPoca.h.

65{return _doca;}

◆ doca()

double TrkDifPoca::doca ( ) const
inline

Definition at line 64 of file TrkDifPoca.h.

64{return _doca.number();}
double number() const
Definition: DifNumber.h:87

◆ fetchDerivs()

void TrkDifPoca::fetchDerivs ( HepVector &  dv) const
inline

Definition at line 67 of file TrkDifPoca.h.

67{_doca.fetchDerivatives(dv);}
void fetchDerivatives(HepVector &v) const
Definition: DifNumber.cxx:41

Referenced by TrkHitOnTrk::getFitStuff().


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