Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
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
18
20
21namespace ROOT {
22
23namespace Minuit2 {
24
25// extern StackAllocator gStackAllocator;
26
28
29public:
31 : fState(state), fTrafo(trafo), fValid(true)
32 {
33 }
34
36
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
62private:
65 bool fValid;
66};
67
68} // namespace Minuit2
69
70} // namespace ROOT
71
72#endif // ROOT_Minuit2_BasicMinimumSeed
const MnMachinePrecision & Precision() const
const MinimumParameters & Parameters() const
const FunctionGradient & Gradient() const
const MinimumError & Error() const
const MinimumState & State() const
const MnUserTransformation & Trafo() const
BasicMinimumSeed(const BasicMinimumSeed &seed)
BasicMinimumSeed(const MinimumState &state, const MnUserTransformation &trafo)
BasicMinimumSeed & operator=(const BasicMinimumSeed &seed)
MinimumError keeps the inv.
MinimumState keeps the information (position, Gradient, 2nd deriv, etc) after one minimization step (...
const MinimumError & Error() const
const MinimumParameters & Parameters() const
const FunctionGradient & Gradient() const
Sets the relative floating point (double) arithmetic precision.
class dealing with the transformation between user specified parameters (external) and internal param...
const MnMachinePrecision & Precision() const
forwarded interface
static StackAllocator & Get()
void * Allocate(size_t nBytes)
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...