Message: Re: Setting a User Limit and G4EmCalculator Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Idea Re: Setting a User Limit and G4EmCalculator 

Forum: Run Management
Re: Question Setting a User Limit and G4EmCalculator (David)
Date: 06 Sep, 2012
From: Vladimir Ivanchenko <Vladimir Ivanchenko>


Unfortunately, you should have problem to compute any physical value when you do not yet build geometry. Geant4 kernel performs initialisation in the following order: 
      1) list of particles
      2) geometry
      3) physics

So,  one cannot know range of a particle in DetectorConstruction class during volume construction. G4EmCalculator may work when all EM processes are instantiated and initialized. 

CSDA range is rarely used, so by default it cannot be computed properly. One needs to enable construction of CSDA tables using UI command:

/process/eLoss/CSDARange true

In $G4INSTALL/examples/extended/electromagnetic/TestEm0 we show how to use EM calculator in RunAction at the end of run. At this moment one can compute CSDA ranges and later type obtained values into your UserLimits.

Please, note that usage of step limits not necessary increase accuracy of your simulation but definitely add extra CPU. This feature should be applied with care and only if you are sure that without extra step limitation Geant4 does not provide desired accuracy.


 Add Message Add Message
to: "Re: Setting a User Limit and G4EmCalculator"

 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 ]