1 // @(#)root/minuit2:$Id$
2 // Authors: M. Winkler, F. James, L. Moneta, A. Zsenei   2003-2005
3 
4 /**********************************************************************
5  *                                                                    *
6  * Copyright (c) 2005 LCG ROOT Math team,  CERN/PH-SFT                *
7  *                                                                    *
8  **********************************************************************/
9 
10 #ifndef ROOT_Minuit2_MnParabolaPoint
11 #define ROOT_Minuit2_MnParabolaPoint
12 
13 namespace ROOT {
14 
15 namespace Minuit2 {
16 
17 /**
18 
19 A point of a parabola.
20 
21 <p>
22 
23 ????!!!! in reality it is just a general point in two dimensional space,
24 there is nothing that would indicate, that it belongs to a parabola.
25 This class defines simpy an (x,y) pair!!!!
26 
27 @author Fred James and Matthias Winkler; comments added by Andras Zsenei
28 and Lorenzo Moneta
29 
30 @ingroup Minuit
31 
32 \todo Should it be called MnParabolaPoint or just Point?
33 
34  */
35 
36 class MnParabolaPoint {
37 
38 public:
39    /**
40 
41    Initializes the point with its coordinates.
42 
43    @param x the x (first) coordinate of the point.
44    @param y the y (second) coordinate of the point.
45 
46    */
47 
MnParabolaPoint(double x,double y)48    MnParabolaPoint(double x, double y) : fX(x), fY(y) {}
49 
~MnParabolaPoint()50    ~MnParabolaPoint() {}
51 
52    /**
53 
54    Accessor to the x (first) coordinate.
55 
56    @return the x (first) coordinate of the point.
57 
58    */
59 
X()60    double X() const { return fX; }
61 
62    /**
63 
64    Accessor to the y (second) coordinate.
65 
66    @return the y (second) coordinate of the point.
67 
68    */
69 
Y()70    double Y() const { return fY; }
71 
72 private:
73    double fX;
74    double fY;
75 };
76 
77 } // namespace Minuit2
78 
79 } // namespace ROOT
80 
81 #endif // ROOT_Minuit2_MnParabolaPoint
82