CbmSttTrackFinder.h 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. // -------------------------------------------------------------------------
  2. // ----- CbmSttTrackFinder header file -----
  3. // ----- Created 28/03/06 by R. Castelijns -----
  4. // -------------------------------------------------------------------------
  5. /** CbmSttTrackFinder
  6. *@author R.Castelijns <r.castelijns@fz-jeulich.de>
  7. **
  8. ** Abstract base class for concrete STT track finding algorithm.
  9. ** Each derived class must implement the method DoFind. This has
  10. ** to operate on the two TClonesArrays of pixel and strip hits
  11. ** and to fill the CbmSttTrackArray.
  12. **/
  13. #ifndef CBMSTTTRACKFINDER
  14. #define CBMSTTTRACKFINDER 1
  15. #include "TObject.h"
  16. #include "TList.h"
  17. #include <iostream>
  18. class TClonesArray;
  19. class CbmSttTrackFinder : public TObject
  20. {
  21. public:
  22. /** Default constructor **/
  23. CbmSttTrackFinder() { };
  24. /** Destructor **/
  25. virtual ~CbmSttTrackFinder() { };
  26. /** Virtual method Init. If needed, to be implemented in the
  27. ** concrete class. Else no action.
  28. **/
  29. virtual void Init() { };
  30. /** Abstract method DoFind. To be implemented in the concrete class.
  31. ** Task: Read the pixel and strip hit arrays and fill the track array,
  32. ** pointers to which are given as arguments
  33. *@value Number of tracks created
  34. **/
  35. virtual Int_t DoFind(TClonesArray* trackArray) = 0;
  36. /** Virtual method Finish. If needed, to be implemented in the concrete
  37. ** class. Executed at the end of the run.
  38. **/
  39. virtual void Finish() { };
  40. virtual void AddHitCollection(TClonesArray* mHitArray, TClonesArray* mPointArray) { };
  41. /** Set verbosity
  42. *@param verbose Verbosity level
  43. **/
  44. void SetVerbose(Int_t verbose) { fVerbose = verbose; };
  45. private:
  46. Int_t fVerbose; // Verbosity level
  47. ClassDef(CbmSttTrackFinder,1);
  48. };
  49. #endif