/** LitTrackFinderNNBase.h * @author Andrey Lebedev * @since 2010 * @version 1.0 ** ** Base class for fast implementation of the nearest ** neighbor tracking algorithms. Implements some common ** functionality. **/ #ifndef LITTRACKFINDERNNBASE_H_ #define LITTRACKFINDERNNBASE_H_ #include "LitHit.h" #include "LitTrack.h" //template class LitTrackFinderNNBase { public: LitTrackFinderNNBase(); virtual ~LitTrackFinderNNBase(); void SetSigmaCoef(fscal sigmaCoef) { fSigmaCoef = sigmaCoef; } void SetMaxCovSq(fscal maxCovSq) { fMaxCovSq = maxCovSq; } protected: void MinMaxIndex( const LitTrackParamScal* par, LitScalPixelHit** hits, unsigned int nofHits, fscal maxErr, unsigned int &first, unsigned int &last); private: fscal fSigmaCoef; fscal fMaxCovSq; }; //typedef LitTrackFinderNNBase LitTrackFinderNNBaseScal; //typedef LitTrackFinderNNBase LitTrackFinderNNBaseVec; #endif /* LITTRACKFINDERNNBASE_H_ */