Skip to content

Compute Compton, Raleigh, Photoelectric and Pair Production Cross sections

License

Notifications You must be signed in to change notification settings

LazzyIzzi/MuMassCalculator

Repository files navigation

MuMassCalculator

A java library to Compute Compton, Raleigh, Photoelectric and Pair Production Cross sections

MuMassCalculator is derived from the NIST XCOM web application used to calculate photon cross sections for scattering, photoelectric absorption and pair production, as well as total attenuation coefficients, for any element, compound (Z ≤ 100), at energies from 1 keV to 100 GeV.

Acknowledgement:

XCOM: Photon Cross Sections DatabaseNIST Standard Reference Database 8 (XGAM), M.J. Berger, J.H. Hubbell, S.M. Seltzer, J. Chang, J.S. Coursey, R. Sukumar, D.S. Zucker, and K. Olsen, NIST, PML, Radiation Physics Division

See https://dx.doi.org/10.18434/T48G6X for detailed information about XCOM

Tabulated XCOM data is used with permission

Notes:

Unlike XCOM, MuMassCalculator does not support mixtures.

MuMassCalculator was developed with JavaSE-1.8 (64-bit) and tested in the Eclipse IDE and as an ImageJ PlugIn with ImageJ 1.53k

MuMassCalculator has no ImageJ dependencies.

See: https://imagej.nih.gov/ij/

Download: For convenience, please open the links below in new tabs or windows.
A MuMassCalculator jar file can be downloaded from the releases and contains the java source and class files.
Java docs pages can be viewed here.
Descriptions of the library and related ImageJ plugins based on this library can be viewed and downloaded from here.

Use:

ImageJ

Put the MuMassCalculator Jar and to the ImageJ/plugins/jars folder.
Put CT_Tool_Plugins.jar examples to the ImageJ/plugins folder. Restart ImageJ.

Eclipse

Put the MuMassCalculator Jar in your eclipse-workspace folder and add it to your project's buildpath.

An eclipse example class file

import jhd.MuMassCalculator.*;

public class MuMassTest {

public static void main(String[] args) {
	MuMassCalculator mmc = new MuMassCalculator();
	
	//get the tabulated photon energies for calcium carbonate between .001 and .1MeV
	double[] result = mmc.getMevArray("CA:1:C:1:O:3", .001, .1);		
	for(double mev : result)
	{
		System.out.println(mev);
	}
	
	//get the Total attenuation in cm2/gm for actinium at .1 MeV
	double theMuMass = mmc.getAtomMuMass("AC", .1, "Totattn");		
	System.out.println(theMuMass);
}

About

Compute Compton, Raleigh, Photoelectric and Pair Production Cross sections

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages