Logo ROOT  
Reference Guide
MinimumSeed.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_MinimumSeed
11 #define ROOT_Minuit2_MinimumSeed
12 
13 #include "Minuit2/MinimumState.h"
15 #include "Minuit2/MinimumError.h"
18 
19 namespace ROOT {
20 
21 namespace Minuit2 {
22 
23 class MinimumSeed {
24 
25 public:
26  MinimumSeed(const MinimumState &state, const MnUserTransformation &trafo) : fPtr{new Data{state, trafo, true}} {}
27 
28  const MinimumState &State() const { return fPtr->fState; }
29  const MinimumParameters &Parameters() const { return State().Parameters(); }
30  const MinimumError &Error() const { return State().Error(); };
31  const FunctionGradient &Gradient() const { return State().Gradient(); }
32  const MnUserTransformation &Trafo() const { return fPtr->fTrafo; }
33  const MnMachinePrecision &Precision() const { return Trafo().Precision(); }
34  double Fval() const { return State().Fval(); }
35  double Edm() const { return State().Edm(); }
36  unsigned int NFcn() const { return State().NFcn(); }
37  bool IsValid() const { return fPtr->fValid; }
38 
39 private:
40  struct Data {
43  bool fValid;
44  };
45 
46  std::shared_ptr<Data> fPtr;
47 };
48 
49 } // namespace Minuit2
50 
51 } // namespace ROOT
52 
53 #endif // ROOT_Minuit2_MinimumSeed
ROOT::Minuit2::MinimumState::Edm
double Edm() const
Definition: MinimumState.h:65
ROOT::Minuit2::MinimumState
MinimumState keeps the information (position, Gradient, 2nd deriv, etc) after one minimization step (...
Definition: MinimumState.h:27
ROOT::Minuit2::MinimumSeed::MinimumSeed
MinimumSeed(const MinimumState &state, const MnUserTransformation &trafo)
Definition: MinimumSeed.h:26
ROOT::Minuit2::MinimumState::Gradient
const FunctionGradient & Gradient() const
Definition: MinimumState.h:63
ROOT::Minuit2::MnUserTransformation::Precision
const MnMachinePrecision & Precision() const
forwarded interface
Definition: MnUserTransformation.h:117
MnUserTransformation.h
ROOT::Minuit2::MinimumSeed::Data::fState
MinimumState fState
Definition: MinimumSeed.h:41
ROOT::Minuit2::MinimumState::NFcn
int NFcn() const
Definition: MinimumState.h:66
ROOT::Minuit2::FunctionGradient
Definition: FunctionGradient.h:21
ROOT::Minuit2::MinimumSeed::Gradient
const FunctionGradient & Gradient() const
Definition: MinimumSeed.h:31
ROOT::Minuit2::MinimumSeed::fPtr
std::shared_ptr< Data > fPtr
Definition: MinimumSeed.h:46
ROOT::Minuit2::MinimumParameters
Definition: MinimumParameters.h:19
FunctionGradient.h
ROOT::Minuit2::MinimumState::Error
const MinimumError & Error() const
Definition: MinimumState.h:62
ROOT::Minuit2::MinimumSeed::Error
const MinimumError & Error() const
Definition: MinimumSeed.h:30
ROOT::Minuit2::MinimumState::Fval
double Fval() const
Definition: MinimumState.h:64
ROOT::Minuit2::MnMachinePrecision
Sets the relative floating point (double) arithmetic precision.
Definition: MnMachinePrecision.h:32
ROOT::Minuit2::MinimumSeed::Precision
const MnMachinePrecision & Precision() const
Definition: MinimumSeed.h:33
ROOT::Minuit2::MinimumSeed::Data::fTrafo
MnUserTransformation fTrafo
Definition: MinimumSeed.h:42
ROOT::Minuit2::MinimumSeed::Data::fValid
bool fValid
Definition: MinimumSeed.h:43
ROOT::Minuit2::MinimumSeed::Edm
double Edm() const
Definition: MinimumSeed.h:35
ROOT::Minuit2::MinimumSeed::NFcn
unsigned int NFcn() const
Definition: MinimumSeed.h:36
ROOT::Minuit2::MnUserTransformation
class dealing with the transformation between user specified parameters (external) and internal param...
Definition: MnUserTransformation.h:38
ROOT::Minuit2::MinimumSeed::IsValid
bool IsValid() const
Definition: MinimumSeed.h:37
ROOT::Minuit2::MinimumSeed::Data
Definition: MinimumSeed.h:40
ROOT::Minuit2::MinimumError
MinimumError keeps the inv.
Definition: MinimumError.h:28
ROOT::Minuit2::MinimumState::Parameters
const MinimumParameters & Parameters() const
Definition: MinimumState.h:58
MinimumError.h
ROOT::Minuit2::MinimumSeed::Parameters
const MinimumParameters & Parameters() const
Definition: MinimumSeed.h:29
MinimumParameters.h
ROOT::Minuit2::MinimumSeed::Fval
double Fval() const
Definition: MinimumSeed.h:34
ROOT
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
Definition: EExecutionPolicy.hxx:4
MinimumState.h
ROOT::Minuit2::MinimumSeed
Definition: MinimumSeed.h:23
ROOT::Minuit2::MinimumSeed::State
const MinimumState & State() const
Definition: MinimumSeed.h:28
ROOT::Minuit2::MinimumSeed::Trafo
const MnUserTransformation & Trafo() const
Definition: MinimumSeed.h:32