FairRoot/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 {
20  public:
23 
26 
28  PndSttGeomPoint(PndSttGeomPoint const &other);
29 
31  virtual ~PndSttGeomPoint();
32 
33  Double_t GetX() const {return fX;}
34  Double_t GetY() const {return fY;}
35  Double_t GetZ() const {return fZ;}
36 
37  void SetX(Double_t newX) {fX = newX;}
38  void SetY(Double_t newY) {fY = newY;}
39  void SetZ(Double_t newZ) {fZ = newZ;}
40 
41  Double_t GetErrorX() const {return fErrorX;}
42  Double_t GetErrorY() const {return fErrorY;}
43  Double_t GetErrorZ() const {return fErrorZ;}
44 
45  void SetErrorX(Double_t newErrorX) {fErrorX = newErrorX;}
46  void SetErrorY(Double_t newErrorY) {fErrorY = newErrorY;}
47  void SetErrorZ(Double_t newErrorZ) {fErrorZ = newErrorZ;}
48 
49  Bool_t Is2D() const;
50  Bool_t IsBetween(PndSttGeomPoint thisCenter, PndSttGeomPoint otherCenter) const;
51  void Transform(Double_t x, Double_t y, Double_t z);
52 
53  // Double_t DistanceTo(PndSttGeomHelix myHelix) const;
54  Double_t DistanceTo(PndSttGeomPoint myPoint) const;
55  // Double_t DistanceTo(PndSttGeomLine myLine) const;
56 
57  //void Transform(); // not implemented
58  void Draw(Double_t size = 0.5, Int_t color = 1) const;
59 
60  //void operator=(PndSttGeomPoint const &other);
61  PndSttGeomPoint& operator= (const PndSttGeomPoint&) {return *this;};
62 
63  private:
64  Double_t fX;
67 
71 
72  void Copy(PndSttGeomPoint const &other);
73  void Destroy();
74 
76 };
77 
78 
79 #endif
80 
double dy
Double_t GetErrorY() const
ClassDef(PndSttGeomPoint, 1)
void SetZ(Double_t newZ)
Double_t DistanceTo(PndSttGeomPoint myPoint) const
void SetErrorZ(Double_t newErrorZ)
virtual ~PndSttGeomPoint()
void Transform(Double_t x, Double_t y, Double_t z)
void Draw(Double_t size=0.5, Int_t color=1) const
Double_t
Bool_t IsBetween(PndSttGeomPoint thisCenter, PndSttGeomPoint otherCenter) const
Double_t GetY() const
Double_t z
void Copy(PndSttGeomPoint const &other)
void SetErrorY(Double_t newErrorY)
double dx
PndSttGeomPoint & operator=(const PndSttGeomPoint &)
void SetY(Double_t newY)
Double_t x
Double_t GetErrorZ() const
Double_t GetX() const
Double_t GetZ() const
Double_t y
Double_t GetErrorX() const
Bool_t Is2D() const
void SetErrorX(Double_t newErrorX)
void SetX(Double_t newX)