Skip to content

Commit

Permalink
fix: Replace dummy output file with MemFile
Browse files Browse the repository at this point in the history
Fixes #531.
The use of the deprecated SetOutputFile is also fixed.
  • Loading branch information
olantwin committed Mar 5, 2025
1 parent 4aee7f2 commit 4320cea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/shipStrawTracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ def run_track_pattern_recognition(input_file, geo_file, output_file, method):
import shipDet_conf
run = ROOT.FairRunSim()
run.SetName("TGeant4") # Transport engine
run.SetOutputFile("dummy") # Output file
# Create dummy output file as the input file is updated directly and
# histograms are written to output file (hists.root by default)
run.SetSink(ROOT.FairRootFileSink(ROOT.TMemFile('output', 'recreate')))
run.SetUserConfig("g4Config_basic.C") # geant4 transport not used, only needed for the mag field
rtdb = run.GetRuntimeDb()

Expand Down

0 comments on commit 4320cea

Please sign in to comment.