Message: Re: How to not track particles below a specified energy or of a specified particle species Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Disagree Re: How to not track particles below a specified energy or of a specified particle species 

Forum: Fast Simulation, Transportation & Others
Re: Question How to not track particles below a specified energy or of a specified particle species
Re: None Re: How to not track particles below a specified energy or of a specified particle species (Michael H. Kelsey)
Re: Question Re: How to not track particles below a specified energy or of a specified particle species (Beatriz Tapia)
Date: 31 Jan, 2017
From: Michael H. Kelsey <Michael H. Kelsey>

On Tue, 31 Jan 2017 23:37:52 GMT, Beatriz Tapia wrote:
> void LXePhysicsList::SetCuts(){
>   //  " G4VUserPhysicsList::SetCutsWithDefault" method sets
>   //   the default cut value for all particle types
>   //SetCutsWithDefault();
>   SetCutValue(1000000000000000000000000*m, "opticalphoton");

This line isn't correct. The productions cuts apply to gammas, e+, e-, and protons (the "proton" cut value is also used for nuclei).

If you want to prevent the production of optical photons, then you shouldn't have optical physics enabled in your physics list. The simplest solution for your case is to just remove the if-opticalphoton block from your physics list construction.

If you were using one of the Geant4 reference physics lists (QGSP_BERT, Shielding, etc.), then you would have to add optical physics explicitly anyway, which would make it easy to remove.

  -- Micahel Kelsey

 Add Message Add Message
to: "Re: How to not track particles below a specified energy or of a specified particle species"

 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 ]