13#ifndef TTrackBase_FLAG_
14#define TTrackBase_FLAG_
16#ifdef TRKRECO_DEBUG_DETAIL
22#define TrackAxialLayer 0
23#define TrackStereoLayer 1
24#define TrackBothLayer 2
36#include "CLHEP/Alist/AList.h"
38#include "TrkReco/TMDCUtil.h"
63 virtual unsigned type(
void )
const;
66 virtual void dump(
const std::string& message = std::string(
"" ),
67 const std::string& prefix = std::string(
"" ) )
const;
75 unsigned nLinks(
unsigned mask = 0 )
const;
81 unsigned nCores(
unsigned mask = 0 )
const;
173 mutable bool _updated;
180 mutable unsigned _nHeps;
192 bool fitted(
bool )
const;
198#ifdef TTrackBase_NO_INLINE
202# define TTrackBase_INLINE_DEFINE_HERE
205#ifdef TTrackBase_INLINE_DEFINE_HERE
A class to fit a TTrackBase object.
A class to relate TMDCWireHit and TTrack objects.
A virtual class for a track class in tracking.
unsigned testByApproach(const AList< TMLink > &list, double sigma) const
bool fitted(void) const
returns true if fitted.
bool fittedWithCathode(void) const
returns true if fitted with cathode hits(TEMPORARY).
virtual void refine(AList< TMLink > &list, double maxSigma)
void append(const AList< TMLink > &)
appends TMLinks.
friend class THelixFitter
void appendByDistance(AList< TMLink > &list, double maxDistance)
virtual unsigned type(void) const
returns type. Definition is depending on an object class.
unsigned testByApproach(const TMLink &list, double sigma) const
returns # of good hits to be appended.
const TTrackMC *const mc(void) const
returns a pointer to TTrackMC.
virtual unsigned objectType(void) const
returns object type.
virtual void refine(double maxSigma)
removes bad points by pull. The bad points are masked not to be used in fit.
unsigned nHeps(void) const
returns # of contributed TTrackHEP tracks.
void append(TMLink &)
appends a TMLink.
friend class TCosmicFitter
const AList< TMLink > & links(unsigned mask=0) const
const TMFitter *const fitter(const TMFitter *)
sets a default fitter.
const TMFitter *const fitter(void) const
returns a pointer to a default fitter.
virtual unsigned type(void) const
returns type. Definition is depending on an object class.
void remove(TMLink &a)
removes a TMLink.
const TTrackHEP *const hep(void) const
returns TTrackHEP.
TTrackBase(const AList< TMLink > &links)
Constructor.
virtual double distance(const TMLink &) const
returns distance to a position of TMLink in TMLink space.
unsigned nCores(unsigned mask=0) const
returns # of masked TMLinks for fit. 'mask' will be applied if mask is not 0.
void appendByApproach(AList< TMLink > &list, double maxSigma)
TMLink * operator[](unsigned i) const
void remove(const AList< TMLink > &)
removes TMLinks.
virtual ~TTrackBase()
Destructor.
virtual int approach(TMLink &) const
virtual int fit(void)
fits itself by a default fitter. Error was happened if return value is not zero.
virtual unsigned objectType(void) const
returns object type.
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.
virtual void dump(const std::string &message=std::string(""), const std::string &prefix=std::string("")) const
dumps debug information.
virtual void removeLinks(void)
unsigned nLinks(unsigned mask=0) const
returns # of masked TMLinks assigned to this track object.
void update(void) const
update cache.
A class to represent a GEN_HEPEVT particle in tracking.
A class to have MC information of TTrack.