#include "TH2D.h"#include "TF2.h"#include "TCanvas.h"#include "TStyle.h"#include "TRandom3.h"#include "TVirtualFitter.h"#include "TList.h"#include <vector>#include <map>#include <iostream>Go to the source code of this file.
Functions | |
| double | gauss2D (double *x, double *par) |
| double | my2Dfunc (double *x, double *par) |
| void | myFcn (Int_t &, Double_t *, Double_t &fval, Double_t *p, Int_t) |
| void | FillHisto (TH2D *h, int n, double *p) |
| int | TwoHistoFit2D (bool global=true) |
Variables | |
| std::vector< std::pair< double, double > > | coords |
| std::vector< double > | values |
| std::vector< double > | errors |
| TRandom3 | rndm |
Definition at line 49 of file TwoHistoFit2D.C.
References h, i, TRandom::Rannor(), TRandom3::Rndm(), rndm, x, and y.
| int TwoHistoFit2D | ( | bool | global = true |
) |
Definition at line 85 of file TwoHistoFit2D.C.
References TList::Add(), c1, TCanvas::cd(), coords, TPad::Divide(), TH1::Draw(), errors, TVirtualFitter::ExecuteCommand(), FillHisto(), TH1::Fit(), TVirtualFitter::Fitter(), func(), TAxis::GetBinCenter(), TH2D::GetBinContent(), TH1::GetBinError(), TH1::GetListOfFunctions(), TH1::GetNbinsX(), TH1::GetNbinsY(), TVirtualFitter::GetParameter(), TVirtualFitter::GetParError(), TVirtualFitter::GetStats(), TH1::GetXaxis(), TH1::GetYaxis(), gPad, gStyle, h1, h2, i, my2Dfunc(), myFcn(), TH1::Scale(), TVirtualFitter::SetDefaultFitter(), TVirtualFitter::SetFCN(), TStyle::SetOptFit(), TVirtualFitter::SetParameter(), TStyle::SetStatY(), and TH1::Sumw2().
Definition at line 31 of file TwoHistoFit2D.C.
Referenced by TEvePolygonSetProjectedGL::DirectDraw(), ROOT::Fit::Init2DGaus(), myFcn(), translate_array(), and TwoHistoFit2D().
Definition at line 33 of file TwoHistoFit2D.C.
Referenced by TFoam::CheckAll(), TMVA::PDEFoam::CheckAll(), fitLinear2(), TH1::LabelsDeflate(), TH1::LabelsInflate(), TProfile::LabelsOption(), TH1::LabelsOption(), TProfile2D::LabelsOption(), limit(), PyROOT::mp_call(), myFcn(), TH1::RebinAxis(), ROOT::Math::DistSampler::SampleBins(), TestPct(), and TwoHistoFit2D().
Definition at line 48 of file TwoHistoFit2D.C.
Definition at line 32 of file TwoHistoFit2D.C.
1.5.1