pyrex.generation.Generator.get_weights¶
-
Generator.
get_weights
(particle)¶ Get the weighting factors to be applied to the particle.
Calculates both the survival and interaction weights of particle. The survival weight is based on the probability of interaction along the path through the Earth. The interaction weight of particle based on the probability of interaction at its given vertex in the ice volume.
- Parameters
- particleParticle
Particle to be weighted.
- Returns
- survival_weightfloat
Survival weight of the given particle.
- interaction_weightfloat
Interaction weight of the given particle.
See also
pyrex.Particle
Class for storing particle attributes.