Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TMinuit2TraceObject.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/minuit2:$Id$
0002 // Author:  L. Moneta 2012
0003 
0004 /**********************************************************************
0005  *                                                                    *
0006  * Copyright (c) 2012 LCG ROOT Math team,  CERN/PH-SFT                *
0007  *                                                                    *
0008  **********************************************************************/
0009 
0010 #ifndef ROOT_TMinuit2TraceObject
0011 #define ROOT_TMinuit2TraceObject
0012 
0013 #include "TNamed.h"
0014 #include "Minuit2/MnTraceObject.h"
0015 
0016 class TH1;
0017 class TVirtualPad;
0018 class TList;
0019 
0020 namespace ROOT {
0021 
0022 namespace Minuit2 {
0023 
0024 class MinimumState;
0025 class MnUserParameterState;
0026 
0027 } // namespace Minuit2
0028 } // namespace ROOT
0029 
0030 class TMinuit2TraceObject : public ROOT::Minuit2::MnTraceObject, public TNamed {
0031 
0032 public:
0033    TMinuit2TraceObject(int parNumber = -1);
0034 
0035    ~TMinuit2TraceObject() override;
0036 
0037    void Init(const ROOT::Minuit2::MnUserParameterState &state) override;
0038 
0039    void operator()(int i, const ROOT::Minuit2::MinimumState &state) override;
0040 
0041    ClassDefOverride(TMinuit2TraceObject, 0) // Example Trace Object for Minuit2
0042 
0043       private :
0044 
0045       int fIterOffset;      // offset in iteration in case of combined minimizers
0046    TH1 *fHistoFval;         // Function value histogram
0047    TH1 *fHistoEdm;          // Edm histogram
0048    TList *fHistoParList;    // list of parameter values histograms
0049    TVirtualPad *fOldPad;    // old existing current pad
0050    TVirtualPad *fMinuitPad; // new pad with trace histograms
0051 };
0052 
0053 #endif // ROOT_TMinuit2TraceObject