Logo ROOT   master
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 
23 
25 
26 public:
27 
28  ContoursError(unsigned int parx, unsigned int pary, const std::vector<std::pair<double,double> >& points, const MinosError& xmnos, const MinosError& ymnos, unsigned int nfcn) : fParX(parx), fParY(pary), fPoints(points), fXMinos(xmnos), fYMinos(ymnos), fNFcn(nfcn) {}
29 
31 
32  ContoursError(const ContoursError& cont) : fParX(cont.fParX), fParY(cont.fParY), fPoints(cont.fPoints), fXMinos(cont.fXMinos), fYMinos(cont.fYMinos), fNFcn(cont.fNFcn) {}
33 
35  fParX = cont.fParX;
36  fParY = cont.fParY;
37  fPoints = cont.fPoints;
38  fXMinos = cont.fXMinos;
39  fYMinos = cont.fYMinos;
40  fNFcn = cont.fNFcn;
41  return *this;
42  }
43 
44  const std::vector<std::pair<double,double> >& operator()() const {
45  return fPoints;
46  }
47 
48  std::pair<double,double> XMinos() const {
49  return fXMinos();
50  }
51 
52  std::pair<double,double> YMinos() const {
53  return fYMinos();
54  }
55 
56  unsigned int Xpar() const {return fParX;}
57  unsigned int Ypar() const {return fParY;}
58 
59  const MinosError& XMinosError() const {
60  return fXMinos;
61  }
62 
63  const MinosError& YMinosError() const {
64  return fYMinos;
65  }
66 
67  unsigned int NFcn() const {return fNFcn;}
68  double XMin() const {return fXMinos.Min();}
69  double YMin() const {return fYMinos.Min();}
70 
71 private:
72 
73  unsigned int fParX;
74  unsigned int fParY;
75  std::vector<std::pair<double,double> > fPoints;
78  unsigned int fNFcn;
79 };
80 
81  } // namespace Minuit2
82 
83 } // namespace ROOT
84 
85 #endif // ROOT_Minuit2_ContoursError
Returns the available number of logical cores.
Definition: RNumpyDS.hxx:30
unsigned int Xpar() const
Definition: ContoursError.h:56
const MinosError & YMinosError() const
Definition: ContoursError.h:63
std::pair< double, double > YMinos() const
Definition: ContoursError.h:52
const MinosError & XMinosError() const
Definition: ContoursError.h:59
std::vector< std::pair< double, double > > fPoints
Definition: ContoursError.h:75
const std::vector< std::pair< double, double > > & operator()() const
Definition: ContoursError.h:44
point * points
Definition: X3DBuffer.c:22
Class holding the result of Minos (lower and upper values) for a specific parameter.
Definition: MinosError.h:25
ContoursError & operator()(const ContoursError &cont)
Definition: ContoursError.h:34
ContoursError(const ContoursError &cont)
Definition: ContoursError.h:32
std::pair< double, double > XMinos() const
Definition: ContoursError.h:48
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:28
double Min() const
Definition: MinosError.h:71
unsigned int NFcn() const
Definition: ContoursError.h:67
unsigned int Ypar() const
Definition: ContoursError.h:57