Learn R Programming

libamtrack (version 0.6.3)

AT.CSDA.range.g.cm2: AT.CSDA.range.g.cm2

Description

Computes the CSDA range using the PSTAR data

Usage

AT.CSDA.range.g.cm2(E.initial.MeV.u, E.final.MeV.u, particle.no,
 material.no)

Arguments

E.initial.MeV.u
initial energy of particle per nucleon (array of size n).
E.final.MeV.u
final energy of particle per nucleon (array of size n).
particle.no
particle index (array of size n) (see also particle.no).
material.no
material index (see also material.no).

Value

  • CSDA.range.cm2.gresulting range (array of size n)

See Also

View the C source code here: http://sourceforge.net/apps/trac/libamtrack/browser/tags/0.6.3/src/AT_Dat aRange.c#L101

Examples

Run this code
# Range of 270 MeV/u carbon ions and 142 MeV/u protons in water
#AT.CSDA.range.g.cm2(    E.MeV.u               = c(270, 142),

#                        particle.no           =
# AT.particle.no.from.particle.name(c("12C", "1H")),

#                        material.no           =
# AT.material.no.from.material.name("Water, Liquid"))

Run the code above in your browser using DataLab