hexrd.instrument.detector_coatings module

class hexrd.instrument.detector_coatings.AbstractLayer(material: str | None = None, density: float | None = None, thickness: float | None = None, readout_length: float | None = None, pre_U0: float | None = None, formula: str | None = None)[source]

Bases: object

abstract class for encode information for an arbitrary planar layer of given thickness, density, and material

Parameters

materialstr

either the formula or a material name

densityfloat

density of element in g/cc

thicknessfloat

thickness in microns

readout_lengthfloat

the distance of phosphor screen that encodes the information from x-rays

pre_U0float

scale factor for phosphor screen to convert intensity to PSL

formula: str or None

The chemical formula to use for absorption length calculations. If one is not provided, the chemical formula is assumed to be the same as the material name.

absorption_length(energy)[source]
property attributes_to_serialize
property density
deserialize(**kwargs)[source]
energy_absorption_length(energy)[source]
property formula: str
property material
serialize()[source]
property thickness
class hexrd.instrument.detector_coatings.Coating(**abstractlayer_kwargs)[source]

Bases: AbstractLayer

class hexrd.instrument.detector_coatings.Filter(**abstractlayer_kwargs)[source]

Bases: AbstractLayer

class hexrd.instrument.detector_coatings.Phosphor(**abstractlayer_kwargs)[source]

Bases: AbstractLayer

property attributes_to_serialize
property pre_U0
property readout_length