EGS Brachy
An egs++ user code for rapid brachytherapy calculations
Loading...
Searching...
No Matches
iaea_types.py
Go to the documentation of this file.
1import ctypes
2
3IAEA_Float = ctypes.c_float
4
5PIAEA_Float = ctypes.POINTER(IAEA_Float)
6
7IAEA_I16 = ctypes.c_short
8PIAEA_I16 = ctypes.POINTER(IAEA_I16)
9IAEA_I32 = ctypes.c_int
10PIAEA_I32 = ctypes.POINTER(IAEA_I32)
11IAEA_I64 = ctypes.c_longlong
12PIAEA_I64 = ctypes.POINTER(IAEA_I64)
13
14iaea_file_modes = {
15 'r': IAEA_I32(1),
16 'w': IAEA_I32(2),
17 'a': IAEA_I32(3)
18}
19
20all_particles = -1
21photons = 1
22electrons = 2
23positrons = 3
24neutrons = 4
25protons = 5
26
27particle_types = {
28 'all' : all_particles,
29 'photon' : photons,
30 'electron': electrons,
31 'positron': positrons,
32 'neutron' : neutrons,
33 'proton' : protons,
34 'charged' : (electrons,positrons,protons),
35 'neutral' : (photons,neutrons)
36}
37
38
39max_sources = 30