Hello!
I am working with a simulation based off of B1 where the only thing I changed significantly was the geometry, as well as adding stuff from the G4AnalysisManager so that I get a csv file with the energy deposited written to it. I want to run a macro file with many different /BeamOn commands, each one corresponding to a different energy, so I can scan the effects of a muon hitting my object at different energies.
When I run my macro file with the 50 different /BeamOn commands, my output file only has one number. I suspect it is only saving the enrgy deposition of the last run. Is there a way to make it so it saves the energy deposition from all runs, like in a big array?