2 Double_t par[] = {0.3164, 3., 1.5};
4 TF1 * sT =
new TF1(
"sT",
"0.3164*pow(x,4)*exp(-x*1.5)",0., points);
6 Double_t shapeInt = sT->Integral(0., points);
7 Double_t shapeMax = sT->GetMaximum(0.,points);
8 Double_t shapePeak= sT->GetMaximumX(0.,points);
9 Double_t shapeRMS = sqrt(sT->Moment(2,0.,points)-sT->Moment(1,0.,points)*sT->Moment(1,0.,points));
10 cout<<
"SHAPE Peak = "<<shapePeak<<
" Max = "<<shapeMax<<
" RMS = "<<shapeRMS<<
" Integral = "<<shapeInt<<endl;
16 return par[0]*pow((x-par[1]),par[2])*exp(-(x-par[1])*par[3]);