BOSS 7.1.0
BESIII Offline Software System
|
A class to represent a track in tracking. More...
#include <T3DLine.h>
Public Member Functions | |
T3DLine () | |
Constructors. | |
T3DLine (const TTrack &) | |
T3DLine (const T3DLine &) | |
virtual | ~T3DLine () |
Destructor. | |
double | dr (void) const |
Track parameters. | |
double | phi0 (void) const |
double | dz (void) const |
double | tanl (void) const |
double | cosPhi0 (void) const |
double | sinPhi0 (void) const |
Vector | a (void) const |
const SymMatrix & | Ea (void) const |
returns error matrix | |
const HepPoint3D & | pivot (void) const |
pivot position | |
Helix | helix (void) const |
approximated helix class | |
unsigned | ndf (void) const |
returns NDF | |
double | chi2 (void) const |
returns chi2. | |
double | reducedchi2 (void) const |
returns reduced-chi2 | |
unsigned | objectType (void) const |
returns object type | |
HepPoint3D | x (double) const |
returns position on 3D line | |
HepPoint3D | x0 (void) const |
returns 3D line component x(t)=x0 + t * k | |
HepVector3D | k (void) const |
int | approach (TMLink &, bool sagCorrection=true) const |
calculates the closest approach to a wire in real space. Results are stored in TMLink. Return value is negative if error happened. | |
int | approach_line (const HepPoint3D &, const HepVector3D &, HepPoint3D &onLine, HepPoint3D &onTrack) const |
caluculate closest points between a line and this track | |
int | approach_point (const HepPoint3D &, HepPoint3D &onTrack) const |
caluculate closest point between a point and this track | |
const HepPoint3D & | pivot (const HepPoint3D &) |
set new pivot | |
void | set (const HepPoint3D &, double t_dr, double t_phi0, double t_dz, double t_tanl) |
set track parameters,pivot | |
Vector | a (const Vector &) |
set track parameters | |
const SymMatrix & | Ea (const SymMatrix &) |
set error matrix | |
Public Member Functions inherited from TTrackBase | |
TTrackBase () | |
Constructor. | |
TTrackBase (const AList< TMLink > &links) | |
Constructor. | |
virtual | ~TTrackBase () |
Destructor. | |
virtual unsigned | objectType (void) const |
returns object type. | |
virtual unsigned | type (void) const |
returns type. Definition is depending on an object class. | |
virtual void | dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const |
dumps debug information. | |
const AList< TMLink > & | links (unsigned mask=0) const |
returns a list of masked TMLinks assigned to this track. 'mask' will be applied if mask is not 0. | |
unsigned | nLinks (unsigned mask=0) const |
returns # of masked TMLinks assigned to this track object. | |
const AList< TMLink > & | cores (unsigned mask=0) const |
returns a list of masked TMLinks for fit. 'mask' will be applied if mask is not 0. | |
unsigned | nCores (unsigned mask=0) const |
returns # of masked TMLinks for fit. 'mask' will be applied if mask is not 0. | |
void | update (void) const |
update cache. | |
void | append (TMLink &) |
appends a TMLink. | |
void | append (const AList< TMLink > &) |
appends TMLinks. | |
void | appendByApproach (AList< TMLink > &list, double maxSigma) |
appends TMLinks by approach. 'list' is an input. Unappended TMLinks will be removed from 'list' when returned. | |
void | appendByDistance (AList< TMLink > &list, double maxDistance) |
appends TMLinks by distance. 'list' is an input. Unappended TMLinks will be removed from 'list' when returned. | |
void | remove (TMLink &a) |
removes a TMLink. | |
void | remove (const AList< TMLink > &) |
removes TMLinks. | |
virtual void | refine (AList< TMLink > &list, double maxSigma) |
removes bad points by pull. The bad points are removed from the track, and are returned in 'list'. | |
virtual void | refine (double maxSigma) |
removes bad points by pull. The bad points are masked not to be used in fit. | |
virtual int | DropWorst () |
virtual void | removeLinks (void) |
virtual double | distance (const TMLink &) const |
returns distance to a position of TMLink in TMLink space. | |
virtual int | approach (TMLink &) const |
calculates the closest approach to a wire in real space. Results are stored in TMLink. Return value is negative if error happened. | |
unsigned | testByApproach (const TMLink &list, double sigma) const |
returns # of good hits to be appended. | |
unsigned | testByApproach (const AList< TMLink > &list, double sigma) const |
virtual int | fit (void) |
fits itself by a default fitter. Error was happened if return value is not zero. | |
const TMFitter *const | fitter (void) const |
returns a pointer to a default fitter. | |
const TMFitter *const | fitter (const TMFitter *) |
sets a default fitter. | |
void | falseFit () |
false Fit | |
TMLink * | operator[] (unsigned i) const |
const TTrackHEP *const | hep (void) const |
returns TTrackHEP. | |
unsigned | nHeps (void) const |
returns # of contributed TTrackHEP tracks. | |
const TTrackMC *const | mc (void) const |
returns a pointer to TTrackMC. | |
bool | fitted (void) const |
returns true if fitted. | |
bool | fittedWithCathode (void) const |
returns true if fitted with cathode hits(TEMPORARY). | |
Friends | |
class | T3DLineFitter |
Additional Inherited Members | |
Protected Attributes inherited from TTrackBase | |
AList< TMLink > | _links |
bool | _fitted |
bool | _fittedWithCathode |
TTrackMC * | _mc |
T3DLine::T3DLine | ( | ) |
Constructors.
Definition at line 21 of file T3DLine.cxx.
T3DLine::T3DLine | ( | const TTrack & | a | ) |
Definition at line 37 of file T3DLine.cxx.
T3DLine::T3DLine | ( | const T3DLine & | a | ) |
|
virtual |
set track parameters
Definition at line 187 of file T3DLine.cxx.
Vector T3DLine::a | ( | void | ) | const |
Definition at line 107 of file T3DLine.cxx.
Referenced by helix().
calculates the closest approach to a wire in real space. Results are stored in TMLink. Return value is negative if error happened.
Definition at line 202 of file T3DLine.cxx.
int T3DLine::approach_line | ( | const HepPoint3D & | w0, |
const HepVector3D & | v, | ||
HepPoint3D & | onLine, | ||
HepPoint3D & | onTrack | ||
) | const |
caluculate closest points between a line and this track
Definition at line 243 of file T3DLine.cxx.
Referenced by approach().
int T3DLine::approach_point | ( | const HepPoint3D & | p0, |
HepPoint3D & | onTrack | ||
) | const |
caluculate closest point between a point and this track
Definition at line 266 of file T3DLine.cxx.
double T3DLine::chi2 | ( | void | ) | const |
double T3DLine::cosPhi0 | ( | void | ) | const |
Definition at line 95 of file T3DLine.cxx.
double T3DLine::dr | ( | void | ) | const |
Track parameters.
Definition at line 79 of file T3DLine.cxx.
Referenced by pivot().
double T3DLine::dz | ( | void | ) | const |
set error matrix
Definition at line 197 of file T3DLine.cxx.
const SymMatrix & T3DLine::Ea | ( | void | ) | const |
Helix T3DLine::helix | ( | void | ) | const |
approximated helix class
Definition at line 120 of file T3DLine.cxx.
Referenced by TBuilderCosmic::buildStereo().
HepVector3D T3DLine::k | ( | void | ) | const |
Definition at line 158 of file T3DLine.cxx.
Referenced by approach_line(), and approach_point().
unsigned T3DLine::ndf | ( | void | ) | const |
|
inlinevirtual |
returns object type
Reimplemented from TTrackBase.
double T3DLine::phi0 | ( | void | ) | const |
Definition at line 83 of file T3DLine.cxx.
const HepPoint3D & T3DLine::pivot | ( | const HepPoint3D & | newpivot | ) |
set new pivot
Definition at line 163 of file T3DLine.cxx.
const HepPoint3D & T3DLine::pivot | ( | void | ) | const |
double T3DLine::reducedchi2 | ( | void | ) | const |
returns reduced-chi2
Definition at line 135 of file T3DLine.cxx.
void T3DLine::set | ( | const HepPoint3D & | t_pivot, |
double | t_dr, | ||
double | t_phi0, | ||
double | t_dz, | ||
double | t_tanl | ||
) |
set track parameters,pivot
Definition at line 175 of file T3DLine.cxx.
double T3DLine::sinPhi0 | ( | void | ) | const |
Definition at line 99 of file T3DLine.cxx.
double T3DLine::tanl | ( | void | ) | const |
Definition at line 91 of file T3DLine.cxx.
HepPoint3D T3DLine::x | ( | double | t | ) | const |
returns position on 3D line
Definition at line 143 of file T3DLine.cxx.
HepPoint3D T3DLine::x0 | ( | void | ) | const |
returns 3D line component x(t)=x0 + t * k
Definition at line 151 of file T3DLine.cxx.
Referenced by approach_line(), and approach_point().
|
friend |