Message: Re: Clarification about use of GetPre/Post Step Point at boundaries Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Clarification about use of GetPre/Post Step Point at boundaries 

Forum: Biasing and Scoring
Re: Question Clarification about use of GetPre/Post Step Point at boundaries (Francesco Collamati)
Date: 14 Dec, 2017
From: Alexey Solovyev <Alexey Solovyev>

I'm not g4 dev, but at G4SteppingManager.cc on lines 191, 195 and 209 (for 10.4) you can see, that the InvokeAlongStepDoItProcs() followed by fStep->UpdateTrack() and then followed by InvokePostStepDoItProcs(), and Multiple scattering is a subclass of G4VContinuousDiscreteProcess, which has both AlongStep and PostStep.

So, if you need you results only here and do not interesting in following other physics in your project, you can just deactivate multiple scattering, how it is done e.g. in examples/extended/TestEm5 (via "/process/inactivate msc" macro). If you need simultaneously calculate both what you need here without msc and all the following project with msc, than I believe you can use Parallel world concept of G4 with separate physics for each world. Or maybe someone more experienced or g4 dev will suggest more.

Also it may be safer to use aStep->GetTrack()->GetVolume()/aStep->GetTrack()->GetNextVolume() in general instead of GetPostStepPoint here.

 Add Message Add Message
to: "Re: Clarification about use of GetPre/Post Step Point at boundaries"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews