I am trying to fit the data and it is showing unnecessary bars on the histograms by default. To solve this problem I used QDC1->Draw(“HIST C”) affter QDC1->Fit(“polya”,“R”); but now after uses of this it is not showing any fitting function.
. The files with and without fit function are attached.
root  auto h = new TH1F("h","h",100,-4,4)
root  h->FillRandom("gaus");
root  h->Fit("gaus","C")
FCN=65.0502 FROM MIGRAD STATUS=CONVERGED 54 CALLS 55 TOTAL
EDM=9.21369e-07 STRATEGY= 1 ERROR MATRIX ACCURATE
EXT PARAMETER STEP FIRST
NO. NAME VALUE ERROR SIZE DERIVATIVE
1 Constant 1.57425e+02 2.76819e+00 8.89596e-03 -5.39870e-04
2 Mean 1.38321e-02 1.43799e-02 5.69927e-05 8.22303e-04
3 Sigma 1.00178e+00 1.04857e-02 1.11224e-05 -4.31183e-01
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.