pyrex.RectangularGenerator.get_particle_type¶
-
RectangularGenerator.
get_particle_type
()¶ Get the particle type of the next particle to be generated.
Randomly generates a neutrino flavor according to the flavor ratio of the generator, and chooses neutrino or antineutrino based on ratios derived from the source type.
- Returns
- Particle.Type
Enum value for the type of the particle.
See also
pyrex.Particle
Class for storing particle attributes.
Notes
The neutrino/antineutrino choice is based on Section 3 of [1].
References
- 1
A. Bhattacharya et al, “The Glashow resonance at IceCube.” JCAP 1110, 017 (2011). arXiv:1108.3163 DOI:10.1088/1475-7516/2011/10/017