TpcLhePoint.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #ifndef LHE_POINT_H
  2. #define LHE_POINT_H
  3. // *************************************************************************
  4. // Author: Oleg Rogachevsky e-mail: rogach@sunhe.jinr.ru
  5. //
  6. // store information for point
  7. //
  8. // Created: 1-07-07
  9. // Modified:
  10. //
  11. // *************************************************************************
  12. #include "TObject.h"
  13. #include "TVector3.h"
  14. class TpcLhePoint : public TObject {
  15. private:
  16. TVector3 fCoord; // coordinates of point
  17. TVector3 fError; // errors of the coordinates
  18. public:
  19. TpcLhePoint(); //
  20. // constructor from array of doubles
  21. TpcLhePoint(Double_t pos[3], Double_t err[3]);
  22. // constructor from doubles
  23. TpcLhePoint(Double_t x, Double_t y, Double_t z);
  24. virtual ~TpcLhePoint();
  25. // getters
  26. Double_t GetX() const { return fCoord.X(); }
  27. Double_t GetY() const { return fCoord.Y(); }
  28. Double_t GetZ() const { return fCoord.Z(); }
  29. Double_t GetXerr() const { return fError.X(); }
  30. Double_t GetYerr() const { return fError.Y(); }
  31. Double_t GetZerr() const { return fError.Z(); }
  32. TVector3 GetCoord() const { return fCoord;}
  33. TVector3 GetError() const { return fError;}
  34. // setters
  35. void SetX(Double_t f) { fCoord.SetX(f); }
  36. void SetY(Double_t f) { fCoord.SetY(f); }
  37. void SetZ(Double_t f) { fCoord.SetZ(f); }
  38. void SetXerr(Double_t f) { fError.SetX(f); }
  39. void SetYerr(Double_t f) { fError.SetY(f); }
  40. void SetZerr(Double_t f) { fError.SetZ(f); }
  41. ClassDef(TpcLhePoint, 1) //
  42. };
  43. #endif