InteractionCrossSections#

class MCEq.data.InteractionCrossSections(mceq_hdf_db, interaction_model='DPMJETIII193')[source]#

Bases: object

Class for managing the dictionary of hadron-air cross-sections.

Parameters:
  • mceq_hdf_db (object) – instance of MCEq.data.HDF5Backend

  • interaction_model (str) – name of the interaction model

Attributes Summary

GeV2mbarn

unit - \(\text{GeV}^2 \cdot \text{mbarn}\)

GeVcm

unit - \(\text{GeV} \cdot \text{cm}\)

GeVfm

unit - \(\text{GeV} \cdot \text{fm}\)

mbarn2cm2

unit conversion - \(\text{mbarn} \to \text{cm}^2\)

Methods Summary

get_cs(parent[, mbarn])

Returns production parent-air cross-section \(\sigma_{prod}^{proj-Air}(E)\) as vector spanned over the energy grid.

load(interaction_model)

Attributes Documentation

GeV2mbarn = 0.38937930376300284#

unit - \(\text{GeV}^2 \cdot \text{mbarn}\)

GeVcm = 1.9732696312541852e-14#

unit - \(\text{GeV} \cdot \text{cm}\)

GeVfm = 0.19732696312541853#

unit - \(\text{GeV} \cdot \text{fm}\)

mbarn2cm2 = 9.999999999999999e-28#

unit conversion - \(\text{mbarn} \to \text{cm}^2\)

Methods Documentation

get_cs(parent, mbarn=False)[source]#

Returns production parent-air cross-section \(\sigma_{prod}^{proj-Air}(E)\) as vector spanned over the energy grid.

Parameters:
  • parent (int) – PDG ID of parent particle

  • mbarn (bool,optional) – if True, the units of the cross-section will be \(mbarn\), else \(\text{cm}^2\)

Returns:

cross-section in \(mbarn\) or \(\text{cm}^2\)

Return type:

numpy.array

load(interaction_model)[source]#