Message: Re: Can not set limit on Step Length Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Feedback Re: Can not set limit on Step Length 

Forum: Event and Track Management
Re: Question Can not set limit on Step Length (Liyong Zhang)
Date: 29 Nov, 2016
From: Liyong Zhang <Liyong Zhang>

Hi All,

Here is the solution I got from the discussion with Peter. We hope this will be helpful to other people.

As shown in the manual, to set the step limit, one has to use a physics list inherited form the G4VModularPhysicsList, so he/she can call the RegisterPhysics(new G4StepLimiterPhysics()) function at the main function (or the construct function of his/her physics list ).

Moreover, once the G4VModularPhysicsList was used, one has to call the G4VModularPhysicsList::ConstructProcess() function in his/her own PhysicsList::ConstructProcess function(if he made a physics list by himself), this will call all the processes registered with the RegisterPhysics method. And this is what I ignored... An example is here:

http://www-geant4.kek.jp/lxr/source/examples/extended/optical/wls/src/WLSPhysicsList.cc#L163

Thanks,

All the best,

 Add Message Add Message
to: "Re: Can not set limit on Step Length"

 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 ]