Dear co-rooters,
What I would like to do the following task :
Open a root file, do some calculations, fill a histogram. Then open a second root file, do some calculations, and continue filling the same histogram as before WITHOUT erasing the previous data.
If I do
TFile *f = new TFile(TString::Format("Signals_%d_%d.root",run, segment));
<calculations>
histo->Fill(x);
TFile *f1 = new TFile(TString::Format("Signals_%d_%d.root",run+10, segment));
<calculations>
histo->Fill(x);
won’t work.
Any idea on how to achieve that?
Thanks in advance!