StRoot  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
StiTrackFinder.h
1 #ifndef StiTrackFinder_H
2 #define StiTrackFinder_H 1
3 #include <vector>
4 #include "Sti/Base/Named.h"
5 class StiHit;
6 class StiTrack;
8 template<class Filtered>class Filter;
9 
11 class StiTrackFinder: public Named
12 {
13 public:
14  StiTrackFinder(){mComb=7;}
15  virtual ~StiTrackFinder(){ /* nada*/ }
17  virtual void initialize(){;};
19  virtual void startEvent(){;};
21  virtual void findTracks(){;};
23  virtual bool find(StiTrack *track, int direction, double rmin=0){return 0;}
25  virtual StiTrack * findTrack(double){return 0;};
26  virtual void extendTracksToVertices(const std::vector<StiHit*> &vertices){;};
28  virtual void reset(){;};
29  virtual void unset(){;}
31  virtual void clear(){;};
33  virtual Filter<StiTrack> * getTrackFilter(){return 0;};
35  void setComb(int comb=7) {mComb = comb;}
36  int useComb() const {return mComb;}
37  virtual void FeedBack(int badGood){;};
38 
39 
40 protected:
41  int mComb; //=silicon+4*tpc
42  // silicon/tpc 0=no combinatoric , no tree search
43  // 1=combinatoric , only hits count
44  // 2=combinatoric , no hits also counts
45 
46 
47 };
48 
49 #endif
virtual void initialize()
Initialize the finder.
virtual void clear()
Reset the tracker.
Abstract definition of a Track.
Definition: StiTrack.h:59
Definition: StiHit.h:51
Definition: Filter.h:17
Definition: Named.h:16
void setComb(int comb=7)
Set the vertex finder used by this tracker.
virtual void findTracks()
Find all tracks of the currently loaded event.
virtual StiTrack * findTrack(double)
Find the next track.
virtual bool find(StiTrack *track, int direction, double rmin=0)
Find/extend the given track, in the given direction.
virtual void reset()
Reset the tracker.
virtual Filter< StiTrack > * getTrackFilter()
Get the track filter currently used by the tracker.
An abstract class defining the interface to the track finder.
virtual void startEvent()
Trigger class about new event.