]>
Commit | Line | Data |
---|---|---|
d88f97cc | 1 | #ifndef ALIPOSITION_H |
2 | #define ALIPOSITION_H | |
3da30618 | 3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
f531a546 | 6 | // $Id$ |
3da30618 | 7 | |
d88f97cc | 8 | #include <math.h> |
9 | ||
10 | #include "TObject.h" | |
11 | #include "TString.h" | |
12 | ||
13 | #include "Ali3Vector.h" | |
14 | ||
15 | class AliPosition : public Ali3Vector | |
16 | { | |
17 | public: | |
959fbac5 | 18 | AliPosition(); // Default constructor |
19 | virtual ~AliPosition(); // Destructor | |
c72198f1 | 20 | AliPosition(const AliPosition& p); // Copy constructor |
1c01b4f8 | 21 | void SetPosition(Double_t* r,TString f); // Store position r in frame f |
261c0caf | 22 | void GetPosition(Double_t* r,TString f) const; // Provide position r in frame f |
1c01b4f8 | 23 | void SetPosition(Float_t* r,TString f); // Store position r in frame f |
261c0caf | 24 | void GetPosition(Float_t* r,TString f) const; // Provide position r in frame f |
959fbac5 | 25 | AliPosition& GetPosition(); // Provide position |
1c01b4f8 | 26 | void SetPosition(Ali3Vector& r); // Store position r |
43bfa5be | 27 | Double_t GetDistance(AliPosition& p); // Provide distance to position p |
c72198f1 | 28 | Double_t GetDistance(AliPosition* p) { return GetDistance(*p); } |
1c01b4f8 | 29 | void SetPositionErrors(Double_t* r,TString f); // Store position r in frame f |
261c0caf | 30 | void GetPositionErrors(Double_t* r,TString f) const; // Provide position r in frame f |
1c01b4f8 | 31 | void SetPositionErrors(Float_t* r,TString f); // Store position r in frame f |
261c0caf | 32 | void GetPositionErrors(Float_t* r,TString f) const; // Provide position r in frame f |
1c01b4f8 | 33 | void ResetPosition(); // Reset position and errors to 0 |
261c0caf | 34 | void SetUnitScale(Float_t s); // Set unit scale for the position coordinates |
35 | Float_t GetUnitScale() const; // Provide unit scale for the position coordinates | |
d88f97cc | 36 | |
261c0caf | 37 | protected: |
38 | Float_t fScale; // The unit scale used for the position coordinates | |
39 | ||
40 | ClassDef(AliPosition,6) // Handling of positions in various reference frames. | |
d88f97cc | 41 | }; |
42 | #endif |