@axel The standard version of the ${ROOTSYS}/tutorials/spectrum/peaks.C script fits “peaks’ heights”, while the version attached below can fit “peaks’ areas” instead (and you can run this version with ROOT 5 or ROOT 6). peaks.C (4.3 KB)
${ROOTSYS}/tutorials/spectrum/peaks.C