Message: Re: Problem with angular distribution of primary particles Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Problem with angular distribution of primary particles 

Forum: Geometry
Re: Question Problem with angular distribution of primary particles (Kendall)
Date: 28 Oct, 2013
From: Kendall <Kendall>

Hi again,

I just thought I would let you know that I figured out what the problem was. I was printing the x, y and z components of the momentum direction vector to a file and calculating the angle from vertical from those values. I was only printing numbers with 4 decimal places to this file, which is apparently not enough. So I most definitely was seeing rounding errors, but they were of my own doing, not the particleGun.

Sorry for being hasty with posting my problem on the forum, but I hope that if someone comes across this, they might learn from my silly mistake.

Thanks again, Kendall

 Add Message Add Message
to: "Re: Problem with angular distribution of primary particles"

 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 ]