Home | News | Documentation | Download

How to save a TPad on .root files?

Hi ROOTers,
I have different macros, each one performing a fit of a dataset (using RooFit) and printing the plot on a TCanvas.
What I’d like to do is to save all these TPads on a .root file, and then with another macro open this file and combine all the TPads in a single TCanvas. However it seems like the TPad class does not have a Write() function.
How can I do that?

_ROOT Version: 6.18/00
_Platform: Linux 3.10.0-1127.13.1.el7.x86_64

You would have to save canvasses.

Indeed that’s not true. It has the one inherited from TObject. have you tried ?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.