July 2016

Generating random directions in a beam model

As described here, I'm a developer of the TOPAS Monte Carlo simulation tool for radiotherapy research. To improve our beam source model, I wanted a method to randomly generate uniformly distributed directions that are constrained to a certain region of the unit sphere, centered upon the z-axis (the beam direction). Generated particles are assigned these random directions...

Read more about Generating random directions in a beam model