Learn R Programming

libamtrack (version 0.6.3)

AT.beam.par.physical.to.technical: AT.beam.par.physical.to.technical

Description

Converts physical beam parameters of a symmetric, double lateral Gaussian shape beam, i.e. central (=peak) fluence and width (= 1 standard deviation) to technical, accelerator parameters, i.e. total number of particles and FWHM

Usage

AT.beam.par.physical.to.technical(fluence.cm2, sigma.cm)

Arguments

fluence.cm2
fluence in beam center (array of size n).
sigma.cm
beam width stdev (array of size n).

Value

  • Nresulting absolute particle numbers (array of size n)
  • FWHM.mmresulting FWHMs (in mm) (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_Phy sicsRoutines.c#L430

Examples

Run this code
# Technical parameters for a double Gaussian beam
# of Carbon ions at 270 MeV/u in water with 
# 0.5 cm sigma width and 1 Gy in the peak
AT.beam.par.physical.to.technical(  fluence.cm2 = AT.fluence.cm2.from.dose.Gy(
 E.MeV.u      = 270, 
                                                                              
 D.Gy         = 1.0, 
                                                                              
 particle.no  = AT.particle.no.from.particle.name("12C"), 
                                                                              
 material.no  = AT.material.no.from.material.name("Water, Liquid"),
                                                                              
 stopping.power.source.no = 2), 
                                    sigma.cm    = 0.5)

Run the code above in your browser using DataLab