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 
23 
24 class ContoursError {
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 
30  ~ContoursError() {}
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 
34  ContoursError& operator()(const ContoursError& cont) {
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
ROOT::Minuit2::MinosError::Min
double Min() const
Definition: MinosError.h:93
ROOT::Minuit2::ContoursError::~ContoursError
~ContoursError()
Definition: ContoursError.h:42
ROOT::Minuit2::ContoursError::fYMinos
MinosError fYMinos
Definition: ContoursError.h:89
ROOT::Minuit2::ContoursError::Ypar
unsigned int Ypar() const
Definition: ContoursError.h:69
ROOT::Minuit2::ContoursError::fParX
unsigned int fParX
Definition: ContoursError.h:85
ROOT::Minuit2::ContoursError::XMinos
std::pair< double, double > XMinos() const
Definition: ContoursError.h:60
ROOT::Minuit2::ContoursError::operator()
const std::vector< std::pair< double, double > > & operator()() const
Definition: ContoursError.h:56
ROOT::Minuit2::ContoursError
Definition: ContoursError.h:32
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:40
ROOT::Minuit2::ContoursError::fParY
unsigned int fParY
Definition: ContoursError.h:86
ROOT::Minuit2::ContoursError::fXMinos
MinosError fXMinos
Definition: ContoursError.h:88
ROOT::Minuit2::ContoursError::fPoints
std::vector< std::pair< double, double > > fPoints
Definition: ContoursError.h:87
ROOT::Minuit2::ContoursError::XMinosError
const MinosError & XMinosError() const
Definition: ContoursError.h:71
ROOT::Minuit2::MinosError
Class holding the result of Minos (lower and upper values) for a specific parameter.
Definition: MinosError.h:34
ROOT::Minuit2::ContoursError::YMinosError
const MinosError & YMinosError() const
Definition: ContoursError.h:75
ROOT::Minuit2::ContoursError::XMin
double XMin() const
Definition: ContoursError.h:80
ROOT::Minuit2::ContoursError::fNFcn
unsigned int fNFcn
Definition: ContoursError.h:90
ROOT::Minuit2::ContoursError::YMinos
std::pair< double, double > YMinos() const
Definition: ContoursError.h:64
MinosError.h
ROOT::Minuit2::ContoursError::YMin
double YMin() const
Definition: ContoursError.h:81
ROOT::Minuit2::ContoursError::NFcn
unsigned int NFcn() const
Definition: ContoursError.h:79
points
point * points
Definition: X3DBuffer.c:22
ROOT::Minuit2::ContoursError::Xpar
unsigned int Xpar() const
Definition: ContoursError.h:68
ROOT
VSD Structures.
Definition: StringConv.hxx:21
MnConfig.h