I am trying to extract the yield under a peak(1778.9 KeV) in energy by doing Gaussian fit. There is background present under the peak. So first I need to subtract the background present under the peak then calibrate it to energy and calculate the area under the peak. I am using this macro. But when I run this it shows this error.! Also, I am not able to save the generated plots.
I will be very thankful to you if you can help me.
I am using the root version(6.14.06)
Compiler- gcc p1Yields.C (11.4 KB) gainMatch.h (3.2 KB) fitFunctions.h (32.4 KB) run244.root (69.9 KB) run326.root (64.9 KB)