[1230] | 1 | $Id: README,v 1.14 2009/02/19 14:05:06 gcosmo Exp $ |
---|
[807] | 2 | ------------------------------------------------------------------- |
---|
| 3 | |
---|
| 4 | ========================================================= |
---|
| 5 | Geant4 - human_phantom example |
---|
| 6 | ========================================================= |
---|
| 7 | |
---|
| 8 | README |
---|
| 9 | ----------------------- |
---|
| 10 | |
---|
| 11 | Authors: S. Guatelli (guatelli@ge.infn.it) and M. G. Pia (pia@ge.infn.it), |
---|
| 12 | INFN Genova, Italy. |
---|
| 13 | |
---|
| 14 | ------> Introduction |
---|
| 15 | |
---|
| 16 | The human_phantom example models anthropomorphic phantoms for |
---|
| 17 | Geant4 simulations. |
---|
| 18 | Two models are available: MIRD [1] and ORNL [2] (Male and Female for each approach). |
---|
| 19 | |
---|
| 20 | [1] W.S. Snyder, et al, "MIRD Pamphlet No. 5 Revised, Estimates of |
---|
| 21 | absorbed fractions for monoenergetic photon sources uniformly distributed |
---|
| 22 | in various organs of a heterogeneous phantom", |
---|
| 23 | J. Nucl. Med. Suppl., no. 3, pp. 5-52, 1969. |
---|
| 24 | |
---|
| 25 | [2] M. Cristy and K. F. Eckerman, "Specific absorbed fractions of energy |
---|
| 26 | at various ages from internal photon sources", ORNL/TM-8381/VI, Apr. 1987. |
---|
| 27 | |
---|
| 28 | The example is based on code developed by the undergraduate student |
---|
| 29 | G. Guerrieri. |
---|
| 30 | Note: this is a preliminary beta-version of the code; an improved |
---|
| 31 | version will be distributed in the next Geant4 public release, compliant |
---|
| 32 | with the design in a forthcoming publication, and subject to a design |
---|
| 33 | and code review. |
---|
| 34 | |
---|
| 35 | -----> Geometry |
---|
| 36 | |
---|
| 37 | The process of building a phantom is handled through the Builder |
---|
| 38 | design pattern. |
---|
| 39 | The creation of coherent models of the human phantom is handled through |
---|
| 40 | an Abstract Factory design pattern. |
---|
| 41 | |
---|
| 42 | The organs of the MIRD phantom are implemented in hard-code; the organs of |
---|
[1230] | 43 | the ORNL phantom are handled through GDML (Geometry Description Markup Language, |
---|
| 44 | www.cern.ch/gdml). The materials of the MIRD model are defined in the |
---|
[807] | 45 | class G4HumanPhantomMaterial. The materials of the ORNL model are defined in |
---|
| 46 | the GDML files. |
---|
| 47 | |
---|
| 48 | *** Parameterized breast *** |
---|
| 49 | MIRD Female model: a breast is analytical and derives from the MIRD |
---|
| 50 | anthropomorphic phantom; the other breast derives from the model [3] and |
---|
| 51 | it is voxelised. |
---|
| 52 | |
---|
| 53 | [3] D.R. Dance and R. A. Hunt, "Voxel breast phantom to represent breasts |
---|
| 54 | of different sizes and glandularities for use with a Monte Carlo simulation |
---|
| 55 | program", Report RMTPC 02/1005. |
---|
| 56 | |
---|
| 57 | -----> Physics |
---|
| 58 | |
---|
| 59 | Particles: e-, e+, photon, geantino |
---|
| 60 | Physics list: electromagnetic processes are active for photons, e- and e+ |
---|
| 61 | The threshold of production of secondary particles is set to 0.1 * mm. |
---|
| 62 | |
---|
| 63 | -----> Primary particles |
---|
| 64 | |
---|
| 65 | The primary particles are geantino. |
---|
| 66 | UI commands: |
---|
| 67 | |
---|
| 68 | /gun/energy energy : to change the energy of primary particles |
---|
| 69 | /gun/particle particle_type : to change the type of primary particle |
---|
| 70 | /gun/setBeam beamAlongX : generate a primary particle beam along the X axis |
---|
| 71 | /gun/setBeam beamAlongY : generate a primary particle beam along the Y axis |
---|
| 72 | /gun/setBeam beamAlongZ : generate a primary particle beam along the Y axis |
---|
| 73 | /gun/setBeam isotropicFlux : generate a primary particle with random direction, |
---|
| 74 | from a random point. |
---|
| 75 | |
---|
| 76 | -----> Energy deposit |
---|
| 77 | |
---|
| 78 | The energy deposit is calculated in the organs of the phantom. |
---|
| 79 | At the end of the execution of the simulation the summary of the total energy deposit in |
---|
| 80 | each organ is print out. |
---|
| 81 | The user can set the sensitivity of each organ interactively through the UI command: |
---|
| 82 | /bodypart/addBodyPart organName yes |
---|
| 83 | (see adultFemale.mac as example) |
---|
| 84 | |
---|
| 85 | If the sensitivity is not set ( /bodypart/addBodyPart organName no ), |
---|
| 86 | the energy deposit is not calculated in the specific organ. |
---|
| 87 | |
---|
| 88 | The energy deposit is calculated in each voxel of the parameterised breast. |
---|
| 89 | |
---|
| 90 | -----> Analysis |
---|
| 91 | |
---|
| 92 | output file: g4humanphantom.hbk containing |
---|
| 93 | 1D histogram id=10: Particle Path Distribution (cm) |
---|
| 94 | 2D histogram id=20: Particle Projection XY (cm, cm) |
---|
| 95 | 2D histogram id=30: Particle Projection YZ (cm, cm) |
---|
| 96 | 2D histogram id=40: Particle Projection ZX (cm, cm) |
---|
| 97 | 2D histogram id=50: Energy Deposit (MeV, y axis) in Body Part (x axis) |
---|
| 98 | 2D histogram id=100: Edep(MeV) in the parameterized breast, x= slice, y= sector |
---|
| 99 | |
---|
| 100 | ----> Macro files: example of different human phantoms |
---|
| 101 | |
---|
| 102 | default.mac is executed by default in the simulation |
---|
| 103 | adultMIRDFemale.mac: example to define a MIRD female human phantom |
---|
| 104 | adultMIRDMale.mac: example to define a MIRD male human phantom |
---|
| 105 | adultHead.mac: example how to define one piece of the anatomy |
---|
| 106 | adultORNLFemale.mac: example to define a ORNL female human phantom |
---|
| 107 | adultORNLMale.mac: example to define a ORNL male human phantom |
---|
| 108 | adultMIXFemale.mac : example of MIRD human female phantom with |
---|
| 109 | parameterised breast |
---|
| 110 | |
---|
| 111 | -----> Setup |
---|
| 112 | |
---|
| 113 | A standard Geant4 example GNUmakefile is provided. |
---|
| 114 | |
---|
| 115 | The following environment variables need to be set: |
---|
| 116 | G4LEDATA : points to low energy data base |
---|
| 117 | set G4ANALYSIS_USE equal to 1 to activate the analysis |
---|
| 118 | |
---|
[1230] | 119 | - Requires the GDML module to be installed with Geant4: |
---|
| 120 | . |
---|
| 121 | Set G4LIB_BUILD_GDML to 1 |
---|
| 122 | Set XERCESCROOT variable defining the path to the Xercec-C library |
---|
| 123 | See also: http://cern.ch/gdml. |
---|
[807] | 124 | |
---|
| 125 | - IMPORTANT!!!! Customize the '*.gdml' schema file in the directories |
---|
[1230] | 126 | gdmlData/Female and gdmlData/Male, specifying in the top line the |
---|
[807] | 127 | right path where to retrieve the main GDML schema file. |
---|
| 128 | |
---|
[1230] | 129 | - Analysis set-up: AIDA 3.2.1, and iAIDA |
---|
[807] | 130 | Users can download the analysis tools from: |
---|
| 131 | http://aida.freehep.org/ |
---|
[1230] | 132 | http://iaida.dynalias.net/ |
---|
[807] | 133 | |
---|
| 134 | - Compile and link to generate an executable: |
---|
| 135 | % gmake |
---|
| 136 | |
---|
| 137 | - Execute the application: |
---|
| 138 | % phantom |
---|
| 139 | |
---|
| 140 | - Default macro: adultFemale.mac (MIRD, Female model) |
---|
| 141 | - Other macros: adultMale.mac (MIRD, Male model) |
---|
| 142 | adultORNLFemale.mac (ORNL, Female model) |
---|
| 143 | adultORNLMale.mac (ORNL, Male model) |
---|
| 144 | - Visualization macros: vrmlVis.mac, dawnVis.mac, openGLVis.mac, noVis.mac |
---|
| 145 | - Run particles: run.mac |
---|
| 146 | |
---|
| 147 | --------------------------------------------------------------------------- |
---|