pyrex.RectangularGenerator.create_event¶
-
RectangularGenerator.
create_event
()¶ Generate a neutrino event in the ice volume.
Creates a neutrino with a random vertex in the volume, a random direction, and an energy based on
get_energy
. Particle type is randomly chosen, and its interaction type is also randomly chosen based on the branching ratio. Weights the particles according to their survival probability through the Earth and their probability of interacting in the ice at their vertex. If Earth shadowing has been turned on then particles which don’t survive transit through the Earth are skipped, and surviving particles are given a survival weight of 1. Currently eachEvent
returned consists of only a singleParticle
.- Returns
- Event
Random neutrino event not shadowed by the Earth.
See also
pyrex.Event
Class for storing a tree of
Particle
objects representing an event.pyrex.Particle
Class for storing particle attributes.