CrossSection

This class provides read-only views of tables that relate to the cross-section of a collision process. The cross-section values are tabulated over a grid of \(m\) nodes, which depend on the energy \(\nu_i\) of the incoming photon.

Constructor

class CrossSection(*args, **kwargs)

Warning

Cross-section views should not be instantiated directly, but only from a MaterialRecord. Direct instantiation will result in a TypeError.

Attributes

CrossSection.energies: numpy.ndarray

The \(m\) energy values of the incoming photon (\(\nu_i\)), for which the cross-section was pre-computed.

CrossSection.material: MaterialRecord

The collision’s target material.

CrossSection.process: str

A description of the interaction process.

CrossSection.values: numpy.ndarray

The \(m\) pre-computed cross-section values.

Methods

CrossSection.__call__(energy)

Returns interpolated cross-section value(s) for the specified energy (\(\nu_i\)) which can be either a float or a numpy.ndarray.