Hi
I know we can overlay many histograms in a single pad/canvas by using ‘Draw(“SAME”)’ option, provided i call all the histograms in the same macro. But say, if i want to overlay two histograms which are initialized and plotted by two different macros, will it be possible I can still overlay them?
Say for example i have a pT distribution of X which is plotted by X.C macro and I have the pT distribution of Y, which is plotted by Y.C macro. If i want to overlay them, can i do something like saving the canvas from macro X.C in some format(say, canvasX.C or canvasX.root or…) and in the Y.C macro is it possible i can call this canvas file and update it with the pT distribution of Y so that i endup overlaying two histograms in a single plot?
Note:
This may sound stupid, but it will be handy for me, because i am plotting 9 efficiency plots(which means i have to call 9 numerator and 9 denominator histograms) in a single canvas and there are 5 different mass points. And i dont want to call all these in a single macro!