Hi all,
I have a gaussian peak in the range 79 GeV-101 GeV and I want to calculate the area under this peak. But th eanswer I am getting is zero. I want to do the same for a polynomial fit of order 2 in this same range.
TF1 *fit1 = new TF1(“nfit1”,“gaus(0)”,79,101);
hist1->Fit(“nfit1”,“R”);
fit1->Integral(159,203);//bin no 159 corresponds to 79 GeV and 203 corresponds to 101 GeV