32 TH1D *
h1 =
new TH1D(name.c_str(),
"Chi2 Fit",100, -5, 5. );
34 TH1D * h2 =
new TH1D(name.c_str(),
"Chi2 Fit with Minos Error",100, -5, 5. );
36 TH1D * h3 =
new TH1D(name.c_str(),
"Chi2 Fit with Integral and Minos",100, -5, 5. );
38 TH1D * h4 =
new TH1D(name.c_str(),
"Likelihood Fit with Minos Error",100, -5, 5. );
43 for (
int i = 0; i <
n; ++i) {
51 std::string cname =
type +
"Canvas" ;
52 std::string ctitle =
type +
" Gaussian Fit" ;
57 cout <<
"\nDo Fit 1\n";
61 cout <<
"\nDo Fit 2\n";
65 cout <<
"\nDo Fit 3\n";
69 cout <<
"\nDo Fit 4\n";
70 h4->
Fit(
"gaus",
"VLE");
75 void minuit2GausFit() {
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
tomato 1-D histogram with a double per channel (see TH1 documentation)}
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...
THist< 1, double, THistStatContent, THistStatUncertainty > TH1D
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.