Logo ROOT  
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
13namespace ROOT {
14
15namespace Minuit2 {
16
17class MinimumState;
18class MnUserParameterState;
19
21
22public:
23 MnTraceObject(int parNumber = -1) : fUserState(0), fParNumber(parNumber) {}
24
25 virtual ~MnTraceObject() {}
26
27 virtual void Init(const MnUserParameterState &state) { fUserState = &state; }
28
29 virtual void operator()(int i, const MinimumState &state);
30
31 const MnUserParameterState &UserState() const { return *fUserState; }
32
33 void SetParNumber(int number) { fParNumber = number; }
34
35 int ParNumber() const { return fParNumber; }
36
37private:
40};
41
42} // namespace Minuit2
43} // namespace ROOT
44
45#endif // ROOT_Minuit2_MnTraceIter
MinimumState keeps the information (position, Gradient, 2nd deriv, etc) after one minimization step (...
Definition: MinimumState.h:27
void SetParNumber(int number)
Definition: MnTraceObject.h:33
virtual void operator()(int i, const MinimumState &state)
virtual void Init(const MnUserParameterState &state)
Definition: MnTraceObject.h:27
const MnUserParameterState & UserState() const
Definition: MnTraceObject.h:31
const MnUserParameterState * fUserState
Definition: MnTraceObject.h:38
MnTraceObject(int parNumber=-1)
Definition: MnTraceObject.h:23
class which holds the external user and/or internal Minuit representation of the parameters and error...
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.