irfpy.vels.bible.energy_resolution
¶
The module to calculate energy resolution.
Energy resolution is discussed in Section 5 of VEX/ELS bible. There is also a table 2 showing raw data of the resolution, but I skipped the implementation.
- irfpy.vels.bible.energy_resolution.energy_resolution(anode, energy)[source]¶
Return the energy resolution, Delta(E)/E, for each anode and energy.
- Parameters
anode – Integer specifying the anode.
energy – Central energy in electron volts (eV).
- Returns
Energy resultion. (Fraction. Not per-cent)
>>> print('%.3f' % energy_resolution(7, 970.000)) 0.073 >>> print('%.3f' % energy_resolution(0, 11997.000)) 0.099