From e3079fb2367c26f767be41e6c313d960c517bbcd Mon Sep 17 00:00:00 2001 From: shivesh Date: Thu, 22 Aug 2019 01:37:19 +0100 Subject: Thu 22 Aug 01:37:19 BST 2019 --- src/G4BeamTestUserSteppingAction.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/G4BeamTestUserSteppingAction.cxx') diff --git a/src/G4BeamTestUserSteppingAction.cxx b/src/G4BeamTestUserSteppingAction.cxx index f81ab62..816dc4a 100644 --- a/src/G4BeamTestUserSteppingAction.cxx +++ b/src/G4BeamTestUserSteppingAction.cxx @@ -40,7 +40,7 @@ void G4BeamTestUserSteppingAction::UserSteppingAction(const G4Step* step) //check if particle energy is below threshold; if true, kill the particle G4double energy = track->GetTotalEnergy(); if(energy < threshold){ - G4cout << "SteppingAction: killing particle " << particle << " with energy " << energy << " < " << threshold << G4endl; + if (energy > 0) G4cout << "SteppingAction: killing particle " << particle << " with energy " << energy << " < " << threshold << G4endl; track->SetTrackStatus(fStopAndKill); } } -- cgit v1.2.3