option to sample zenith angles from a distribution
Similar to !611 (merged), we want to be able to sample the zenith angles of showers from a sin cos
or sin
distribution. This is hard because of the way that was make the constructors.
- define the
ShowerAxis
properties at compile time (start and direction) -
EnergyLossWriter
andShowerProfile
needShowerAxis
in constructor - need to call e.g.
output.add("energyloss", dEdX)
before callingoutput.startOfLibrary()
- need to call
startOfLibrary
before looping through N simulations in the run
Probably this will require a pretty fundamental change to at least these classes