ROOT
master
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
13
namespace
ROOT
{
14
15
namespace
Minuit2 {
16
17
/**
18
19
A point in x-y.
20
21
@author Fred James and Matthias Winkler; comments added by Andras Zsenei
22
and Lorenzo Moneta
23
24
@ingroup Minuit
25
26
*/
27
28
class
MnPoint
{
29
30
public
:
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
43
private
:
44
double
fX
;
45
double
fY
;
46
};
47
48
}
// namespace Minuit2
49
50
}
// namespace ROOT
51
52
#endif
// ROOT_Minuit2_MnPoint
ROOT::Minuit2::MnPoint
A point in x-y.
Definition
MnPoint.h:28
ROOT::Minuit2::MnPoint::X
double X() const
Get the x (first) coordinate.
Definition
MnPoint.h:38
ROOT::Minuit2::MnPoint::MnPoint
MnPoint(double x, double y)
Initializes the point with its coordinates.
Definition
MnPoint.h:35
ROOT::Minuit2::MnPoint::fX
double fX
Definition
MnPoint.h:44
ROOT::Minuit2::MnPoint::fY
double fY
Definition
MnPoint.h:45
ROOT::Minuit2::MnPoint::Y
double Y() const
Get the y (second) coordinate.
Definition
MnPoint.h:41
y
Double_t y[n]
Definition
legend1.C:17
x
Double_t x[n]
Definition
legend1.C:17
ROOT
Definition
EExecutionPolicy.hxx:4
math
minuit2
inc
Minuit2
MnPoint.h
ROOT master - Reference Guide Generated on Mon Sep 22 2025 04:32:17 (GVA Time) using Doxygen 1.10.0