Entries under a gaussian?

std::cout << hspectrum->GetFunction("gaus")->Integral(2, 45) / hspectrum->GetBinWidth(1) << std::endl;
1 Like