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:
  • optical_path (list) – A list of Material objects which make up the optical path.

  • detector (Material or None) – A Material which represents the detector material where the x-rays are absorbed. If provided with None, than assume a perfectly absorbing detector material.

Examples

>>> from roentgen.absorption.material import Material, Response
>>> import astropy.units as u
>>> optical_path = [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.