I’m afraid the way you create histograms in the “call_spectra_1.C
” routine may create problems with getting proper “area” values later.
Using the 05cm_60Co.Spe.txt file (extracted and renamed from the "root.zip"
file, attached in another post here), try to play with the macro given below: