I have an issue a bit similar to Accumulate data from several runs in multithread mode but my case is a little bit different.
Through a .mac file I am looping over different ions and different energies and producing histograms and recently Ntuples. I am facing 2 issues for Ntuples related both to the command: analysisManager->SetNtupleMerging(true).
First, I get empty files t# remaining for the first (ion,energy) pair, while I have the actual merged file in the global root file that also contains the histograms.
Secondly for other (ion,energy) after, no t# files are present but two Ntuples are created. One empty and the second one with the column branches.
I also get this warning:
-------- WWWW ------- G4Exception-START -------- WWWW -------
*** G4Exception : Analysis_W012
issued by : G4VFileManager::SetFileName()
Cannot set File name as its value was already used.
*** This is just a warning message. ***
-------- WWWW -------- G4Exception-END --------- WWWW -------
I am adding a screenshot with TBrowser of this structure.