Hello ,
I simulated energy deposits in a scintillator with a gamma source on GEANT4. Now I would like to superimpose by Root my histogram obtained in manipulation which is in number of charges. I am looking for a method to normalize my acquisition histogram and to superimpose it on my simulation in order to compare them.
Would someone have an idea of how to do it please?
I think we would need some code example showing what you are doing. With “Scale” you should be able to normalised by some factor one of the histogram. Then you should Draw the first histogram of the 2nd histogram on top using option SAME. If the axis do not really match ou can use THStack which will compute for you the axis containing all the histograms you put in.
Yes you are right, when I copied my code I forgot the part about filling the histogram. Otherwise in my code I did fill as I just modified in my code above. I would like to try DrawNormalized, being a beginner I don’t know how to use it correctly.