Description Usage Arguments Value See Also Examples
Retrieves the electronic mass stopping power in MeV*cm2/g for the requested energies and particles for a specified material and data source. The data source is thereby given via its name (s. AT_StoppingPowerData.h from details), except for data that should be read for a file, in this case the (path and) filename has to be provided. In this case, the user has to make sure that energy and stopping power units are correct and that the data match the given material (use material.no = 0 for custom-defined material). The file has to be plain ASCII with three columns (separated by space) charge, energy, and stopping power and sorted in ascending order by first charge than energy any alphanumeric comment can be inserted (in separate lines)
1 2 |
stopping.power.source |
name of the data source (see also
|
E.MeV.u |
kinetic energies in MeV per amu (array of size n) (see also
|
particle.no |
particle numbers (array of size n) (see also
|
material.no |
material number (see also |
stopping.power.MeV.cm2.g |
array to return stopping powers (array of size n) |
status |
status |
View the C source code here: http://sourceforge.net/apps/trac/libamtrack/browser/tags/0.6.3/src/AT_StoppingPower.c#L39
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | # Use stopping power data from Bethe equation
AT.Mass.Stopping.Power( E.MeV.u = 270.55,
particle.no = 6012,
material.no =
AT.material.no.from.material.name("Water, Liquid"),
stopping.power.source = "Bethe")
# Use stopping power data from PSTAR
AT.Mass.Stopping.Power( E.MeV.u = 270.55,
particle.no = 6012,
material.no =
AT.material.no.from.material.name("Water, Liquid"),
stopping.power.source = "PSTAR")
# Use stopping power data from ICRU
AT.Mass.Stopping.Power( E.MeV.u = 270.55,
particle.no = 6012,
material.no =
AT.material.no.from.material.name("Water, Liquid"),
stopping.power.source = "ICRU")
# Use stopping power data from file shipped with libamtrack
# For water:
AT.Mass.Stopping.Power( E.MeV.u = 270.55,
particle.no = 6012,
material.no =
AT.material.no.from.material.name("Water, Liquid"),
stopping.power.source = system.file("extdata",
"FLUKA_DEDX_WATER_76.8eV.txt", package = "libamtrack"))
# And alumina (CAVE: the data file contains stopping power in keV/um, which is
# return, despite the name of the function):
AT.Mass.Stopping.Power( E.MeV.u = 270.55,
particle.no = 6012,
material.no =
AT.material.no.from.material.name("Aluminum Oxide"),
stopping.power.source = system.file("extdata",
"FLUKA_DEDX_ALOX.txt", package = "libamtrack"))
# When using density scaling, the value becomes clearily wrong! Thus, do
# preferably use mass stopping power data in the files
AT.Stopping.Power( E.MeV.u = 270.55,
particle.no = 6012,
material.no =
AT.material.no.from.material.name("Aluminum Oxide"),
stopping.power.source = system.file("extdata",
"FLUKA_DEDX_ALOX.txt", package = "libamtrack"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.