3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
13 #include "Ali3Vector.h"
14 #include "AliTimestamp.h"
16 class AliPosition : public Ali3Vector
19 AliPosition(); // Default constructor
20 virtual ~AliPosition(); // Destructor
21 AliPosition(const AliPosition& p); // Copy constructor
22 void SetPosition(Double_t* r,TString f,TString u="rad"); // Store position r in frame f with ang units u
23 void GetPosition(Double_t* r,TString f,TString u="rad",Float_t s=-1) const; // Provide position r in frame f in ang units u
24 void SetPosition(Float_t* r,TString f,TString u="rad"); // Store position r in frame f with ang units u
25 void GetPosition(Float_t* r,TString f,TString u="rad",Float_t s=-1) const; // Provide position r in frame f in ang units u
26 AliPosition& GetPosition(); // Provide position
27 void SetPosition(Ali3Vector& r); // Store position r
28 Double_t GetDistance(AliPosition& p,Float_t scale=-1); // Provide distance to position p
29 Double_t GetDistance(AliPosition* p,Float_t scale=-1) { return GetDistance(*p,scale); }
30 void SetPositionErrors(Double_t* r,TString f,TString u="rad"); // Store position r in frame f with ang units u
31 void GetPositionErrors(Double_t* r,TString f,TString u="rad",Float_t s=-1) const; // Provide position r in frame f in ang units u
32 void SetPositionErrors(Float_t* r,TString f,TString u="rad"); // Store position r in frame f with ang units u
33 void GetPositionErrors(Float_t* r,TString f,TString u="rad",Float_t s=-1) const; // Provide position r in frame f in ang units u
34 void ResetPosition(); // Reset position and errors to 0
35 void SetUnitScale(Float_t s); // Set metric unit scale for the position coordinates
36 Float_t GetUnitScale() const; // Provide metric unit scale for the position coordinates
37 void SetTimestamp(AliTimestamp& t); // Set the timestamp for this position
38 AliTimestamp* GetTimestamp(); // Provide the timestamp for this position
39 void RemoveTimestamp(); // Remove the timestamp from this position
40 virtual void Data(TString f="car",TString u="rad") const; // Print position/time info for frame f and ang units u
43 Float_t fScale; // The unit scale used for the position coordinates
44 AliTimestamp* fTstamp; // The timestamp for this position
46 ClassDef(AliPosition,9) // Handling of positions (with timestamps) in various reference frames.