ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
MnParabolaPoint.h
Go to the documentation of this file.
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 /**
20 
21 A point of a parabola.
22 
23 <p>
24 
25 ????!!!! in reality it is just a general point in two dimensional space,
26 there is nothing that would indicate, that it belongs to a parabola.
27 This class defines simpy an (x,y) pair!!!!
28 
29 @author Fred James and Matthias Winkler; comments added by Andras Zsenei
30 and Lorenzo Moneta
31 
32 @ingroup Minuit
33 
34 \todo Should it be called MnParabolaPoint or just Point?
35 
36  */
37 
38 
40 
41 public:
42 
43 
44  /**
45 
46  Initializes the point with its coordinates.
47 
48  @param x the x (first) coordinate of the point.
49  @param y the y (second) coordinate of the point.
50 
51  */
52 
53  MnParabolaPoint(double x, double y) : fX(x), fY(y) {}
54 
56 
57 
58  /**
59 
60  Accessor to the x (first) coordinate.
61 
62  @return the x (first) coordinate of the point.
63 
64  */
65 
66  double X() const {return fX;}
67 
68 
69  /**
70 
71  Accessor to the y (second) coordinate.
72 
73  @return the y (second) coordinate of the point.
74 
75  */
76 
77  double Y() const {return fY;}
78 
79 private:
80 
81  double fX;
82  double fY;
83 };
84 
85  } // namespace Minuit2
86 
87 } // namespace ROOT
88 
89 #endif // ROOT_Minuit2_MnParabolaPoint
MnParabolaPoint(double x, double y)
Initializes the point with its coordinates.
double X() const
Accessor to the x (first) coordinate.
Double_t x[n]
Definition: legend1.C:17
A point of a parabola.
double Y() const
Accessor to the y (second) coordinate.
Double_t y[n]
Definition: legend1.C:17