PyREx

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 each Event returned consists of only a single Particle.

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.

PyREx

A Python package for simulation of neutrinos and radio antennas in ice. Version 1.10.0

Navigation