Message: Re: Can I chage the step size durring a single event? Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Can I chage the step size durring a single event? 

Keywords: change step size
Forum: Event and Track Management
Re: None Can I chage the step size durring a single event? (pete)
Re: None Re: Can I chage the step size durring a single event? (michel maire)
Re: None Re: Can I chage the step size durring a single event? (pete)
Date: 30 Jan, 2008
From: michel maire <michel maire>

User pete wrote:

>> My simulation involves a B-field that changes with position. Once the
>> B-field becomes constant I do not need as small a step size. To answer
>> your question directly, 'certain range' means in a particular region of
>> the geometry.
>> 
>> I would like to change the step size many times over the flight path of
>> the particle.

 1- G4UserLimits is not necessary attribued to the whole World. You can be
    more selective within logical volumes. 
    But, probably this is not enough for you.

 2- Alternatively, you can setup your own stepLimit process, and do what
 you want in GetPhysicalInteractionLength().
 An example can be found in examples/extended/electromagnetic/TestEm5.
 Here, a process StepMax (with its messenger) is registered in PhysicsList.
 In PostStepGetPhysicalInteractionLength(const G4Track& ...), you have access
 to geometry informations through track.

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

1 None: Re: Can I chage the step size durring a single event?   (pete - 07 Feb, 2008)
1 None: Re: Can I chage the step size durring a single event?   (Marc Verderi - 07 Feb, 2008)
2 None: Re: Can I chage the step size durring a single event?   (michel maire - 08 Feb, 2008)
 Add Message Add Message
to: "Re: Can I chage the step size durring a single event?"

 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 ]