ROOT   6.08/07 Reference Guide
SparseFit4.cxx File Reference
#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>
Include dependency graph for SparseFit4.cxx:

## Functions

void DoFit (THnSparse *s, TF1 *f, ROOT::Fit::BinData &bd)

void fillSparse (THnSparse *s, TF1 *f, int nEvents=5)

int findBin (ROOT::Fit::BinData &bd, const double *x)

void fitSparse1D ()

void fitSparse2D ()

void fitSparse3D ()

double gaus1D (double *x, double *p)

double gaus2D (double *x, double *p)

double gaus3D (double *x, double *p)

int main (int argc, char **argv)

ostream & operator<< (ostream &out, ROOT::Fit::BinData &bd)

bool operator== (ROOT::Fit::BinData &bd1, ROOT::Fit::BinData &bd2)

double pol2D (double *x, double *p)

## Variables

Int_t bsize [] = { 10, 10, 10 }

TRandom2 r (17)

bool showGraphics = false

Double_t x_max [] = { 10., 10., 10. }

Double_t x_min [] = { 0., 0., 0. }

## ◆ DoFit()

 void DoFit ( THnSparse * s, TF1 * f, ROOT::Fit::BinData & bd )

Definition at line 162 of file SparseFit4.cxx.

## ◆ fillSparse()

 void fillSparse ( THnSparse * s, TF1 * f, int nEvents = 5 )

Definition at line 147 of file SparseFit4.cxx.

## ◆ findBin()

 int findBin ( ROOT::Fit::BinData & bd, const double * x )

Definition at line 76 of file SparseFit4.cxx.

## ◆ fitSparse1D()

 void fitSparse1D ( )

Definition at line 204 of file SparseFit4.cxx.

## ◆ fitSparse2D()

 void fitSparse2D ( )

Definition at line 224 of file SparseFit4.cxx.

## ◆ fitSparse3D()

 void fitSparse3D ( )

Definition at line 272 of file SparseFit4.cxx.

## ◆ gaus1D()

 double gaus1D ( double * x, double * p )

Definition at line 35 of file SparseFit4.cxx.

## ◆ gaus2D()

 double gaus2D ( double * x, double * p )

Definition at line 40 of file SparseFit4.cxx.

## ◆ gaus3D()

 double gaus3D ( double * x, double * p )

Definition at line 45 of file SparseFit4.cxx.

## ◆ main()

 int main ( int argc, char ** argv )

Definition at line 309 of file SparseFit4.cxx.

## ◆ operator<<()

 ostream& operator<< ( ostream & out, ROOT::Fit::BinData & bd )

Definition at line 57 of file SparseFit4.cxx.

## ◆ operator==()

 bool operator== ( ROOT::Fit::BinData & bd1, ROOT::Fit::BinData & bd2 )

Definition at line 100 of file SparseFit4.cxx.

## ◆ pol2D()

 double pol2D ( double * x, double * p )

Definition at line 52 of file SparseFit4.cxx.

## ◆ bsize

 Int_t bsize[] = { 10, 10, 10 }

Definition at line 31 of file SparseFit4.cxx.

## ◆ r

 TRandom2 r(17)

## ◆ showGraphics

 bool showGraphics = false

Definition at line 28 of file SparseFit4.cxx.

## ◆ x_max

 Double_t x_max[] = { 10., 10., 10. }

Definition at line 33 of file SparseFit4.cxx.

## ◆ x_min

 Double_t x_min[] = { 0., 0., 0. }

Definition at line 32 of file SparseFit4.cxx.