pyrex.particle.CTWInteraction.choose_interaction¶
-
CTWInteraction.
choose_interaction
()¶ Choose an interaction type for the
particle
attribute.Randomly generates the interaction type (charged-current or neutral-current) according to the cross-section ratio.
- Returns
- Interaction.Type
Enum value for the interaction type for the particle.
Notes
The interaction type choice is based on the ratio equation in the CTW 2011 paper [1] (Equation 8).
References
- 1
A. Connolly et al, “Calculation of High Energy Neutrino-Nucleon Cross Sections and Uncertainties Using the MSTW Parton Distribution Functions and Implications for Future Experiments.” Physical Review D 83, 113009 (2011). arXiv:1102.0691 DOI:10.1103/PhysRevD.83.113009