#include "TROOT.h"#include "TBackCompFitter.h"#include "TMethodCall.h"#include "TInterpreter.h"#include "Math/Util.h"#include <iostream>#include <cassert>#include "Math/IParamFunction.h"#include "TH1.h"#include "TH2.h"#include "TH3.h"#include "TMath.h"#include "TGraph.h"#include "TGraphErrors.h"#include "TGraph2DErrors.h"#include "TMultiGraph.h"#include "HFitInterface.h"#include "Math/Minimizer.h"#include "Fit/BinData.h"#include "Fit/UnBinData.h"#include "Fit/PoissonLikelihoodFCN.h"#include "Fit/LogLikelihoodFCN.h"#include "Fit/Chi2FCN.h"#include "Fit/FcnAdapter.h"#include "TFitResult.h"Go to the source code of this file.
Functions | |
| ClassImp (TBackCompFitter) | |
| void | InteractiveFCNm2 (Int_t &npar, Double_t *gin, Double_t &f, Double_t *u, Int_t flag) |
| ClassImp | ( | TBackCompFitter | ) |
Backward compatible implementation of TVirtualFitter using the the class ROOT::Fit::Fitter. This class is created after fitting an histogram (TH1), TGraph or TTree and provides in addition to the methods of the TVirtualFitter hooks to access the fit result class (ROOT::Fit::FitResult), the fit configuration (ROOT::Fit::FitConfig) or the fit data (ROOT::Fit::FitData) using
TBackCompFitter * fitter = (TBackCompFitter *) TVirtualFitter::GetFitter(); ROOT::Fit::FitResult & result = fitter->GetFitResult(); result.Print(std::cout);
Methods for getting the confidence level or contours are also provided. Note that after a new calls to TH1::Fit (or similar) the class will be deleted and all reference to the FitResult, FitConfig or minimizer will be invalid. One could eventually copying the class before issuing a new fit to avoid deleting this information
Definition at line 724 of file TBackCompFitter.cxx.
References TVirtualFitter::GetFitter(), m, and result().
Referenced by TBackCompFitter::SetFCN().
1.5.1