PandaRoot
PndSttGeomPoint.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- PndSttGeomPoint header file -----
3 // ----- Created 30/03/06 by R. Castelijns -----
4 // -------------------------------------------------------------------------
5 
6 #ifndef PNDSTTGEOMPOINT_H
7 #define PNDSTTGEOMPOINT_H 1
8 
9 #include "math.h"
10 
11 #include "TObject.h"
12 #include "TCanvas.h"
13 
14 // class PndSttGeomHelix;
15 // class PndSttGeomLine;
16 class PndSttGeomCircle;
17 
18 class PndSttGeomPoint : public TObject {
19  public:
22 
24  PndSttGeomPoint(Double_t x, Double_t y, Double_t z, Double_t dx = 0., Double_t dy = 0., Double_t dz = 0.);
25 
27  PndSttGeomPoint(PndSttGeomPoint const &other);
28 
30  virtual ~PndSttGeomPoint();
31 
32  Double_t GetX() const { return fX; }
33  Double_t GetY() const { return fY; }
34  Double_t GetZ() const { return fZ; }
35 
36  void SetX(Double_t newX) { fX = newX; }
37  void SetY(Double_t newY) { fY = newY; }
38  void SetZ(Double_t newZ) { fZ = newZ; }
39 
40  Double_t GetErrorX() const { return fErrorX; }
41  Double_t GetErrorY() const { return fErrorY; }
42  Double_t GetErrorZ() const { return fErrorZ; }
43 
44  void SetErrorX(Double_t newErrorX) { fErrorX = newErrorX; }
45  void SetErrorY(Double_t newErrorY) { fErrorY = newErrorY; }
46  void SetErrorZ(Double_t newErrorZ) { fErrorZ = newErrorZ; }
47 
48  Bool_t Is2D() const;
49  Bool_t IsBetween(PndSttGeomPoint thisCenter, PndSttGeomPoint otherCenter) const;
50  void Transform(Double_t x, Double_t y, Double_t z);
51 
52  // Double_t DistanceTo(PndSttGeomHelix myHelix) const;
53  Double_t DistanceTo(PndSttGeomPoint myPoint) const;
54  // Double_t DistanceTo(PndSttGeomLine myLine) const;
55 
56  // void Transform(); // not implemented
57  void Draw(Double_t size = 0.5, Int_t color = 1) const;
58 
59  // void operator=(PndSttGeomPoint const &other);
60  PndSttGeomPoint &operator=(const PndSttGeomPoint &) { return *this; };
61 
62  private:
63  Double_t fX;
64  Double_t fY;
65  Double_t fZ;
66 
67  Double_t fErrorX;
68  Double_t fErrorY;
69  Double_t fErrorZ;
70 
71  void Copy(PndSttGeomPoint const &other);
72  void Destroy();
73 
74  ClassDef(PndSttGeomPoint, 1);
75 };
76 
77 #endif
Double_t GetY() const
Double_t GetZ() const
Double_t GetX() const
void SetZ(Double_t newZ)
Double_t GetErrorX() const
void SetErrorZ(Double_t newErrorZ)
Double_t DistanceTo(PndSttGeomPoint myPoint) const
void Transform(Double_t x, Double_t y, Double_t z)
void SetErrorY(Double_t newErrorY)
virtual ~PndSttGeomPoint()
Bool_t IsBetween(PndSttGeomPoint thisCenter, PndSttGeomPoint otherCenter) const
PndSttGeomPoint & operator=(const PndSttGeomPoint &)
void SetY(Double_t newY)
Bool_t Is2D() const
Double_t GetErrorY() const
Double_t GetErrorZ() const
void SetErrorX(Double_t newErrorX)
void SetX(Double_t newX)
void Draw(Double_t size=0.5, Int_t color=1) const