Automatically write all histograms created in a macro?

Hi all,

Though not of much use but,
Is there some feature to automatically write out all the histograms into a root file which are created in a macro ? That is without specifying hist->Write() for each and every histogram?

Thanks

Hi,

If all of the histograms are owned by a TFile, you can use TFile::Write.

Best,
D