TpcLheCMTrack.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /////////////////////////////////////////////////////////////////////////////////
  2. // //
  3. // TpcLheCMTrack class - representation of one STS track with CM points //
  4. // //
  5. /////////////////////////////////////////////////////////////////////////////////
  6. #ifndef PND_STS_CM_Track_H
  7. #define PND_STS_CM_Track_H
  8. #include "TObject.h"
  9. #include "TObjArray.h"
  10. #include "TVector3.h"
  11. #include "TpcLheTrack.h"
  12. #include "TpcLheCMPoint.h"
  13. #include "TpcLheHit.h"
  14. #include "Riostream.h"
  15. class TpcLheCMTrack : public TpcLheTrack {
  16. private:
  17. Int_t fNMapHits;
  18. TObjArray *fMappingHits; // Array of pointers to hits of track
  19. public:
  20. TpcLheCMTrack(); // constructor
  21. TpcLheCMTrack(Int_t tracknumber); // constructor with tracknumber
  22. TpcLheCMTrack(Int_t tn, Int_t nh); //
  23. virtual ~TpcLheCMTrack(); // destructor
  24. virtual void Print();
  25. void AddPoint(TpcLheCMPoint *point, Bool_t bward); // adds a point
  26. void Copy(const TpcLheCMTrack* src); //
  27. // getters
  28. TObjArray *GetCMHits() const { return fMappingHits; }
  29. // Double_t GetChi2Bend() const { return fChi2Bend; }
  30. // Double_t GetChi2Deep() const { return fChi2Deep; }
  31. Int_t GetNumberOfPoints() const { return fNMapHits; }
  32. // setters
  33. void SetTrackID(Int_t number);
  34. // void SetChi2Bend(Double_t f) { fChi2Bend = f; }
  35. // void SetChi2Deep(Double_t f) { fChi2Deep = f; }
  36. void SetPointsUsage();
  37. void Clear();
  38. ClassDef(TpcLheCMTrack, 1) //
  39. };
  40. #endif