Geant4 Version: 11.2.0
Operating System: Windows 10 + WSL 2.0
Compiler/Version: gcc 11.4.0
CMake Version: 3.22.1
I’m trying to record the track length of muons inside a given volume using command based scoring.
What is the reason for this outputting all zeros?
I have visual confirmation that there are indeed a lot of tracks inside the volume but the file has all 0s on it.
/run/initialize
/score/create/realWorldLogVol logicGold
/score/quantity/trackLength goldTrackLength
/score/filter/particle muonFilter mu-
/score/close
/run/beamOn 100
/score/dumpAllQuantitiesToFile logicGold gold_track_length.txt
gold_track_length.txt
# mesh name: logicGold
# primitive scorer name: goldTrackLength
# i, i, i, total(value) [mm], total(val^2), entry
0,0,0,0,0,0