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 
19 namespace ROOT {
20 
21 namespace Minuit2 {
22 
24 
25 public:
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 
68 private:
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
ROOT::Minuit2::MinosError::Min
double Min() const
Definition: MinosError.h:86
ROOT::Minuit2::ContoursError::~ContoursError
~ContoursError()
Definition: ContoursError.h:32
ROOT::Minuit2::ContoursError::XMinos
std::pair< double, double > XMinos() const
Definition: ContoursError.h:53
ROOT::Minuit2::ContoursError::fYMinos
MinosError fYMinos
Definition: ContoursError.h:73
ROOT::Minuit2::ContoursError::Ypar
unsigned int Ypar() const
Definition: ContoursError.h:58
ROOT::Minuit2::ContoursError::fParX
unsigned int fParX
Definition: ContoursError.h:69
ROOT::Minuit2::ContoursError::YMinos
std::pair< double, double > YMinos() const
Definition: ContoursError.h:55
ROOT::Minuit2::ContoursError::fPoints
std::vector< std::pair< double, double > > fPoints
Definition: ContoursError.h:71
ROOT::Minuit2::ContoursError
Definition: ContoursError.h:23
ROOT::Minuit2::ContoursError::operator()
const std::vector< std::pair< double, double > > & operator()() const
Definition: ContoursError.h:51
ROOT::Minuit2::ContoursError::fParY
unsigned int fParY
Definition: ContoursError.h:70
ROOT::Minuit2::ContoursError::fXMinos
MinosError fXMinos
Definition: ContoursError.h:72
ROOT::Minuit2::ContoursError::XMinosError
const MinosError & XMinosError() const
Definition: ContoursError.h:60
ROOT::Minuit2::ContoursError::ContoursError
ContoursError(const ContoursError &cont)
Definition: ContoursError.h:34
ROOT::Minuit2::MinosError
Class holding the result of Minos (lower and upper values) for a specific parameter.
Definition: MinosError.h:25
ROOT::Minuit2::ContoursError::YMinosError
const MinosError & YMinosError() const
Definition: ContoursError.h:62
ROOT::Minuit2::ContoursError::XMin
double XMin() const
Definition: ContoursError.h:65
ROOT::Minuit2::ContoursError::fNFcn
unsigned int fNFcn
Definition: ContoursError.h:74
MinosError.h
ROOT::Minuit2::ContoursError::operator()
ContoursError & operator()(const ContoursError &cont)
Definition: ContoursError.h:40
ROOT::Minuit2::ContoursError::YMin
double YMin() const
Definition: ContoursError.h:66
ROOT::Minuit2::ContoursError::NFcn
unsigned int NFcn() const
Definition: ContoursError.h:64
points
point * points
Definition: X3DBuffer.c:22
ROOT::Minuit2::ContoursError::Xpar
unsigned int Xpar() const
Definition: ContoursError.h:57
ROOT::Minuit2::ContoursError::ContoursError
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
ROOT
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
Definition: EExecutionPolicy.hxx:4
MnConfig.h