Using scoring command to find particles produced in an event

Hi everyone. I want to know which kind of filter or method I could use to see the isotopes (ions) particles produced by an event.

Thank you for helping.

if possible, kind make a list of particles generated including isotopes.

There is no way of doing it with a command-based score(at least, I lost some time looking for it and trying things and I would not recommend trying this method). The best thing I found is in the G4 examples. Give a look at the Radio decay extended example and the STCyclotron advanced example. They could give you and ideia of implementing histograms and ntuples in a stepaction, a trackaction or in a sensitive detector to collect this data.