Automatically Saving a File in ROOT

Hi everyone,

I’m pretty new to ROOT and I was wondering, is there any way to auto-save a file after it’s been made? Basically I have a bunch of matrices which I am manipulating such as making X,Y projections, etc. which makes histograms, I’m wondering if there’s a way to automatically save (not do “Save As” every time) the manipulated image (histogram) after each time the original matrix is changed? I have looked up TTree::AutoSave and I’m not sure that’s the answer. Any help would be greatly appreciated.


Hi Shawnna,

I don’t think that there is a way to do what you want. You probably have to save your histogram each time by calling Write().

Dang that’s what I thought, thank you for your help!


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