#include "THnSparse.h"#include "TH2.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 "TRandom2.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 | gaus1D (double *x, double *p) | 
| 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 | fillSparse (THnSparse *s, TF1 *f, int nEvents=5) | 
| void | DoFit (THnSparse *s, TF1 *f, ROOT::Fit::BinData &bd) | 
| void | fitSparse1D () | 
| void | fitSparse2D () | 
| void | fitSparse3D () | 
| int | main (int argc, char **argv) | 
Variables | |
| const bool | __DRAW__ = 1 | 
| TRandom2 | r (17) | 
| Int_t | bsize [] = { 10, 10, 10 } | 
| Double_t | xmin [] = { 0., 0., 0. } | 
| Double_t | xmax [] = { 10., 10., 10. } | 
| void DoFit | ( | THnSparse * | s, | |
| TF1 * | f, | |||
| ROOT::Fit::BinData & | bd | |||
| ) | 
Definition at line 161 of file SparseFit4.cxx.
References ROOT::Fit::Fitter::Config(), d, ROOT::Fit::FillData(), ROOT::Fit::DataOptions::fIntegral, ROOT::Fit::DataOptions::fUseEmpty, ROOT::Fit::Fitter::LikelihoodFit(), ROOT::Fit::Fitter::Result(), s, xmax, and xmin.
Referenced by fitSparse2D(), fitSparse3D(), G__G__FitPanel_381_0_46(), minuit2FitBench(), and minuit2FitBench2D().
Definition at line 147 of file SparseFit4.cxx.
References gRandom, i, nEvents, points, TRandom::Poisson(), s, value, xmax, and xmin.
Referenced by fitSparse1D().
| int findBin | ( | ROOT::Fit::BinData & | bd, | |
| const double * | x | |||
| ) | 
Definition at line 76 of file SparseFit4.cxx.
References copy(), E, ROOT::Math::fabs(), ROOT::Fit::BinData::GetPoint(), i, j, ROOT::Fit::BinData::NDim(), ROOT::Fit::BinData::NPoints(), and x1.
| void fitSparse1D | ( | ) | 
Definition at line 203 of file SparseFit4.cxx.
References bsize, d, ROOT::Fit::FillData(), fillSparse(), gaus1D(), s1, xmax, and xmin.
Referenced by main().
| void fitSparse2D | ( | ) | 
Definition at line 220 of file SparseFit4.cxx.
References bsize, DoFit(), TH1::Draw(), error, TH2::Fill(), gaus2D(), ROOT::Fit::BinData::GetPoint(), gRandom, h2, i, ROOT::Fit::BinData::NPoints(), points, TRandom::Poisson(), s1, value, x, xmax, xmin, and y.
Referenced by main().
| void fitSparse3D | ( | ) | 
Definition at line 35 of file SparseFit4.cxx.
References TMath::Gaus().
Referenced by fitSparse1D().
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) | 
Definition at line 297 of file SparseFit4.cxx.
References __DRAW__, fitSparse1D(), fitSparse2D(), fitSparse3D(), and TApplication::Run().
| ostream& operator<< | ( | ostream & | out, | |
| ROOT::Fit::BinData & | bd | |||
| ) | 
Definition at line 57 of file SparseFit4.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 100 of file SparseFit4.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 52 of file SparseFit4.cxx.
| const bool __DRAW__ = 1 | 
Definition at line 28 of file SparseFit4.cxx.
Definition at line 31 of file SparseFit4.cxx.
Referenced by TRootBrowserLite::AddToTree(), BDF_Face_Init(), BDF_Size_Request(), fitSparse1D(), fitSparse2D(), fitSparse3D(), FNT_Face_Init(), FNT_Size_Request(), TGFileBrowser::FormatFileInfo(), FormatToolTip(), FT_Match_Size(), FT_Open_Face(), FT_Select_Metrics(), XrdProofdProtocol::GetBuff(), TFTP::GetFile(), TGFileItem::Init(), TTree::OptimizeBaskets(), pcf_load_font(), PCF_Size_Request(), pclient(), pserv(), TGListView::SetDefaultColumnWidth(), sfnt_load_face(), testAddSparse(), TestMembers(), TestNeighbors(), TestRange(), TDirectoryFile::WriteObjectAny(), and TDirectoryFile::WriteTObject().
Definition at line 33 of file SparseFit4.cxx.
Definition at line 32 of file SparseFit4.cxx.
 1.5.1