edist module

Edist

Module that takes care of the energy distribution of the pulses.

edist.load_energy_spectrum(which)

Reads the spectrum from the input file “dat/spectrum_<which>.dat”.

Args:
which (string): particle for which the spectrum has to be loaded (electron, proton)
Returns:

energy (numpy.array): energy axis [keVee]

intensity (numpy.array): normalized spectrum