Message: Re: Simulation of neutrons Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: Simulation of neutrons 

Forum: Physics List
Re: Question Simulation of neutrons (Federica Napoli)
Date: 09 Jul, 2017
From: G.A.P.Cirrone <G.A.P.Cirrone>

Simply, in the stepping action file (or in any point where the G4Step point is present), you can write something like:

G4String particleName = step->GetTrack()->GetDefinition()->GetParticleName();

if (particleName == "neutron" { G4cout<< particleName << G4endl }

 Add Message Add Message
to: "Re: Simulation of neutrons"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews

[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]