PandaRoot
PndSttGeomPoint.h
Go to the documentation of this file.
1 //****************************************************************************
2 //* This file is part of PandaRoot. *
3 //* *
4 //* PandaRoot is distributed under the terms of the *
5 //* GNU General Public License (GPL) version 3, *
6 //* copied verbatim in the file "LICENSE". *
7 //* *
8 //* Copyright (C) 2006 - 2024 FAIR GmbH and copyright holders of PandaRoot *
9 //* The copyright holders are listed in the file "COPYRIGHTHOLDERS". *
10 //* The authors are listed in the file "AUTHORS". *
11 //****************************************************************************
12 
13 // -------------------------------------------------------------------------
14 // ----- PndSttGeomPoint header file -----
15 // ----- Created 30/03/06 by R. Castelijns -----
16 // -------------------------------------------------------------------------
17 
18 #ifndef PNDSTTGEOMPOINT_H
19 #define PNDSTTGEOMPOINT_H 1
20 
21 #include "math.h"
22 
23 #include "TObject.h"
24 #include "TCanvas.h"
25 
26 // class PndSttGeomHelix;
27 // class PndSttGeomLine;
28 class PndSttGeomCircle;
29 
30 class PndSttGeomPoint : public TObject {
31  public:
34 
36  PndSttGeomPoint(Double_t x, Double_t y, Double_t z, Double_t dx = 0., Double_t dy = 0., Double_t dz = 0.);
37 
39  PndSttGeomPoint(PndSttGeomPoint const &other);
40 
42  virtual ~PndSttGeomPoint();
43 
44  Double_t GetX() const { return fX; }
45  Double_t GetY() const { return fY; }
46  Double_t GetZ() const { return fZ; }
47 
48  void SetX(Double_t newX) { fX = newX; }
49  void SetY(Double_t newY) { fY = newY; }
50  void SetZ(Double_t newZ) { fZ = newZ; }
51 
52  Double_t GetErrorX() const { return fErrorX; }
53  Double_t GetErrorY() const { return fErrorY; }
54  Double_t GetErrorZ() const { return fErrorZ; }
55 
56  void SetErrorX(Double_t newErrorX) { fErrorX = newErrorX; }
57  void SetErrorY(Double_t newErrorY) { fErrorY = newErrorY; }
58  void SetErrorZ(Double_t newErrorZ) { fErrorZ = newErrorZ; }
59 
60  Bool_t Is2D() const;
61  Bool_t IsBetween(PndSttGeomPoint thisCenter, PndSttGeomPoint otherCenter) const;
62  void Transform(Double_t x, Double_t y, Double_t z);
63 
64  // Double_t DistanceTo(PndSttGeomHelix myHelix) const;
65  Double_t DistanceTo(PndSttGeomPoint myPoint) const;
66  // Double_t DistanceTo(PndSttGeomLine myLine) const;
67 
68  // void Transform(); // not implemented
69  void Draw(Double_t size = 0.5, Int_t color = 1) const;
70 
71  // void operator=(PndSttGeomPoint const &other);
72  PndSttGeomPoint &operator=(const PndSttGeomPoint &) { return *this; };
73 
74  private:
75  Double_t fX;
76  Double_t fY;
77  Double_t fZ;
78 
79  Double_t fErrorX;
80  Double_t fErrorY;
81  Double_t fErrorZ;
82 
83  void Copy(PndSttGeomPoint const &other);
84  void Destroy();
85 
86  ClassDef(PndSttGeomPoint, 1);
87 };
88 
89 #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