]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/MUON/src/AliRoot/Point.hpp
1af91b3f69ca916ea65a83f72b30a1ea8cc629e4
[u/mrichter/AliRoot.git] / HLT / MUON / src / AliRoot / Point.hpp
1 ////////////////////////////////////////////////////////////////////////////////
2 //
3 // Author: Artur Szostak
4 // Email:  artur@alice.phy.uct.ac.za | artursz@iafrica.com
5 //
6 ////////////////////////////////////////////////////////////////////////////////
7
8 #ifndef dHLT_ALIROOT_POINT_HPP
9 #define dHLT_ALIROOT_POINT_HPP
10
11 #include "TObject.h"
12 #include <ostream>
13
14
15 namespace AliMUONHLT
16 {
17
18
19 class Point : public TObject
20 {
21 public:
22
23         /* Default constructor initialises everything to zero.
24          */
25         Point();
26         
27         /* Constructs the point from the specified x and y coordinates.
28          */
29         Point(const Float_t x, const Float_t y);
30
31         virtual ~Point() {};
32         
33         // ostream operator usefull for text output.
34         friend std::ostream& operator << (std::ostream& os, const Point& p);
35
36
37         Float_t fX;    // X coordinate of the 2D point.
38         Float_t fY;    // Y coordinate of the 2D point.
39
40         ClassDef(Point, 1);  // A 2D space point.
41 };
42
43
44 }; // AliMUONHLT
45
46 #endif // dHLT_ALIROOT_POINT_HPP