BOSS 7.0.7
BESIII Offline Software System
|
A virtual class for a track class in tracking. More...
#include <TTrackBase.h>
Public Member Functions | |
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). | |
Protected Attributes | |
AList< TMLink > | _links |
bool | _fitted |
bool | _fittedWithCathode |
TTrackMC * | _mc |
Friends | |
class | TMFitter |
class | THelixFitter |
class | TCosmicFitter |
A virtual class for a track class in tracking.
Definition at line 46 of file TTrackBase.h.
TTrackBase::TTrackBase | ( | ) |
Constructor.
Definition at line 40 of file TTrackBase.cxx.
Constructor.
Definition at line 24 of file TTrackBase.cxx.
|
virtual |
appends TMLinks.
Definition at line 384 of file TTrackBase.cxx.
void TTrackBase::append | ( | TMLink & | a | ) |
appends a TMLink.
Definition at line 362 of file TTrackBase.cxx.
Referenced by TBuilder::buildStereo(), TBuilder0::buildStereo(), TBuilderCosmic::buildStereo(), TBuilder0::buildStereo0(), TBuilderCurl::buildStereoMC(), TBuilder::buildStereoNew(), THistogram::clusters(), THistogram::clusters0(), TrkReco::execute(), and TTrackManager::salvageAssociateHits().
appends TMLinks by approach. 'list' is an input. Unappended TMLinks will be removed from 'list' when returned.
Definition at line 101 of file TTrackBase.cxx.
Referenced by TBuilder0::appendClusters(), and TTrackManager::salvage().
appends TMLinks by distance. 'list' is an input. Unappended TMLinks will be removed from 'list' when returned.
Definition at line 152 of file TTrackBase.cxx.
|
virtual |
calculates the closest approach to a wire in real space. Results are stored in TMLink. Return value is negative if error happened.
Reimplemented in TTrack.
Definition at line 95 of file TTrackBase.cxx.
Referenced by appendByApproach(), and testByApproach().
returns a list of masked TMLinks for fit. 'mask' will be applied if mask is not 0.
Definition at line 317 of file TTrackBase.cxx.
Referenced by TBuilder::buildStereoNew(), TTrack::movePivot(), TTrackManager::setCurlerFlags(), TRunge::SetFlightLength(), and TTrack::szPosition().
|
virtual |
returns distance to a position of TMLink in TMLink space.
Reimplemented in TLine0, and TMLine.
Definition at line 89 of file TTrackBase.cxx.
Referenced by appendByApproach(), TTrack::fit2D(), and testByApproach().
|
virtual |
Definition at line 212 of file TTrackBase.cxx.
Referenced by TrkReco::execute().
|
virtual |
dumps debug information.
Reimplemented in TCircle, TLine0, TMLine, TSegment, TSegment0, and TTrack.
Definition at line 58 of file TTrackBase.cxx.
Referenced by TCircle::dump(), TLine0::dump(), TMLine::dump(), TSegment::dump(), TSegment0::dump(), and TTrack::dump().
|
inline |
false Fit
Definition at line 229 of file TTrackBase.h.
|
virtual |
fits itself by a default fitter. Error was happened if return value is not zero.
Definition at line 357 of file TTrackBase.cxx.
Referenced by TBuilder::buildRphi(), TBuilder0::buildRphi(), TBuilder0::buildStereo(), TBuilderCosmic::buildStereo(), TBuilder0::buildStereo0(), TBuilderCurl::buildStereoMC(), TBuilder::initialLine1(), TBuilder::searchLines1(), TBuilder::searchLines2(), TBuilder::searchLines3(), TBuilder::searchLines4(), TBuilder::searchLines5(), and TBuilder::searchLines6().
|
inline |
returns true if fitted.
Definition at line 222 of file TTrackBase.h.
Referenced by TBuilder::searchLine().
|
inline |
returns true if fitted with cathode hits(TEMPORARY).
Definition at line 243 of file TTrackBase.h.
sets a default fitter.
Definition at line 261 of file TTrackBase.h.
|
inline |
returns a pointer to a default fitter.
Definition at line 255 of file TTrackBase.h.
Referenced by T3DLine::T3DLine(), TCircle::TCircle(), TLine0::TLine0(), TMLine::TMLine(), TRunge::TRunge(), and TTrack::TTrack().
const TTrackHEP *const TTrackBase::hep | ( | void | ) | const |
returns TTrackHEP.
Definition at line 407 of file TTrackBase.cxx.
returns a list of masked TMLinks assigned to this track. 'mask' will be applied if mask is not 0.
Definition at line 297 of file TTrackBase.cxx.
Referenced by TBuilder::build(), TBuilder::buildStereo(), TBuilder0::buildStereo(), TBuilderCosmic::buildStereo(), TBuilderCurl::buildStereo(), TBuilder0::buildStereo0(), TBuilderCurl::buildStereoMC(), TBuilder::buildStereoNew(), TrkReco::execute(), TBuilder::initialLineOld(), TTrackManager::merge(), TTrack::movePivot(), TMSelector::preSelect(), TBuilder::searchLine(), TMDCTsf::segments(), TSegment::splitTsf(), TSegment::superLayerId(), TSegment0::superLayerId(), TTrack::szPosition(), and TSegment::width().
|
inline |
unsigned TTrackBase::nCores | ( | unsigned | mask = 0 | ) | const |
returns # of masked TMLinks for fit. 'mask' will be applied if mask is not 0.
Definition at line 325 of file TTrackBase.cxx.
Referenced by TTrack::dump().
unsigned TTrackBase::nHeps | ( | void | ) | const |
returns # of contributed TTrackHEP tracks.
Definition at line 443 of file TTrackBase.cxx.
unsigned TTrackBase::nLinks | ( | unsigned | mask = 0 | ) | const |
returns # of masked TMLinks assigned to this track object.
Definition at line 305 of file TTrackBase.cxx.
Referenced by TBuilderCurl::buildStereo(), TBuilderCurl::buildStereoMC(), TSegment::clusterType(), TSegment0::clusterType(), and TMSelector::preSelect().
|
inlinevirtual |
returns object type.
Reimplemented in T3DLine, TCircle, TLine0, TMLine, TRunge, TSegment, TSegment0, and TTrack.
Definition at line 268 of file TTrackBase.h.
Referenced by T3DLineFitter::fit(), and TRungeFitter::fit().
|
inline |
Definition at line 237 of file TTrackBase.h.
removes bad points by pull. The bad points are removed from the track, and are returned in 'list'.
Definition at line 170 of file TTrackBase.cxx.
Referenced by TBuilder0::appendClusters(), TBuilder::buildStereo(), TBuilder0::buildStereo(), TBuilderCosmic::buildStereo(), TBuilderCurl::buildStereo(), TBuilder0::buildStereo0(), and TBuilderCurl::buildStereoMC().
|
virtual |
removes bad points by pull. The bad points are masked not to be used in fit.
Definition at line 194 of file TTrackBase.cxx.
removes TMLinks.
Definition at line 213 of file TTrackBase.h.
|
inline |
removes a TMLink.
Definition at line 204 of file TTrackBase.h.
Referenced by TBuilder::buildStereoNew(), TTrackManager::maskCurl(), TTrackManager::maskNormal(), and TBuilder::searchLine().
|
virtual |
Definition at line 189 of file TTrackBase.cxx.
Referenced by TBuilderCosmic::buildStereo(), and TrkReco::execute().
Definition at line 240 of file TTrackBase.cxx.
unsigned TTrackBase::testByApproach | ( | const TMLink & | list, |
double | sigma | ||
) | const |
returns # of good hits to be appended.
Definition at line 255 of file TTrackBase.cxx.
Referenced by TTrackManager::setCurlerFlags(), and testByApproach().
|
inlinevirtual |
returns type. Definition is depending on an object class.
Reimplemented in TTrack.
Definition at line 274 of file TTrackBase.h.
void TTrackBase::update | ( | void | ) | const |
update cache.
Definition at line 75 of file TTrackBase.cxx.
|
friend |
Definition at line 183 of file TTrackBase.h.
|
friend |
Definition at line 182 of file TTrackBase.h.
|
friend |
Definition at line 181 of file TTrackBase.h.
|
mutableprotected |
Definition at line 162 of file TTrackBase.h.
Referenced by TLine0::a(), TMLine::a(), append(), appendByApproach(), TLine0::appendByszdistance(), TMLine::appendByszdistance(), TLine0::appendSLY(), TMLine::appendSLY(), TLine0::b(), TMLine::b(), TCircle::center(), TCircle::charge(), TLine0::chi2(), TMLine::chi2(), TTrack::chi2(), TSegment::direction(), TSegment0::direction(), TLine0::distance(), TMLine::distance(), DropWorst(), TCircle::dump(), TSegment::dump(), TSegment0::dump(), falseFit(), THelixFitter::fit(), TLine0::fit2(), TMLine::fit2(), TLine0::fit2p(), TMLine::fit2p(), TLine0::fit2s(), TMLine::fit2s(), TLine0::fit2sp(), TMLine::fit2sp(), TCircle::fitForCurl(), fitted(), fitter(), TCircle::impact(), TSegment::innerMostLayer(), TSegment0::innerMostLayer(), TSegment::inners(), TSegment::innerWidth(), TSegment0::innerWidth(), TTrack::ndf(), TSegment::outerMostLayer(), TSegment0::outerMostLayer(), TSegment::outers(), TSegment::outerWidth(), TSegment0::outerWidth(), TSegment::position(), TSegment0::position(), TCircle::pt(), TCircle::radius(), TLine0::reducedChi2(), TMLine::reducedChi2(), refine(), TLine0::refine(), TMLine::refine(), TTrack::refine2D(), remove(), TLine0::removeChits(), TMLine::removeChits(), TLine0::removeSLY(), TMLine::removeSLY(), T3DLine::T3DLine(), TRunge::TRunge(), TSegment::TSegment(), TSegment0::TSegment0(), and TTrack::TTrack().
|
mutableprotected |
Definition at line 163 of file TTrackBase.h.
Referenced by append(), falseFit(), fittedWithCathode(), remove(), T3DLine::T3DLine(), TRunge::TRunge(), and TTrack::TTrack().
Definition at line 161 of file TTrackBase.h.
Referenced by append(), appendByApproach(), TLine0::appendByszdistance(), TMLine::appendByszdistance(), TLine0::appendSLY(), TMLine::appendSLY(), TTrack::assign(), TBuilderCurl::buildStereo(), TLine0::chi2(), TMLine::chi2(), DropWorst(), TCircle::dump(), TLine0::dump(), TMLine::dump(), TSegment::dump(), TSegment0::dump(), TTrack::dump(), dump(), TLine0::fit2(), TMLine::fit2(), TTrack::fit2D(), TLine0::fit2p(), TMLine::fit2p(), TLine0::fit2s(), TMLine::fit2s(), TLine0::fit2sp(), TMLine::fit2sp(), TCircle::fitForCurl(), hep(), links(), TTrack::movePivot(), nLinks(), operator[](), TSegment::rangeX(), TSegment0::rangeX(), TLine0::reducedChi2(), TMLine::reducedChi2(), refine(), TLine0::refine(), TMLine::refine(), TTrack::refine2D(), remove(), TLine0::removeChits(), TMLine::removeChits(), removeLinks(), TLine0::removeSLY(), TMLine::removeSLY(), TSegment::solveDualHits(), TSegment0::solveDualHits(), TSegment::solveLR(), TSegment::solveThreeHits(), TSegment::splitTsf(), TSegment::TSegment(), TSegment0::TSegment0(), TTrack::TTrack(), and update().
|
protected |
Definition at line 165 of file TTrackBase.h.
Referenced by mc().