6 #include "Sti/StiHit.h"
7 #include "Sti/StiTrack.h"
8 #include "Sti/StiTrackFitter.h"
9 #include "Sti/StiTrackFinder.h"
10 #include "Sti/StiTrackFitter.h"
11 #include "Sti/Base/Filter.h"
27 os <<
"Id: " << track.getId()
30 <<
" pt: "<<track.getPt()
31 <<
" eta: "<<track.getPseudoRapidity()
32 <<
" tanLambda: "<<track.getTanL()
33 <<
" phi: "<<track.getPhi()
34 <<
" points/fit/max: "<<track.getPointCount()
35 <<
"/"<<track.getFitPointCount()
36 <<
"/"<<track.getMaxPointCount()<<endl;
38 catch (runtime_error & rte)
40 os <<
" Run-time Error while accessing track parameters: " << rte.what() << endl;
42 catch (logic_error & le)
44 os <<
" Logic Error while accessing track parameters: " << le.what() << endl;
75 int StiTrack::fit(
int direction)
77 return trackFitter->fit(
this,direction);
81 bool StiTrack::find(
int direction)
83 return trackFinder->
find(
this,direction);
88 double StiTrack::getValue(
int key)
const
94 case kMass: value =
getMass();
break;
95 case kChi2: value =
getChi2();
break;
96 case kDca2: value = 0.;
break;
97 case kDca3: value = 0.;
break;
98 case kFlag: value = getFlag();
break;
99 case kPointCount: value = getPointCount();
break;
100 case kFitPointCount: value = getFitPointCount();
break;
101 case kGapCount: value = getGapCount();
break;
102 case kTrackLength: value = getTrackLength();
break;
103 case kMaxPointCount: value = getMaxPointCount();
break;
104 case kTpcDedx: value = 0;
break;
105 case kSvtDedx: value = 0;
break;
106 case kCurvature: value = getCurvature();
break;
107 case kP: value = getP();
break;
108 case kPt: value = getPt();
break;
109 case kRapidity: value = getRapidity();
break;
110 case kPseudoRapidity: value = getPseudoRapidity();
break;
111 case kPhi: value = getPhi();
break;
112 case kTanL: value = getTanL();
break;
113 default: value = -999999.;
break;
virtual int getCharge() const =0
Get charge of the particle that produced this track.
virtual double getChi2() const =0
Get chi2 of this track.
Abstract definition of a Track.
virtual bool find(StiTrack *track, int direction, double rmin=0)
Find/extend the given track, in the given direction.
An abstract class defining the interface to the track finder.
virtual double getMass() const =0
Get mass of the particle that produced this track.