Logo ROOT  
Reference Guide
BasicMinimumParameters.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_BasicMinimumParameters
11 #define ROOT_Minuit2_BasicMinimumParameters
12 
13 #include "Minuit2/MnMatrix.h"
14 
15 #include "Minuit2/StackAllocator.h"
16 
17 namespace ROOT {
18 
19 namespace Minuit2 {
20 
21 // extern StackAllocator gStackAllocator;
22 
24 
25 public:
26  BasicMinimumParameters(unsigned int n, double fval)
28  {
29  }
30 
31  BasicMinimumParameters(const MnAlgebraicVector &avec, double fval)
32  : fParameters(avec), fStepSize(avec.size()), fFVal(fval), fValid(true), fHasStep(false)
33  {
34  }
35 
36  BasicMinimumParameters(const MnAlgebraicVector &avec, const MnAlgebraicVector &dirin, double fval)
37  : fParameters(avec), fStepSize(dirin), fFVal(fval), fValid(true), fHasStep(true)
38  {
39  }
40 
42 
45  fHasStep(par.fHasStep)
46  {
47  }
48 
50  {
52  fStepSize = par.fStepSize;
53  fFVal = par.fFVal;
54  fValid = par.fValid;
55  fHasStep = par.fHasStep;
56  return *this;
57  }
58 
59  void *operator new(size_t nbytes) { return StackAllocatorHolder::Get().Allocate(nbytes); }
60 
61  void operator delete(void *p, size_t /*nbytes*/) { StackAllocatorHolder::Get().Deallocate(p); }
62 
63  const MnAlgebraicVector &Vec() const { return fParameters; }
64  const MnAlgebraicVector &Dirin() const { return fStepSize; }
65  double Fval() const { return fFVal; }
66  bool IsValid() const { return fValid; }
67  bool HasStepSize() const { return fHasStep; }
68 
69 private:
72  double fFVal;
73  bool fValid;
74  bool fHasStep;
75 };
76 
77 } // namespace Minuit2
78 
79 } // namespace ROOT
80 
81 #endif // ROOT_Minuit2_BasicMinimumParameters
n
const Int_t n
Definition: legend1.C:16
ROOT::Minuit2::BasicMinimumParameters
Definition: BasicMinimumParameters.h:23
ROOT::Minuit2::LAVector
Definition: LAVector.h:32
ROOT::Minuit2::BasicMinimumParameters::Fval
double Fval() const
Definition: BasicMinimumParameters.h:65
ROOT::Minuit2::BasicMinimumParameters::fValid
bool fValid
Definition: BasicMinimumParameters.h:73
ROOT::Minuit2::BasicMinimumParameters::BasicMinimumParameters
BasicMinimumParameters(unsigned int n, double fval)
Definition: BasicMinimumParameters.h:26
ROOT::Minuit2::StackAllocator::Deallocate
void Deallocate(void *p)
Definition: StackAllocator.h:103
MnMatrix.h
ROOT::Minuit2::BasicMinimumParameters::BasicMinimumParameters
BasicMinimumParameters(const MnAlgebraicVector &avec, double fval)
Definition: BasicMinimumParameters.h:31
ROOT::Minuit2::BasicMinimumParameters::fFVal
double fFVal
Definition: BasicMinimumParameters.h:72
ROOT::Minuit2::BasicMinimumParameters::operator=
BasicMinimumParameters & operator=(const BasicMinimumParameters &par)
Definition: BasicMinimumParameters.h:49
ROOT::Minuit2::BasicMinimumParameters::fHasStep
bool fHasStep
Definition: BasicMinimumParameters.h:74
ROOT::Minuit2::BasicMinimumParameters::fParameters
MnAlgebraicVector fParameters
Definition: BasicMinimumParameters.h:70
ROOT::Minuit2::BasicMinimumParameters::fStepSize
MnAlgebraicVector fStepSize
Definition: BasicMinimumParameters.h:71
ROOT::Minuit2::BasicMinimumParameters::HasStepSize
bool HasStepSize() const
Definition: BasicMinimumParameters.h:67
ROOT::Minuit2::BasicMinimumParameters::Dirin
const MnAlgebraicVector & Dirin() const
Definition: BasicMinimumParameters.h:64
StackAllocator.h
ROOT::Minuit2::BasicMinimumParameters::Vec
const MnAlgebraicVector & Vec() const
Definition: BasicMinimumParameters.h:63
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::BasicMinimumParameters::BasicMinimumParameters
BasicMinimumParameters(const BasicMinimumParameters &par)
Definition: BasicMinimumParameters.h:43
ROOT::Minuit2::BasicMinimumParameters::BasicMinimumParameters
BasicMinimumParameters(const MnAlgebraicVector &avec, const MnAlgebraicVector &dirin, double fval)
Definition: BasicMinimumParameters.h:36
ROOT
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...
Definition: EExecutionPolicy.hxx:4
ROOT::Minuit2::BasicMinimumParameters::~BasicMinimumParameters
~BasicMinimumParameters()
Definition: BasicMinimumParameters.h:41
ROOT::Minuit2::BasicMinimumParameters::IsValid
bool IsValid() const
Definition: BasicMinimumParameters.h:66