Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
MnPoint.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_MnPoint
11#define ROOT_Minuit2_MnPoint
12
13namespace ROOT {
14
15namespace Minuit2 {
16
17/**
18
19A point in x-y.
20
21@author Fred James and Matthias Winkler; comments added by Andras Zsenei
22and Lorenzo Moneta
23
24@ingroup Minuit
25
26 */
27
28class MnPoint {
29
30public:
31 /// Initializes the point with its coordinates.
32 ///
33 /// @param x the x (first) coordinate of the point.
34 /// @param y the y (second) coordinate of the point.
35 MnPoint(double x, double y) : fX(x), fY(y) {}
36
37 /// Get the x (first) coordinate.
38 double X() const { return fX; }
39
40 /// Get the y (second) coordinate.
41 double Y() const { return fY; }
42
43private:
44 double fX;
45 double fY;
46};
47
48} // namespace Minuit2
49
50} // namespace ROOT
51
52#endif // ROOT_Minuit2_MnPoint
A point in x-y.
Definition MnPoint.h:28
double X() const
Get the x (first) coordinate.
Definition MnPoint.h:38
MnPoint(double x, double y)
Initializes the point with its coordinates.
Definition MnPoint.h:35
double Y() const
Get the y (second) coordinate.
Definition MnPoint.h:41
Double_t y[n]
Definition legend1.C:17
Double_t x[n]
Definition legend1.C:17
Namespace for new ROOT classes and functions.