Logo ROOT   6.13/01
Reference Guide
MnTraceObject.h
Go to the documentation of this file.
1 // @(#)root/minuit2:$Id$
2 // Author: L. Moneta 2012
3 
4 /**********************************************************************
5  * *
6  * Copyright (c) 2012 LCG ROOT Math team, CERN/PH-SFT *
7  * *
8  **********************************************************************/
9 
10 #ifndef ROOT_Minuit2_MnTraceObject
11 #define ROOT_Minuit2_MnTraceObject
12 
13 namespace ROOT {
14 
15  namespace Minuit2 {
16 
17  class MinimumState;
18  class MnUserParameterState;
19 
20  class MnTraceObject {
21 
22  public:
23 
24  MnTraceObject(int parNumber = -1) :
25  fUserState(0),
26  fParNumber(parNumber) {}
27 
28  virtual ~MnTraceObject() {}
29 
30  virtual void Init(const MnUserParameterState & state) { fUserState = &state; }
31 
32  virtual void operator() (int i, const MinimumState & state);
33 
34  const MnUserParameterState & UserState() const { return *fUserState; }
35 
36  void SetParNumber(int number) { fParNumber = number; }
37 
38  int ParNumber() const { return fParNumber; }
39 
40  private:
41 
44  };
45 
46  } // namespace Minuit2
47 } // namespace ROOT
48 
49 #endif // ROOT_Minuit2_MnTraceIter
virtual void Init(const MnUserParameterState &state)
Definition: MnTraceObject.h:30
Namespace for new ROOT classes and functions.
Definition: TFoamSampler.h:19
virtual void operator()(int i, const MinimumState &state)
class which holds the external user and/or internal Minuit representation of the parameters and error...
void SetParNumber(int number)
Definition: MnTraceObject.h:36
const MnUserParameterState & UserState() const
Definition: MnTraceObject.h:34
const MnUserParameterState * fUserState
Definition: MnTraceObject.h:42
MnTraceObject(int parNumber=-1)
Definition: MnTraceObject.h:24
MinimumState keeps the information (position, Gradient, 2nd deriv, etc) after one minimization step (...
Definition: MinimumState.h:29