Message: 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

Question Clarification about use of GetPre/Post Step Point at boundaries 

Forum: Biasing and Scoring
Date: 09 Dec, 2017
From: Francesco Collamati <Francesco Collamati>

Hello everybody! I realised I have a simple but deep doubt regarding the difference there is among the quantities related to PreStepPoint and PostStepPoint. I clarify my doubt with a simple example: I have a beta emitting source, and I want to store characteristics( namely: X, Y, Z, Directive cosines XYZ and Energy) of electrons that enter my detector (placed just above the source volume). For this purpose I've developed a UserSteppingAction in which I simply ask "if(ThisVol->GetName()=="Source" && NextVol->GetName()=="Detector") { [store stuff] }"

I've red that since the step ends at the boundary of the new volume, for XYZ position I should use GetPostStepPoint.. right. My doubt is instead regarding the cosines: after several trials, I have the "impression" that using step->GetPostStepPoint()->GetMomentumDirection().getX() my particles seem to have already suffered by Multiple Scattering in the detector volume IN THE FOLLOWING INTERACTION, while I am willing to store the angle with which the particles enter the detector itself!

Something similar goes on with the energy.. Which point should I use to have the energy my electrons will have available to spend in the detector? thanks!

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

1 None: Re: Clarification about use of GetPre/Post Step Point at boundaries   (Alexey Solovyev - 14 Dec, 2017)
 Add Message Add Message
to: "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