Response¶
- class roentgen.absorption.Response(optical_path, detector)[source]¶
Bases:
object
An object to handle the response of a detector material which includes an optical path or filter through which x-rays must first traverse before reaching the detector.
- Parameters:
Examples
>>> from roentgen.absorption.material import Material, Response, Stack >>> import astropy.units as u >>> optical_path = Stack([Material('air', 1 * u.m), Material('Al', 500 * u.mm)]) >>> resp = Response(optical_path, detector=Material('cdte', 500 * u.um))
Methods Summary
response
(energy)Returns the response as a function of energy which corresponds to the transmission through the optical path multiplied by the absorption in the detector.
Methods Documentation
- response(energy)[source]¶
Returns the response as a function of energy which corresponds to the transmission through the optical path multiplied by the absorption in the detector.
- Parameters:
energy (
astropy.units.Quantity
) – An array of energies in keV.- Raises:
ValueError – If energy is outside of the interpolation range of 1 keV to 20 MeV.