#include "TH2.h"
#include "TH3.h"
#include "TF2.h"
#include "TF3.h"
#include "TCanvas.h"
#include "TApplication.h"
#include "TMath.h"
#include "Fit/SparseData.h"
#include "HFitInterface.h"
#include "Fit/Fitter.h"
#include "Math/WrappedMultiTF1.h"
#include "TRandom.h"
#include <iostream>
#include <iterator>
#include <algorithm>
#include <list>
#include <vector>
#include <cmath>
#include <cassert>
Go to the source code of this file.
Functions | |
double | gaus2D (double *x, double *p) |
double | gaus3D (double *x, double *p) |
double | pol2D (double *x, double *p) |
ostream & | operator<< (ostream &out, ROOT::Fit::BinData &bd) |
int | findBin (ROOT::Fit::BinData &bd, const double *x) |
bool | operator== (ROOT::Fit::BinData &bd1, ROOT::Fit::BinData &bd2) |
void | fit3DHist () |
void | fit2DHist () |
int | main (int argc, char **argv) |
Variables | |
const bool | __DRAW__ = 1 |
int findBin | ( | ROOT::Fit::BinData & | bd, | |
const double * | x | |||
) |
Definition at line 66 of file SparseFit3.cxx.
References copy(), E, ROOT::Math::fabs(), ROOT::Fit::BinData::GetPoint(), i, j, ROOT::Fit::BinData::NDim(), ROOT::Fit::BinData::NPoints(), and x1.
void fit2DHist | ( | ) |
Definition at line 263 of file SparseFit3.cxx.
References c, ROOT::Fit::Fitter::Config(), d, TH1::Draw(), error, TF1::Eval(), f2, TH2::Fill(), ROOT::Fit::FillData(), ROOT::Fit::DataOptions::fIntegral, ROOT::Fit::DataOptions::fUseEmpty, gaus2D(), TAxis::GetBinCenter(), TH1::GetNbinsX(), TH1::GetNbinsY(), ROOT::Fit::BinData::GetPoint(), TH1::GetXaxis(), TH1::GetYaxis(), gRandom, h1, h2, i, ROOT::Fit::Fitter::LikelihoodFit(), max, min, nbins, ROOT::Fit::BinData::NPoints(), TRandom::Poisson(), ROOT::Fit::Fitter::Result(), TH2D::SetBinContent(), TFormula::SetParameters(), value, x, and y.
void fit3DHist | ( | ) |
Definition at line 137 of file SparseFit3.cxx.
References c, ROOT::Fit::Fitter::Config(), d, TH1::Draw(), error, TF1::Eval(), TH2::Fill(), ROOT::Fit::FillData(), ROOT::Fit::DataOptions::fIntegral, ROOT::Fit::DataOptions::fUseEmpty, gaus3D(), TAxis::GetBinCenter(), TH1::GetNbinsX(), TH1::GetNbinsY(), TH1::GetNbinsZ(), ROOT::Fit::BinData::GetPoint(), TH1::GetXaxis(), TH1::GetYaxis(), TH1::GetZaxis(), gRandom, h1, h2, i, ROOT::Fit::Fitter::LikelihoodFit(), max, min, nbins, ROOT::Fit::BinData::NPoints(), TRandom::Poisson(), ROOT::Fit::Fitter::Result(), TH2D::SetBinContent(), TFormula::SetParameters(), value, x, and y.
Referenced by main().
Definition at line 35 of file SparseFit3.cxx.
References TMath::Gaus().
Referenced by fit3DHist(), and fitSparse3D().
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 452 of file SparseFit3.cxx.
References __DRAW__, fit3DHist(), and TApplication::Run().
ostream& operator<< | ( | ostream & | out, | |
ROOT::Fit::BinData & | bd | |||
) |
Definition at line 47 of file SparseFit3.cxx.
References error, ROOT::Fit::BinData::GetPoint(), i, j, ROOT::Fit::BinData::NDim(), ROOT::Fit::BinData::NPoints(), value, and x.
bool operator== | ( | ROOT::Fit::BinData & | bd1, | |
ROOT::Fit::BinData & | bd2 | |||
) |
Definition at line 90 of file SparseFit3.cxx.
References copy(), E, equals(), ROOT::Math::fabs(), findBin(), ROOT::Fit::BinData::GetPoint(), i, j, ROOT::Fit::BinData::NDim(), ROOT::Fit::BinData::NPoints(), x1, and x2.
Definition at line 42 of file SparseFit3.cxx.
const bool __DRAW__ = 1 |
Definition at line 28 of file SparseFit3.cxx.