@ggalgoczi Could you take a look at this code and let me know if you spot anything off? https://github.com/BNLNPPS/eic-opticks/blob/main/src/g4app.h#L264-L294 For some reason, I’m not getting any hits when I run this test: https://github.com/BNLNPPS/eic-opticks/blob/main/tests/test_simg4ox.sh