Logo ROOT  
Reference Guide
ContoursError.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_ContoursError
11#define ROOT_Minuit2_ContoursError
12
13#include "Minuit2/MnConfig.h"
14#include "Minuit2/MinosError.h"
15
16#include <vector>
17#include <utility>
18
19namespace ROOT {
20
21namespace Minuit2 {
22
24
25public:
26 ContoursError(unsigned int parx, unsigned int pary, const std::vector<std::pair<double, double>> &points,
27 const MinosError &xmnos, const MinosError &ymnos, unsigned int nfcn)
28 : fParX(parx), fParY(pary), fPoints(points), fXMinos(xmnos), fYMinos(ymnos), fNFcn(nfcn)
29 {
30 }
31
33
35 : fParX(cont.fParX), fParY(cont.fParY), fPoints(cont.fPoints), fXMinos(cont.fXMinos), fYMinos(cont.fYMinos),
36 fNFcn(cont.fNFcn)
37 {
38 }
39
41 {
42 fParX = cont.fParX;
43 fParY = cont.fParY;
44 fPoints = cont.fPoints;
45 fXMinos = cont.fXMinos;
46 fYMinos = cont.fYMinos;
47 fNFcn = cont.fNFcn;
48 return *this;
49 }
50
51 const std::vector<std::pair<double, double>> &operator()() const { return fPoints; }
52
53 std::pair<double, double> XMinos() const { return fXMinos(); }
54
55 std::pair<double, double> YMinos() const { return fYMinos(); }
56
57 unsigned int Xpar() const { return fParX; }
58 unsigned int Ypar() const { return fParY; }
59
60 const MinosError &XMinosError() const { return fXMinos; }
61
62 const MinosError &YMinosError() const { return fYMinos; }
63
64 unsigned int NFcn() const { return fNFcn; }
65 double XMin() const { return fXMinos.Min(); }
66 double YMin() const { return fYMinos.Min(); }
67
68private:
69 unsigned int fParX;
70 unsigned int fParY;
71 std::vector<std::pair<double, double>> fPoints;
74 unsigned int fNFcn;
75};
76
77} // namespace Minuit2
78
79} // namespace ROOT
80
81#endif // ROOT_Minuit2_ContoursError
point * points
Definition: X3DBuffer.c:22
const MinosError & YMinosError() const
Definition: ContoursError.h:62
unsigned int NFcn() const
Definition: ContoursError.h:64
ContoursError(const ContoursError &cont)
Definition: ContoursError.h:34
unsigned int Ypar() const
Definition: ContoursError.h:58
std::pair< double, double > XMinos() const
Definition: ContoursError.h:53
unsigned int Xpar() const
Definition: ContoursError.h:57
const std::vector< std::pair< double, double > > & operator()() const
Definition: ContoursError.h:51
std::vector< std::pair< double, double > > fPoints
Definition: ContoursError.h:71
ContoursError & operator()(const ContoursError &cont)
Definition: ContoursError.h:40
std::pair< double, double > YMinos() const
Definition: ContoursError.h:55
ContoursError(unsigned int parx, unsigned int pary, const std::vector< std::pair< double, double > > &points, const MinosError &xmnos, const MinosError &ymnos, unsigned int nfcn)
Definition: ContoursError.h:26
const MinosError & XMinosError() const
Definition: ContoursError.h:60
Class holding the result of Minos (lower and upper values) for a specific parameter.
Definition: MinosError.h:25
double Min() const
Definition: MinosError.h:86
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...