31 TH1D *
h1 =
new TH1D(name.c_str(),
"Chi2 Fit",100, -5, 5. );
33 TH1D *
h2 =
new TH1D(name.c_str(),
"Chi2 Fit with Minos Error",100, -5, 5. );
35 TH1D * h3 =
new TH1D(name.c_str(),
"Chi2 Fit with Integral and Minos",100, -5, 5. );
37 TH1D * h4 =
new TH1D(name.c_str(),
"Likelihood Fit with Minos Error",100, -5, 5. );
42 for (
int i = 0; i <
n; ++i) {
50 std::string cname =
type +
"Canvas" ;
51 std::string ctitle =
type +
" Gaussian Fit" ;
56 cout <<
"\nDo Fit 1\n";
60 cout <<
"\nDo Fit 2\n";
64 cout <<
"\nDo Fit 3\n";
68 cout <<
"\nDo Fit 4\n";
69 h4->
Fit(
"gaus",
"VLE");
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
Random number generator class based on M.
virtual Double_t Gaus(Double_t mean=0, Double_t sigma=1)
Samples a random number from the standard Normal (Gaussian) Distribution with the given mean and sigm...
R__EXTERN TStyle * gStyle
static void SetDefaultFitter(const char *name="")
static: set name of default fitter
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
virtual void Draw(Option_t *option="")
Draw this histogram with options.
void SetOptFit(Int_t fit=1)
The type of information about fit parameters printed in the histogram statistics box can be selected ...
R__EXTERN TRandom * gRandom
1-D histogram with a double per channel (see TH1 documentation)}
void testGausFit(std::string type="Minuit2", int n=1000)
virtual void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0)
Automatic pad generation by division.
void SetOptStat(Int_t stat=1)
The type of information printed in the histogram statistics box can be selected via the parameter mod...
virtual TFitResultPtr Fit(const char *formula, Option_t *option="", Option_t *goption="", Double_t xmin=0, Double_t xmax=0)
Fit histogram with function fname.