Xray::...altout(3pm)
π« cross_section π«
okay bestie, welcome to the Xray::...altout(3pm) page π this lil guy lives in the User Contributed Perl Documentation, and it is so niche but so valid. let's get into it π§ͺβ¨
cross_section
example time, keep up π«Ά
$xsec = Xray::Absorption -> cross_section($elem, $energy, $mode);
@xsec = Xray::Absorption -> cross_section($elem, \@energy, $mode);
the $mode argument is different here than it is for the other resources, okay? not like the others, main character energy π
the options are:
"xsec""photo""coherent""incoherent"
and they tell this method to hand you back either the full cross-section, or just the photoelectric portion, or just the coherent portion, or just the incoherent portion. pick your fighter π
the values for all cross-sections are computed as log-log polynomials, exactly as described in the original paper by Shaltout et al. no cap π
πΈ NAME πΈ
Xray::Absorption::Shaltout β it's a Perl interface to the Shaltout tables. that's it, that's the whole vibe π
β¨ SYNOPSIS β¨
use Xray::Absorption;
Xray::Absorption -> load("shaltout");
if you want the full details, go read the documentation for Xray::Absorption β this page is just the Shaltout-flavoured side quest π¦
π DESCRIPTION π
this module gets inherited by the Xray::Absorption module, and it gives you access to the data inside:
Update of photoelectric absorption coefficients in the tables of McMaster Abdallah Shaltout, Horst Ebel, and Robert Svagera X-Ray Spectrometry (2006) vol. 35, p. 52-56
so the data lives in a database file called shaltout.db π and that file gets generated at install time from a flat text database of the data. where's the flat text version? it's over at http://www.ifp.tuwien.ac.at/forschung/abdallah.shaltout/, as explained in the reference. iconique π
also, the required Chemistry::Elements module is available from CPAN, in the miscellaneous modules section. go get it, bestie ποΈ
π¦ EDGE AND LINE ENERGIES π¦
the Shaltout data resource includes all K, L, M, and N edges β but it does not provide any of the line energies. so, like, a minimal set of line energies gets imported from the McMaster data resource instead. borrowing from the neighbours, we love to see it ππ
π BUGS AND THINGS TO DO π
this module has not been tested sufficiently. so like... be careful out there, fr fr π
π AUTHOR π
Bruce Ravel, bravel@bnl.govhttp://cars9.uchicago.edu/~ravel/software/Absorption/
aaaand that's a wrap on the Xray::...altout(3pm) page π
this was perl v5.34.0, dated 2022-06-28, and it's a whole Xray::...altout(3pm) moment β stay hydrated, stay calibrated, slay π«Άβ¨π
π¦ where this page comes from
- debian bookworm: libxray-absorption-perl 3.0.1-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libxray-absorption-perl 3.0.1-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libxray-absorption-perl 3.0.1-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libxray-absorption-perl 3.0.1-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libxray-absorption-perl 3.0.1-4 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms