pyrex.particle.Interaction¶
-
class
pyrex.particle.
Interaction
(particle, kind=None)¶ Base class for describing neutrino interaction attributes.
Defaults to values which will result in zero probability of interaction.
- Parameters
- particleParticle
Particle
object for which the interaction is defined.- kindoptional
Value of the interaction type. Values should be from the
Interaction.Type
enum, but integer or string values may work if carefully chosen. By default will be chosen by thechoose_interaction
method.
See also
Particle
Class for storing particle attributes.
- Attributes
- particleParticle
Particle
object for which the interaction is defined.kind
Interaction.TypeValue of the interaction type.
- inelasticityfloat
Inelasticity value from
choose_inelasticity
distribution for the interaction.- em_fracfloat
Fraction of particle energy deposited into an electromagnetic shower.
- had_fracfloat
Fraction of particle energy deposited into a hadronic shower.
total_cross_section
The total neutrino cross section (cm^2) of the
particle
type.total_interaction_length
The neutrino interaction length (cmwe) of the
particle
type.cross_section
The neutrino cross section (cm^2) of the
particle
interaction.interaction_length
The neutrino interaction length (cmwe) of the
particle
interaction.
Methods
Type
(value)Enum containing possible interaction types.
Choose an inelasticity for the
particle
attribute’s shower.Choose an interaction type for the
particle
attribute.Choose the electromagnetic and hadronic shower fractions.