Skip to content

Commit f3bea98

Browse files
karabowiChristianTackeGSI
authored andcommitted
Geant4MT: Fix closing sink in MT mode
In the MT mode FairRunSim cannot close the sinks, only FairMCApplication can.
1 parent f7afae0 commit f3bea98

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

fairroot/base/sim/FairMCApplication.cxx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,10 @@ void FairMCApplication::FinishRunOnWorker()
477477
LOG(debug) << "FairMCApplication::FinishRunOnWorker: ";
478478

479479
FinishRun();
480+
481+
// Close the sink on workers so that the execution of main FairRunSim->Run()
482+
// finishes with the output files properly closed.
483+
fRootManager->CloseSink();
480484
}
481485

482486
//_____________________________________________________________________________

0 commit comments

Comments
 (0)