1 ////////////////////////////////////////////////////////////////////////////////
3 // Author: Artur Szostak
4 // Email: artur@alice.phy.uct.ac.za | artursz@iafrica.com
6 ////////////////////////////////////////////////////////////////////////////////
8 #ifndef ALIHLTMUONPOINT_H
9 #define ALIHLTMUONPOINT_H
12 #include <Riostream.h>
15 class AliHLTMUONPoint : public TObject
17 // ostream operator usefull for text output.
18 friend ostream& operator << (ostream& os, const AliHLTMUONPoint& p);
22 /* Default constructor initialises everything to zero.
26 /* Constructs the point from the specified x and y coordinates.
28 AliHLTMUONPoint(Float_t x, Float_t y);
30 virtual ~AliHLTMUONPoint() {}
32 Float_t X() const { return fX; }
33 Float_t& X() { return fX; }
34 void X(Float_t x) { fX = x; }
35 Float_t Y() const { return fY; }
36 Float_t& Y() { return fY; }
37 void Y(Float_t y) { fY = y; }
41 Float_t fX; // X coordinate of the 2D point.
42 Float_t fY; // Y coordinate of the 2D point.
44 ClassDef(AliHLTMUONPoint, 1) // A 2D space point.
48 #endif // ALIHLTMUONPOINT_H