skbeam.core.constants.xrf.XrayLibWrap_Energy

class skbeam.core.constants.xrf.XrayLibWrap_Energy(element, info_type, incident_energy)

This is an interface to wrap xraylib to perform calculation on fluorescence cross section, or other incident energy related quantity.

Parameters
elementint

atomic number

info_type{‘cs’, ‘csb’}, optional

option to calculate physics quantities which depend on incident energy. See Class attribute opts_info_type for valid options

cs

cross section, unit in cm2/g

csb

cross section, unit in barns/atom

incident_energyfloat

incident energy for fluorescence in KeV

Examples

>>> # Cross section of zinc with an incident X-ray at 12 KeV
>>> x = XrayLibWrap_Energy(30, 'cs', 12)
>>> # Compute the cross section of the Kα1 line.
>>> x['Ka1'] # cross section for Ka1, unit in cm2/g
34.68250086875594
>>> xb = XrayLibWrap_Energy(30, 'csb', 12)
>>> # Compute the cross section of the Kα1 line.
>>> xb['Ka1'] # cross section for Ka1, unit in barns/atom
3765.3415913117224
__init__(self, element, info_type, incident_energy)

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(self, element, info_type, …)

Initialize self.

get(self, key[, default])

items(self)

keys(self)

values(self)

Attributes

all

List the physics quantity for all the lines or shells.

incident_energy

Incident x-ray energy in keV, float

info_type

option to choose which physics quantity to calculate as follows:

opts_info_type