the codes below were used to kill track,
‘’’
void fpSteppingAction::UserSteppingAction(const G4Step* step)
{
step->GetTrack()->SetTrackStatus(fStopAndKill);
…
}
but it did not work, because the results were produced:
if it worked, no results would produce.
_Geant4 Version:_G4_11.1
_Operating System:_Ubuntu20.04
_Compiler/Version:_GCC 9.4.0
_CMake Version:_3.16