]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - HLT/MUON/src/AliRoot/Point.hpp
Removing warnings related to -Weffc++ flag.
[u/mrichter/AliRoot.git] / HLT / MUON / src / AliRoot / Point.hpp
index 1af91b3f69ca916ea65a83f72b30a1ea8cc629e4..f4a1aa1a825e457e3d81bf55d5984f05172d5f04 100644 (file)
@@ -5,42 +5,44 @@
 //
 ////////////////////////////////////////////////////////////////////////////////
 
-#ifndef dHLT_ALIROOT_POINT_HPP
-#define dHLT_ALIROOT_POINT_HPP
+#ifndef ALIHLTMUONPOINT_H
+#define ALIHLTMUONPOINT_H
 
-#include "TObject.h"
-#include <ostream>
+#include <TObject.h>
+#include <Riostream.h>
 
 
-namespace AliMUONHLT
+class AliHLTMUONPoint : public TObject
 {
+       // ostream operator usefull for text output.
+       friend ostream& operator << (ostream& os, const AliHLTMUONPoint& p);
 
-
-class Point : public TObject
-{
 public:
 
        /* Default constructor initialises everything to zero.
         */
-       Point();
+       AliHLTMUONPoint();
        
        /* Constructs the point from the specified x and y coordinates.
         */
-       Point(const Float_t x, const Float_t y);
+       AliHLTMUONPoint(Float_t x, Float_t y);
 
-       virtual ~Point() {};
+       virtual ~AliHLTMUONPoint() {}
        
-       // ostream operator usefull for text output.
-       friend std::ostream& operator << (std::ostream& os, const Point& p);
+       Float_t X() const { return fX; }
+       Float_t& X() { return fX; }
+       void X(Float_t x) { fX = x; }
+       Float_t Y() const { return fY; }
+       Float_t& Y() { return fY; }
+       void Y(Float_t y) { fY = y; }
 
+private:
 
        Float_t fX;    // X coordinate of the 2D point.
        Float_t fY;    // Y coordinate of the 2D point.
 
-       ClassDef(Point, 1);  // A 2D space point.
+       ClassDef(AliHLTMUONPoint, 1)  // A 2D space point.
 };
 
 
-}; // AliMUONHLT
-
-#endif // dHLT_ALIROOT_POINT_HPP
+#endif // ALIHLTMUONPOINT_H