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
Particleobject for which the interaction is defined.- kindoptional
Value of the interaction type. Values should be from the
Interaction.Typeenum, but integer or string values may work if carefully chosen. By default will be chosen by thechoose_interactionmethod.
See also
ParticleClass for storing particle attributes.
- Attributes
- particleParticle
Particleobject for which the interaction is defined.kindInteraction.TypeValue of the interaction type.
- inelasticityfloat
Inelasticity value from
choose_inelasticitydistribution 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_sectionThe total neutrino cross section (cm^2) of the
particletype.total_interaction_lengthThe neutrino interaction length (cmwe) of the
particletype.cross_sectionThe neutrino cross section (cm^2) of the
particleinteraction.interaction_lengthThe neutrino interaction length (cmwe) of the
particleinteraction.
Methods
Type(value)Enum containing possible interaction types.
Choose an inelasticity for the
particleattribute’s shower.Choose an interaction type for the
particleattribute.Choose the electromagnetic and hadronic shower fractions.
