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

Question 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)
Date: 31 Jan, 2017
From: Beatriz Tapia <Beatriz Tapia>

Hi!

We were trying to do what you describe as a second option:

You can turn off photon production by setting the photon "production cut" in your physics list to a very large value (larger than your beam energy). In that case, instead of creating photons that get tracked, Geant4 will assign their energy to the "energy deposit" value for the step.

But it did not work out. We still get opticalphotons when we run our macro with /tracking/verbose 2. We are using the LXe example of Geant4 and added a few lines to the PhysicsList.cc file:

void LXePhysicsList::SetCuts(){
  //  " G4VUserPhysicsList::SetCutsWithDefault" method sets
  //   the default cut value for all particle types
  //SetCutsWithDefault();
  SetCutValue(1000000000000000000000000*m, "opticalphoton");
  SetCutValue(1000000000000000000000000*m, "e-");
  SetCutValue(1000000000000000000000000*m, "e+");
}

I attach the whole PhysicsList.cc file. Is there something else we would have to change to not track the opticalphotons our simulation is creating?

Thank you, Bea

   Attachment:
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2017/01/31/15.35-31660-LXePhysicsList.cc

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 Disagree: Re: How to not track particles below a specified energy or of a specified particle species   (Michael H. Kelsey - 31 Jan, 2017)
 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 ]