I think you cannot. As they are different object, you have to save them independently.
However, once you have all the objects in your ROOT file, you can redraw what you want with them.
Another solution is to save the TCanvas which contains the plot you have drawn.
[quote=“pamputt”]I think you cannot. As they are different object, you have to save them independently.
However, once you have all the objects in your ROOT file, you can redraw what you want with them.
Another solution is to save the TCanvas which contains the plot you have drawn.[/quote]
Ok, and after saving the canvas I can go back to the histogram and to the TF1s, right?