e15190.neutron_wall.efficiency.geNt4

class e15190.neutron_wall.efficiency.geNt4

Functions

__init__()

get_intrinsic_efficiency([path])

Returns the intrinsic efficiency curve calculated with geNt4.

get_intrinsic_efficiency_data([path])

Returns the intrinsic efficiency data points calculated with geNt4.

Properties

PATH

__init__()
classmethod get_intrinsic_efficiency_data(path: Optional[str | Path] = None) → pd.DataFrame

Returns the intrinsic efficiency data points calculated with geNt4.

Parameters

path (str or Path, optional) – The path to the file containing the intrinsic efficiency data points. If None, the path specified by PATH is used.

Returns

data – The intrinsic efficiency data points, with columns ‘energy’ and ‘efficiency’.

Return type

pandas.DataFrame

classmethod get_intrinsic_efficiency(path: Optional[str | Path] = None) → Callable[[ArrayLike], ArrayLike]

Returns the intrinsic efficiency curve calculated with geNt4.

A spline is used to interpolate the efficiency data points. Moreover, a boundary condition of zero is imposed at zero energy, extending the efficiency curve below the lowest energy data point all the way down to zero. For energy values below zero or above the highest energy data point, the efficiency is set to zero.

Parameters

path (str or Path, optional) – The path to the file containing the intrinsic efficiency curve. If None, the path specified by PATH is used.

Returns

intrinsic_efficiency – The intrinsic efficiency curve.

Return type

callable