BOSS 7.0.8
BESIII Offline Software System
|
A class to represent a track in tracking. More...
#include <TTrack.h>
Public Member Functions | |
TTrack () | |
Default constructor. | |
TTrack (const TCircle &) | |
Constructor. | |
TTrack (const TTrack &) | |
Copy constructor. | |
TTrack (const T3DLine &) | |
Constructor. | |
TTrack (const Helix &) | |
Constructor. | |
TTrack (const TRunge &) | |
virtual | ~TTrack () |
Destructor. | |
const std::string & | name (void) const |
returns/sets name. | |
const std::string & | name (const std::string &newName) |
TTrack * | mother (void) const |
sets/returns mother/daughter. | |
TTrack * | mother (TTrack *) |
TTrack * | daughter (void) const |
TTrack * | daughter (TTrack *) |
unsigned | objectType (void) const |
returns type. | |
unsigned | type (void) const |
returns type. Definition is depending on an object type. | |
unsigned | finder (void) const |
sets/returns finder. | |
unsigned | finder (unsigned finderMask) |
void | setFinderType (unsigned) |
unsigned | getFinderType (void) const |
unsigned | quality (void) const |
sets/returns quality. | |
unsigned | quality (unsigned qualityMask) |
unsigned | fitting (void) const |
sets/returns fitting status. | |
unsigned | fitting (unsigned fitMask) |
unsigned | state (void) const |
returns/sets internal state.(for bank output) | |
void | assign (unsigned maskForWireHit) |
assigns wire hits to this track. | |
void | dump (const std::string &message=std::string(""), const std::string &prefix=std::string("")) const |
dumps debug information. | |
double | charge (void) const |
returns charge. | |
const Helix & | helix (void) const |
returns helix parameter. | |
Hep3Vector | p (void) const |
returns momentum. | |
double | ptot (void) const |
returns magnitude of momentum. | |
double | pt (void) const |
returns Pt. | |
double | pz (void) const |
returns Pz. | |
double | impact (void) const |
returns signed impact parameter to the origin. | |
TPoint2D | center (void) const |
returns position of helix center. | |
double | radius (void) const |
returns signed radius. | |
unsigned | ndf (void) const |
returns NDF. | |
double | chi2 (void) const |
returns chi2. | |
double | confidenceLevel (void) const |
returns confidence level. | |
AList< TSegment > & | segments (void) |
returns AList<TSegment>. | |
const AList< TSegment > & | segments (void) const |
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. | |
int | approach (TMLink &, bool sagCorrection) const |
int | approach2D (TMLink &) const |
int | szPosition (TMLink &link) const |
calculates arc length and z for a stereo hit. | |
int | szPosition (const TSegment &segment, TMLink &link) const |
calculates arc length and z for a segment. Results are stored in TMLink. | |
int | szPosition (const HepPoint3D &p, HepPoint3D &szPosition) const |
calculates arc length for a point. | |
int | stereoHitForCurl (TMLink &link, AList< HepPoint3D > &arcZList) const |
int | stereoHitForCurl (TMLink &link, TMLink &link1) const |
int | stereoHitForCurl (TMLink &link, TMLink &link1, TMLink &link2) const |
void | deleteListForCurl (AList< HepPoint3D > &l1, AList< HepPoint3D > &l2) const |
void | deleteListForCurl (AList< HepPoint3D > &l1, AList< HepPoint3D > &l2, AList< HepPoint3D > &l3) const |
int | stereoHitForCurl (AList< TMLink > &) const |
calculates arc length and z for a stereo hit. uses these functions for curl tracks(included svd version). | |
double | charge (double) |
sets charge. | |
int | fit2D (unsigned=0, double=0.1, double=0.015) |
fits itself. Error was happened if return value is not zero. | |
void | refine2D (AList< TMLink > &list, float maxSigma) |
fits itself with cathode hits. | |
void | movePivot (void) |
moves pivot to the inner most hit. | |
int | HelCyl (double rhole, double rcyl, double zb, double zf, double epsl, double &phi, HepPoint3D &xp) const |
returns a cathode hit list. | |
const AList< TMLink > & | finalHits (void) const |
finds cathode hits associated to this track. | |
const AList< TMLink > & | finalHits (const AList< TMLink > &hits) |
const AList< TMLink > & | associateHits (void) const |
sets/returns a list of associated TMLink which are used for table output. | |
const AList< TMLink > & | associateHits (const AList< TMLink > &hits) |
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 | TTrackManager |
class | TrkReco |
class | THelixFitter |
class | TCosmicFitter |
class | Refit |
class | TBuilder |
class | TBuilder0 |
class | TBuilderCosmic |
class | TBuilderCurl |
class | TPMCurlFinder |
class | TCurlFinder |
Additional Inherited Members | |
Protected Attributes inherited from TTrackBase | |
AList< TMLink > | _links |
bool | _fitted |
bool | _fittedWithCathode |
TTrackMC * | _mc |
TTrack::TTrack | ( | ) |
Default constructor.
Definition at line 207 of file TTrack.cxx.
TTrack::TTrack | ( | const TCircle & | c | ) |
Constructor.
Definition at line 81 of file TTrack.cxx.
TTrack::TTrack | ( | const TTrack & | a | ) |
Copy constructor.
Definition at line 135 of file TTrack.cxx.
TTrack::TTrack | ( | const T3DLine & | ) |
Constructor.
TTrack::TTrack | ( | const Helix & | h | ) |
Constructor.
Definition at line 181 of file TTrack.cxx.
TTrack::TTrack | ( | const TRunge & | a | ) |
Definition at line 168 of file TTrack.cxx.
|
virtual |
|
virtual |
calculates the closest approach to a wire in real space. Results are stored in TMLink. Return value is negative if error happened.
Reimplemented from TTrackBase.
Definition at line 296 of file TTrack.cxx.
Referenced by approach(), and TTrackManager::closest().
Definition at line 3059 of file TTrack.cxx.
int TTrack::approach2D | ( | TMLink & | l | ) | const |
Definition at line 2891 of file TTrack.cxx.
Referenced by fit2D().
void TTrack::assign | ( | unsigned | maskForWireHit | ) |
assigns wire hits to this track.
Definition at line 3635 of file TTrack.cxx.
|
inline |
returns position of helix center.
Definition at line 595 of file TTrack.h.
Referenced by stereoHitForCurl(), and szPosition().
|
inline |
|
inline |
returns charge.
Definition at line 504 of file TTrack.h.
Referenced by TBuilder::buildStereo(), TBuilder0::buildStereo(), TBuilderCosmic::buildStereo(), TBuilderCurl::buildStereo(), TBuilder0::buildStereo0(), TBuilderCurl::buildStereoMC(), calVirtualCircle(), moveLR(), and TTrackManager::setCurlerFlags().
|
inline |
returns chi2.
Definition at line 495 of file TTrack.h.
Referenced by fit2D(), and TTrackManager::sortTracksByQuality().
|
inline |
returns confidence level.
Definition at line 547 of file TTrack.h.
|
inline |
Definition at line 657 of file TTrack.h.
Referenced by TTrackManager::setCurlerFlags().
void TTrack::deleteListForCurl | ( | AList< HepPoint3D > & | l1, |
AList< HepPoint3D > & | l2 | ||
) | const |
void TTrack::deleteListForCurl | ( | AList< HepPoint3D > & | l1, |
AList< HepPoint3D > & | l2, | ||
AList< HepPoint3D > & | l3 | ||
) | const |
|
virtual |
dumps debug information.
Reimplemented from TTrackBase.
Definition at line 229 of file TTrack.cxx.
|
inline |
|
inline |
sets/returns finder.
Definition at line 601 of file TTrack.h.
Referenced by finder(), and TTrackManager::salvage().
int TTrack::fit2D | ( | unsigned | ipFlag = 0 , |
double | ipDistance = 0.1 , |
||
double | ipError = 0.015 |
||
) |
fits itself. Error was happened if return value is not zero.
fits itself with r-phi view. Error was happened if return value is not zero.
Definition at line 2542 of file TTrack.cxx.
Referenced by refine2D().
|
inline |
|
inline |
|
inline |
int TTrack::HelCyl | ( | double | rhole, |
double | rcyl, | ||
double | zb, | ||
double | zf, | ||
double | epsl, | ||
double & | phi, | ||
HepPoint3D & | xp | ||
) | const |
returns a cathode hit list.
calculates an intersection of this track and a cylinder.
Definition at line 316 of file TTrack.cxx.
|
inline |
returns helix parameter.
Definition at line 477 of file TTrack.h.
Referenced by TBuilder::buildStereo(), TBuilder0::buildStereo(), TBuilderCosmic::buildStereo(), TBuilderCurl::buildStereo(), TBuilder0::buildStereo0(), TBuilderCurl::buildStereoMC(), calVirtualCircle(), and TTrackManager::merge().
|
inline |
returns signed impact parameter to the origin.
Definition at line 571 of file TTrack.h.
Referenced by TBuilderCurl::buildStereo(), TBuilderCurl::buildStereoMC(), and TMSelector::select().
|
inline |
void TTrack::movePivot | ( | void | ) |
moves pivot to the inner most hit.
Definition at line 262 of file TTrack.cxx.
|
inline |
|
inline |
returns/sets name.
Definition at line 516 of file TTrack.h.
Referenced by TTrackMC::dump(), fit2D(), and TTrackManager::salvageAssociateHits().
|
inline |
returns NDF.
Definition at line 486 of file TTrack.h.
Referenced by TTrackManager::sortTracksByQuality().
|
inlinevirtual |
returns type.
Reimplemented from TTrackBase.
|
inline |
returns momentum.
Definition at line 553 of file TTrack.h.
Referenced by dump(), stereoHitForCurl(), and szPosition().
|
inline |
returns Pt.
Definition at line 528 of file TTrack.h.
Referenced by TBuilderCurl::buildStereo(), TBuilderCurl::buildStereoMC(), dump(), TTrackManager::maskNormal(), TTrackManager::merge(), TMSelector::select(), and TTrackManager::sortTracksByPt().
|
inline |
|
inline |
|
inline |
|
inline |
sets/returns quality.
Definition at line 614 of file TTrack.h.
Referenced by movePivot(), and quality().
|
inline |
fits itself with cathode hits.
remove bad points by chi2. Bad points are returned in a 'list'. fit() should be called before calling this function. (using stereo wire as axial wire(z=0))
Definition at line 301 of file TTrack.cxx.
returns AList<TSegment>.
Definition at line 583 of file TTrack.h.
Referenced by TBuilder::buildStereoNew().
|
inline |
Definition at line 676 of file TTrack.h.
|
inline |
calculates arc length and z for a stereo hit. uses these functions for curl tracks(included svd version).
Definition at line 2009 of file TTrack.cxx.
int TTrack::stereoHitForCurl | ( | TMLink & | link, |
AList< HepPoint3D > & | arcZList | ||
) | const |
int TTrack::szPosition | ( | const HepPoint3D & | p, |
HepPoint3D & | szPosition | ||
) | const |
calculates arc length for a point.
Definition at line 3608 of file TTrack.cxx.
calculates arc length and z for a segment. Results are stored in TMLink.
Definition at line 3570 of file TTrack.cxx.
int TTrack::szPosition | ( | TMLink & | link | ) | const |
calculates arc length and z for a stereo hit.
Definition at line 3372 of file TTrack.cxx.
Referenced by TBuilder::buildStereo(), TBuilder0::buildStereo(), TBuilderCosmic::buildStereo(), TBuilder0::buildStereo0(), and szPosition().
|
inlinevirtual |
returns type. Definition is depending on an object type.
Reimplemented from TTrackBase.
Definition at line 565 of file TTrack.h.
Referenced by TTrackManager::setCurlerFlags(), and setFinderType().
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |