]> git.uio.no Git - u/mrichter/AliRoot.git/blob - HLT/MUON/src/AliRoot/Point.hpp
Removing warnings related to -Weffc++ flag.
[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 ALIHLTMUONPOINT_H
9 #define ALIHLTMUONPOINT_H
10
11 #include <TObject.h>
12 #include <Riostream.h>
13
14
15 class AliHLTMUONPoint : public TObject
16 {
17         // ostream operator usefull for text output.
18         friend ostream& operator << (ostream& os, const AliHLTMUONPoint& p);
19
20 public:
21
22         /* Default constructor initialises everything to zero.
23          */
24         AliHLTMUONPoint();
25         
26         /* Constructs the point from the specified x and y coordinates.
27          */
28         AliHLTMUONPoint(Float_t x, Float_t y);
29
30         virtual ~AliHLTMUONPoint() {}
31         
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; }
38
39 private:
40
41         Float_t fX;    // X coordinate of the 2D point.
42         Float_t fY;    // Y coordinate of the 2D point.
43
44         ClassDef(AliHLTMUONPoint, 1)  // A 2D space point.
45 };
46
47
48 #endif // ALIHLTMUONPOINT_H