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

Question Can not set limit on Step Length 

Forum: Event and Track Management
Date: 10 Nov, 2016
From: Liyong Zhang <Liyong Zhang>

Hi all,

I am trying to set the maximum step length as shown in the manual. I added

    G4UserLimits* fStepLimit = new G4UserLimits(maxStep);
    fStepLimit->SetMaxAllowedStep(maxStep);
    lgCH2->SetUserLimits(fStepLimit);

in my DetectorConstruction.cc and added

  physicsList->RegisterPhysics(new G4StepLimiterPhysics());

in my main function. But the step size is not affected. Is there anything else I should do?

I attached my main function and detector construction codes FYI.

Many thanks,

   Attachment:
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2016/11/10/08.35-51172-Hadr03.cc
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2016/11/10/08.35-63502-DetectorConstruction.cc

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

1 Feedback: Re: Can not set limit on Step Length   (Gumplinger Peter - 10 Nov, 2016)
1 Question: Re: Can not set limit on Step Length   (Liyong Zhang - 11 Nov, 2016)
2 Feedback: Re: Can not set limit on Step Length   (Liyong Zhang - 29 Nov, 2016)
 Add Message Add Message
to: "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 ]