Hello.
I have a question. I have 1D histogram. And I have some background (on the sides). So, I need to substract this background from the histogram. Can you explain please how I can do that. I have applied two pictures as example: with background and without background (after substracting). Thank you.


You need to have a “model” of your background (as a function or as another histogram), and then you can subtract this background from your spectrum using something like: YourSpectrumHistogram->Add(YourBackground, -1.0);
Oh. Thank you. Now I understand how to do it.
And another question. How to invert some histogram?