Interactions#

class MCEq.data.Interactions(mceq_hdf_db)[source]#

Bases: object

Class for managing the dictionary of interaction yield matrices.

Args: mceq_hdf_db (object): instance of MCEq.data.HDF5Backend

Methods Summary

get_matrix(parent, child)

Returns a DIM x DIM yield matrix.

load(interaction_model[, parent_list])

print_mod_pprod()

Prints the active particle production modification.

Methods Documentation

get_matrix(parent, child)[source]#

Returns a DIM x DIM yield matrix.

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

  • child (int) – PDG ID of final state child/secondary particle

Returns:

yield matrix

Return type:

numpy.array

load(interaction_model, parent_list=None)[source]#
print_mod_pprod()[source]#

Prints the active particle production modification.