ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions | Variables
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:

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

bool showGraphics = false
 
TRandom2 r (17)
 
Int_t bsize [] = { 10, 10, 10 }
 
Double_t xmin [] = { 0., 0., 0. }
 
Double_t xmax [] = { 10., 10., 10. }
 

Function Documentation

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

Definition at line 162 of file SparseFit4.cxx.

Referenced by fitSparse2D(), and fitSparse3D().

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

Definition at line 147 of file SparseFit4.cxx.

Referenced by fitSparse1D().

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

Definition at line 76 of file SparseFit4.cxx.

Referenced by operator==().

void fitSparse1D ( )

Definition at line 204 of file SparseFit4.cxx.

void fitSparse2D ( )

Definition at line 224 of file SparseFit4.cxx.

Referenced by main().

void fitSparse3D ( )

Definition at line 272 of file SparseFit4.cxx.

Referenced by main().

double gaus1D ( double x,
double p 
)

Definition at line 35 of file SparseFit4.cxx.

Referenced by fitSparse1D().

double gaus2D ( double x,
double p 
)

Definition at line 40 of file SparseFit4.cxx.

Referenced by fitSparse2D().

double gaus3D ( double x,
double p 
)

Definition at line 45 of file SparseFit4.cxx.

Referenced by fitSparse3D().

int main ( int  argc,
char **  argv 
)

Definition at line 309 of file SparseFit4.cxx.

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

Definition at line 57 of file SparseFit4.cxx.

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

Definition at line 100 of file SparseFit4.cxx.

double pol2D ( double x,
double p 
)

Definition at line 52 of file SparseFit4.cxx.

Variable Documentation

Int_t bsize[] = { 10, 10, 10 }
TRandom2 r(17)

Referenced by fillSparse().

bool showGraphics = false

Definition at line 28 of file SparseFit4.cxx.

Referenced by fitSparse2D(), and main().

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

Definition at line 33 of file SparseFit4.cxx.

Referenced by DoFit(), fillSparse(), fitSparse1D(), fitSparse2D(), and fitSparse3D().

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

Definition at line 32 of file SparseFit4.cxx.

Referenced by DoFit(), fillSparse(), fitSparse1D(), fitSparse2D(), and fitSparse3D().