]> git.uio.no Git - u/mrichter/AliRoot.git/blob - STEER/AliSurveyPoint.h
Bug fix - chack the abs values
[u/mrichter/AliRoot.git] / STEER / AliSurveyPoint.h
1 #ifndef ALI_SURVEY_POINT_H
2 #define ALI_SURVEY_POINT_H
3
4 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                               */
6
7 /////////////////////////////////////////////////////////////////////
8 //                                                                 //
9 //  class AliSurveyPoint                                           //
10 //  Retrieve and Convert survey data into ROOT Objects             //
11 //                                                                 //
12 /////////////////////////////////////////////////////////////////////
13
14 #include <TObject.h>
15 #include <TString.h>
16
17 class AliSurveyPoint: public TObject {
18
19  public:
20   AliSurveyPoint();
21   AliSurveyPoint(TString name, Float_t x, Float_t y, Float_t z,
22                  Float_t precX, Float_t precY, Float_t precZ, 
23                  Char_t type, Bool_t Target);
24   virtual ~AliSurveyPoint();
25   
26   TString GetPointName() const {return fPointName;};
27   Float_t GetX() const {return fX;};
28   Float_t GetY() const {return fY;};
29   Float_t GetZ() const {return fZ;};
30   Float_t GetPrecisionX() const {return fPrecisionX;};
31   Float_t GetPrecisionY() const {return fPrecisionY;};
32   Float_t GetPrecisionZ() const {return fPrecisionZ;};
33   Char_t GetType() const {return fType;};
34   Bool_t GetTarget() const {return fTargetUsed;};
35
36   // Overwritten to enable the use of TObjArray::FindObject()
37   virtual const char* GetName() const {return fPointName.Data();}; 
38
39   void PrintPoint();
40   
41  private:
42   TString fPointName; // Point name used by the survey group (TS/SU)
43   Float_t fX; // X Coordinate
44   Float_t fY; // Y Coordinate
45   Float_t fZ; // Z Coordinate
46   Float_t fPrecisionX; // Precision in the X axis
47   Float_t fPrecisionY; // Precision in the Y axis
48   Float_t fPrecisionZ; // Precision in the Z axis
49   Char_t fType; // Type of point: M(easured), T(ransformed)
50   Bool_t fTargetUsed; // Was a survey target used to measure this point?
51                       // If yes, the user must take that into account
52   
53   ClassDef(AliSurveyPoint, 1);
54 };
55
56 #endif