pyrex.CylindricalGenerator.get_weights¶
-
CylindricalGenerator.
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 ofparticle
based on the probability of interaction at its given vertex in the ice volume.- Parameters
- particleParticle
Particle to be weighted.
- Returns
See also
pyrex.Particle
Class for storing particle attributes.