1 #ifndef TTUTRACKINGALG_H 2 #define TTUTRACKINGALG_H 1 45 Seed(
int _seId,
int _stId,
int _tl)
79 if ( m_tracklength < 0 )
delete m_seeds[0];
90 m_seeds.push_back(sd);
96 m_seeds.push_back(_sd);
101 m_tracklength = m_seeds.size();
108 int length() {
return m_tracklength;};
165 return ((*a).m_sectorId == (*b).m_sectorId ) && ((*a).m_stationId == (*b).m_stationId );
172 return ((*a).m_sectorId <= (*b).m_sectorId );
179 return ((*a).m_stationId <= (*b).m_stationId );
186 inline void print(
const std::vector<Seed*> & seeds )
188 std::vector<Seed*>::const_iterator itr;
189 for( itr = seeds.begin(); itr != seeds.end(); ++itr)
197 #endif // TTUTRACKINGALG_H bool operator()(const Seed *a, const Seed *b)
void setBoardSpecs(const TTUBoardSpecs::TTUBoardConfig &) override
void findNeighbors(Seed *, std::vector< Seed * > &)
std::vector< Seed * > m_initialseeds
void print(const std::vector< Seed * > &seeds)
void ghostBuster(Track *)
TTUTrackingAlg()
Standard constructor.
void setMinTrkLength(int val)
bool operator==(const Seed &rhs)
std::vector< Seed * >::iterator SeedsItr
void filter(Track *, std::vector< Seed * > &)
Seed(int _seId, int _stId, int _tl)
std::vector< Seed * > m_seeds
int executeTracker(Track *, std::vector< Seed * > &)
~TTUTrackingAlg() override
Destructor.
bool process(const TTUInput &) override
void runSeedBuster(const TTUInput &)
bool operator<(const Track &rhs)
bool operator()(T *a, T *b)
std::vector< Track * >::iterator TracksItr
bool operator()(const Seed *a, const Seed *b)
std::vector< Track * > m_tracks
bool operator()(const Seed *a, const Seed *b)