Message: Re: Identifying (gamma,neutron) process in SteppingAction.cc? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Idea Re: Identifying (gamma,neutron) process in SteppingAction.cc? 

Forum: Hadronic Processes
Re: Question Identifying (gamma,neutron) process in SteppingAction.cc? (Emil Frlez)
Date: Nov 12, 13:08
From: Michael H. Kelsey <Michael H. Kelsey>

On Mon, 12 Nov 2018 19:14:09 GMT, Emil Frlez wrote:
> what would you say is the best/most transparent way to tag
> (gamma,neutron) and (gamma,2 neutrons) in GEANT4 SteppingAction? (A
> parent/incident particle is a photon interacting in Cesium Target, and
> knocking out one (or two) neutrons out of Cs nucleus.)
> 
> if (?) {
>  then
>  ....
> } 

That condition is going to require a small chunk of code: 1) Check the track type for gamma; 2) Check for secondaries attached to the step; 3) Make sure one of the secondaries is a nucleus (G4Ions); 4) Loop over the secondaries and count neutrons.

Make your decision based on the outcome. Note that general the gamma collision will be put the nucleus into an excited state; all of the deexcitation gammas, electrons, X-rays, etc. are included in the same step, so you can't just ask for "one secondary" which is a neutron.

  -- Mike Kelsey

 Add Message Add Message
to: "Re: Identifying (gamma,neutron) process in SteppingAction.cc?"

 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 ]