ROOT Version: 6.24/00 Platform: 5.12.13-300.fc34.x86_64 Compiler: gcc version 11.1.1 20210531 (Red Hat 11.1.1-3) (GCC)
Hello,
I have a ROOT File (say, “test.root”) which contains several histograms. I open it in UPDATE mode as follows:
TFile *f = new TFile("test.root", "UPDATE");
Then I process some events from the second data file and try to update/increment contents of the existing histograms.
Finally, I do the following: f->cd(); f->Write("",TObject::kOverwrite); f->Close(); delete f;
With this method, I am unable update the histograms. They always show events only from the second data file.