Is there any possible way to view specific events in the Geant4 visualizer? For context, I am running a simulation of 100,000 particles and filtering out specific events through a script on a ROOT file. In the Geant4 viewer, the only method I have found to view individual events is through /vis/reviewKeptEvents, and typing “cont” to index through every event becomes quite difficult with this many events.
I will definitely use this method, although it was not exactly what I was looking for. I was asking for a faster way to go through specific events at random directly through the visualizer itself. Seeing as it is possible to index through each event in order (/vis/reviewKeptEvents), I was curious if there was a way to ‘skip’ to certain events (like something that has a parameter for which event(s) to view).
Regardless, the method you showed is helpful, so thank you.
There is no selection method with /vis/reviewKeptEvents. I can’t think of a simple way to add it. Of course, you do have control of selection in your EndOfEventAction.
After /vis/reviewKeptEvents, as you have figured, you type continue, or just cont, to get the next event. After the first time you can use the up-arrow key.