While trying to transform(calibrate) the channel numbers on X axis to energies using a quadratic polynomial, I am confused as to what shall be the better and error free approach at the same avoiding issues with re-binning, variable bin width, missing bins etc. as highlighted in below posts
Posting a lot these days!
Could you perhaps be a bit more specific with the question you have in mind? Maybe the question you could try to answer is why rescaling according to the value of your calibration function evaluated in the bin center is not ok in your case?
If you can, always “scale” your raw unbinned data (i.e., from “raw experimental values” to values in “energy units”).
Create your histogram with the axis in “energy units” and fill it with your (still unbinned) “energy calibrated” data.
If you only have a histogram already filled with “raw experimental values”, then you are doomed.
Hi @Wile_E_Coyote ,
Thanks for the suggestion.
Yes, so far I was trying to scale the “raw experimental values” according to the calibration function and then binning the scaled version to “calibrated” spectra.
If you only have a histogram already filled with “raw experimental values”, then you are doomed.
I guess due to the problem of empty bins and variable bin widths or there is more to that. Can you please highlight it?