//
////////////////////////////////////////////////////////////////////////////////
-#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