Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
13namespace ROOT {
14
15namespace Minuit2 {
16
17/**
18
19A point of a parabola.
20
21<p>
22
23????!!!! in reality it is just a general point in two dimensional space,
24there is nothing that would indicate, that it belongs to a parabola.
25This class defines simpy an (x,y) pair!!!!
26
27@author Fred James and Matthias Winkler; comments added by Andras Zsenei
28and Lorenzo Moneta
29
30@ingroup Minuit
31
32\todo Should it be called MnParabolaPoint or just Point?
33
34 */
35
37
38public:
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
48 MnParabolaPoint(double x, double y) : fX(x), fY(y) {}
49
51
52 /**
53
54 Accessor to the x (first) coordinate.
55
56 @return the x (first) coordinate of the point.
57
58 */
59
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
70 double Y() const { return fY; }
71
72private:
73 double fX;
74 double fY;
75};
76
77} // namespace Minuit2
78
79} // namespace ROOT
80
81#endif // ROOT_Minuit2_MnParabolaPoint
MnParabolaPoint(double x, double y)
Initializes the point with its coordinates.
double Y() const
Accessor to the y (second) coordinate.
double X() const
Accessor to the x (first) coordinate.
Double_t y[n]
Definition legend1.C:17
Double_t x[n]
Definition legend1.C:17
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...