1 #include "StiTrackFinderFilter.h"
3 #include "StiKalmanTrackNode.h"
4 #include "StiKTNIterator.h"
6 StiTrackFinderFilter::StiTrackFinderFilter()
12 StiTrackFinderFilter::StiTrackFinderFilter(
const string & name,
const string & description)
15 _minFitToPtsRatio(0.3)
18 StiTrackFinderFilter::~StiTrackFinderFilter()
21 bool StiTrackFinderFilter::accept(
const StiTrack *
track)
const
23 int npts = track->getPointCount();
24 int fitNpts = track->getFitPointCount();
26 if (npts > _minPtsCount && fitNpts > _minFitPtsCount) {
30 if (kTrack==0)
return false;
32 if (!leaf)
return false;
42 double x_g = node.x_g();
43 double y_g = node.y_g();
44 double z_g = node.z_g();
45 double rt_g = sqrt(x_g*x_g+y_g*y_g);
46 if (rt_g>210. || fabs(z_g)>250. )
48 if (bad>2) weird =
true;
61 if (npts > _minPtsCount)
62 return kNoEnoughValidHits;
64 return kNoEnoughFittedValidHits;
69 void StiTrackFinderFilter::initialize()
73 void StiTrackFinderFilter::setDefaults()
Definition of Kalman Track.
Abstract definition of a Track.
StiKalmanTrackNode * getLastNode() const
Accessor method returns the last node associated with the track.
Definition of Kalman Track.