Logo ROOT  
Reference Guide
BasicMinimumSeed.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_BasicMinimumSeed
11 #define ROOT_Minuit2_BasicMinimumSeed
12 
13 #include "Minuit2/MinimumState.h"
15 #include "Minuit2/MinimumError.h"
18 
19 #include "Minuit2/StackAllocator.h"
20 
21 namespace ROOT {
22 
23 namespace Minuit2 {
24 
25 // extern StackAllocator gStackAllocator;
26 
28 
29 public:
31  : fState(state), fTrafo(trafo), fValid(true)
32  {
33  }
34 
36 
37  BasicMinimumSeed(const BasicMinimumSeed &seed) : fState(seed.fState), fTrafo(seed.fTrafo), fValid(seed.fValid) {}
38 
40  {
41  fState = seed.fState;
42  fTrafo = seed.fTrafo;
43  fValid = seed.fValid;
44  return *this;
45  }
46 
47  void *operator new(size_t nbytes) { return StackAllocatorHolder::Get().Allocate(nbytes); }
48 
49  void operator delete(void *p, size_t /*nbytes*/) { StackAllocatorHolder::Get().Deallocate(p); }
50 
51  const MinimumState &State() const { return fState; }
52  const MinimumParameters &Parameters() const { return State().Parameters(); }
53  const MinimumError &Error() const { return State().Error(); };
54  const FunctionGradient &Gradient() const { return State().Gradient(); }
55  const MnUserTransformation &Trafo() const { return fTrafo; }
56  const MnMachinePrecision &Precision() const { return fTrafo.Precision(); }
57  double Fval() const { return State().Fval(); }
58  double Edm() const { return State().Edm(); }
59  unsigned int NFcn() const { return State().NFcn(); }
60  bool IsValid() const { return fValid; }
61 
62 private:
65  bool fValid;
66 };
67 
68 } // namespace Minuit2
69 
70 } // namespace ROOT
71 
72 #endif // ROOT_Minuit2_BasicMinimumSeed
ROOT::Minuit2::MinimumState::Edm
double Edm() const
Definition: MinimumState.h:57
ROOT::Minuit2::BasicMinimumSeed::Parameters
const MinimumParameters & Parameters() const
Definition: BasicMinimumSeed.h:52
ROOT::Minuit2::MinimumState
MinimumState keeps the information (position, Gradient, 2nd deriv, etc) after one minimization step (...
Definition: MinimumState.h:29
ROOT::Minuit2::BasicMinimumSeed::BasicMinimumSeed
BasicMinimumSeed(const BasicMinimumSeed &seed)
Definition: BasicMinimumSeed.h:37
ROOT::Minuit2::MinimumState::Gradient
const FunctionGradient & Gradient() const
Definition: MinimumState.h:55
ROOT::Minuit2::BasicMinimumSeed::fTrafo
MnUserTransformation fTrafo
Definition: BasicMinimumSeed.h:64
ROOT::Minuit2::MnUserTransformation::Precision
const MnMachinePrecision & Precision() const
forwarded interface
Definition: MnUserTransformation.h:117
MnUserTransformation.h
ROOT::Minuit2::StackAllocator::Deallocate
void Deallocate(void *p)
Definition: StackAllocator.h:103
ROOT::Minuit2::BasicMinimumSeed::BasicMinimumSeed
BasicMinimumSeed(const MinimumState &state, const MnUserTransformation &trafo)
Definition: BasicMinimumSeed.h:30
ROOT::Minuit2::MinimumState::NFcn
int NFcn() const
Definition: MinimumState.h:58
ROOT::Minuit2::FunctionGradient
Definition: FunctionGradient.h:21
ROOT::Minuit2::BasicMinimumSeed::NFcn
unsigned int NFcn() const
Definition: BasicMinimumSeed.h:59
ROOT::Minuit2::BasicMinimumSeed::operator=
BasicMinimumSeed & operator=(const BasicMinimumSeed &seed)
Definition: BasicMinimumSeed.h:39
ROOT::Minuit2::BasicMinimumSeed
Definition: BasicMinimumSeed.h:27
ROOT::Minuit2::BasicMinimumSeed::Error
const MinimumError & Error() const
Definition: BasicMinimumSeed.h:53
ROOT::Minuit2::MinimumParameters
Definition: MinimumParameters.h:21
FunctionGradient.h
ROOT::Minuit2::BasicMinimumSeed::Fval
double Fval() const
Definition: BasicMinimumSeed.h:57
ROOT::Minuit2::MinimumState::Error
const MinimumError & Error() const
Definition: MinimumState.h:54
ROOT::Minuit2::BasicMinimumSeed::fValid
bool fValid
Definition: BasicMinimumSeed.h:65
ROOT::Minuit2::BasicMinimumSeed::Precision
const MnMachinePrecision & Precision() const
Definition: BasicMinimumSeed.h:56
ROOT::Minuit2::MinimumState::Fval
double Fval() const
Definition: MinimumState.h:56
ROOT::Minuit2::MnMachinePrecision
Sets the relative floating point (double) arithmetic precision.
Definition: MnMachinePrecision.h:32
StackAllocator.h
ROOT::Minuit2::StackAllocator::Allocate
void * Allocate(size_t nBytes)
Definition: StackAllocator.h:71
ROOT::Minuit2::StackAllocatorHolder::Get
static StackAllocator & Get()
Definition: StackAllocator.h:223
ROOT::Minuit2::BasicMinimumSeed::State
const MinimumState & State() const
Definition: BasicMinimumSeed.h:51
ROOT::Minuit2::BasicMinimumSeed::fState
MinimumState fState
Definition: BasicMinimumSeed.h:63
ROOT::Minuit2::MnUserTransformation
class dealing with the transformation between user specified parameters (external) and internal param...
Definition: MnUserTransformation.h:38
ROOT::Minuit2::BasicMinimumSeed::Edm
double Edm() const
Definition: BasicMinimumSeed.h:58
ROOT::Minuit2::BasicMinimumSeed::IsValid
bool IsValid() const
Definition: BasicMinimumSeed.h:60
ROOT::Minuit2::MinimumError
MinimumError keeps the inv.
Definition: MinimumError.h:26
ROOT::Minuit2::MinimumState::Parameters
const MinimumParameters & Parameters() const
Definition: MinimumState.h:50
MinimumError.h
ROOT::Minuit2::BasicMinimumSeed::Gradient
const FunctionGradient & Gradient() const
Definition: BasicMinimumSeed.h:54
MinimumParameters.h
ROOT::Minuit2::BasicMinimumSeed::Trafo
const MnUserTransformation & Trafo() const
Definition: BasicMinimumSeed.h:55
ROOT::Minuit2::BasicMinimumSeed::~BasicMinimumSeed
~BasicMinimumSeed()
Definition: BasicMinimumSeed.h:35
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