Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t points
const MinosError & YMinosError() const
unsigned int NFcn() const
ContoursError(const ContoursError &cont)
unsigned int Ypar() const
std::pair< double, double > XMinos() const
unsigned int Xpar() const
const std::vector< std::pair< double, double > > & operator()() const
std::vector< std::pair< double, double > > fPoints
ContoursError & operator()(const ContoursError &cont)
std::pair< double, double > YMinos() const
ContoursError(unsigned int parx, unsigned int pary, const std::vector< std::pair< double, double > > &points, const MinosError &xmnos, const MinosError &ymnos, unsigned int nfcn)
const MinosError & XMinosError() const
Class holding the result of Minos (lower and upper values) for a specific parameter.
Definition MinosError.h:25
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.