142 lines
5.5 KiB
Plaintext
142 lines
5.5 KiB
Plaintext
$Id: README,v 1.17 2010-11-26 02:39:14 guatelli Exp $
|
|
-------------------------------------------------------------------
|
|
|
|
=========================================================
|
|
Geant4 - human_phantom example
|
|
=========================================================
|
|
|
|
README
|
|
-----------------------
|
|
|
|
Authors: S. Guatelli (susanna@uow.edu.au), University of Wollongong, Australia, and M. G. Pia (pia@ge.infn.it),
|
|
INFN Genova, Italy.
|
|
|
|
------> Introduction
|
|
|
|
The human_phantom example models anthropomorphic phantoms for
|
|
Geant4 simulations.
|
|
Two models are available: MIRD [1] and ORNL [2] (Male and Female for each approach).
|
|
|
|
[1] W.S. Snyder, et al, "MIRD Pamphlet No. 5 Revised, Estimates of
|
|
absorbed fractions for monoenergetic photon sources uniformly distributed
|
|
in various organs of a heterogeneous phantom",
|
|
J. Nucl. Med. Suppl., no. 3, pp. 5-52, 1969.
|
|
|
|
[2] M. Cristy and K. F. Eckerman, "Specific absorbed fractions of energy
|
|
at various ages from internal photon sources", ORNL/TM-8381/VI, Apr. 1987.
|
|
|
|
The example is based on code developed by the undergraduate student
|
|
G. Guerrieri, University of Genova, Italy.
|
|
|
|
Note: this is a preliminary beta-version of the code; an improved
|
|
version will be distributed in the next future.
|
|
Currently the ORNL phantom is under review.
|
|
|
|
|
|
-----> Geometry
|
|
|
|
The process of building a phantom is handled through the Builder
|
|
design pattern.
|
|
The creation of coherent models of the human phantom is handled through
|
|
an Abstract Factory design pattern.
|
|
|
|
The organs of the MIRD phantom are implemented in hard-code; the organs of
|
|
the ORNL phantom are handled through GDML (Geometry Description Markup Language,
|
|
www.cern.ch/gdml). The materials of the MIRD model are defined in the
|
|
class G4HumanPhantomMaterial. The materials of the ORNL model are defined in
|
|
the GDML files.
|
|
If using ORNL phantom model with no GDML set-up a segmentation
|
|
fault will be otained when running the simulation.
|
|
|
|
*** Parameterized breast ***
|
|
MIRD Female model: a breast is analytical and derives from the MIRD
|
|
anthropomorphic phantom; the other breast derives from the model [3] and
|
|
it is voxelised.
|
|
|
|
[3] D.R. Dance and R. A. Hunt, "Voxel breast phantom to represent breasts
|
|
of different sizes and glandularities for use with a Monte Carlo simulation
|
|
program", Report RMTPC 02/1005.
|
|
|
|
|
|
-----> Physics
|
|
|
|
Particles: e-, e+, photon, geantino
|
|
Physics list: electromagnetic processes are active for photons, e- and e+
|
|
The threshold of production of secondary particles is set to 0.1 * mm.
|
|
|
|
-----> Primary particles
|
|
|
|
The primary particles are geantino.
|
|
UI commands:
|
|
|
|
/gun/energy energy : to change the energy of primary particles
|
|
/gun/particle particle_type : to change the type of primary particle
|
|
/gun/setBeam beamAlongX : generate a primary particle beam along the X axis
|
|
/gun/setBeam beamAlongY : generate a primary particle beam along the Y axis
|
|
/gun/setBeam beamAlongZ : generate a primary particle beam along the Y axis
|
|
/gun/setBeam isotropicFlux : generate a primary particle with random direction,
|
|
from a random point.
|
|
|
|
-----> Energy deposit
|
|
|
|
The energy deposit is calculated in the organs of the phantom.
|
|
At the end of the execution of the simulation the summary of the total energy deposit in
|
|
each organ is print out.
|
|
The user can set the sensitivity of each organ interactively through the UI command:
|
|
/bodypart/addBodyPart organName yes
|
|
(see adultFemale.mac as example)
|
|
|
|
If the sensitivity is not set ( /bodypart/addBodyPart organName no ),
|
|
the energy deposit is not calculated in the specific organ.
|
|
|
|
The energy deposit is calculated in each voxel of the parameterised breast.
|
|
|
|
-----> Analysis
|
|
|
|
output file: g4humanphantom.root containing
|
|
an ntuple with the Energy Deposit in each Body Part.
|
|
macro.C is provided to print the content of the ntuple in a ROOT
|
|
interactive analysis session.
|
|
|
|
----> Macro files: example of different human phantoms
|
|
|
|
default.mac is executed by default in the simulation
|
|
adultMIRDFemale.mac: example to define a MIRD female human phantom
|
|
adultMIRDMale.mac: example to define a MIRD male human phantom
|
|
adultHead.mac: example how to define one piece of the anatomy
|
|
adultORNLFemale.mac: example to define a ORNL female human phantom
|
|
adultORNLMale.mac: example to define a ORNL male human phantom
|
|
adultMIXFemale.mac : example of MIRD human female phantom with
|
|
parameterised breast
|
|
|
|
-----> Setup
|
|
|
|
A standard Geant4 example GNUmakefile is provided.
|
|
|
|
The following environment variables need to be set:
|
|
G4LEDATA : points to low energy data base
|
|
- Requires the GDML module to be installed with Geant4:
|
|
.
|
|
Set G4LIB_BUILD_GDML to 1 to model ORNL phantom
|
|
Set XERCESCROOT variable defining the path to the Xercec-C library
|
|
See also: http://cern.ch/gdml.
|
|
|
|
- IMPORTANT!!!! Customize the '*.gdml' schema file in the directories
|
|
gdmlData/Female and gdmlData/Male, specifying in the top line the
|
|
right path where to retrieve the main GDML schema file.
|
|
|
|
- Compile and link to generate an executable:
|
|
% gmake
|
|
|
|
- Execute the application:
|
|
% phantom
|
|
|
|
- Default macro: adultFemale.mac (MIRD, Female model)
|
|
- Other macros: adultMale.mac (MIRD, Male model)
|
|
adultORNLFemale.mac (ORNL, Female model)
|
|
adultORNLMale.mac (ORNL, Male model)
|
|
- Visualization macros: vrmlVis.mac, dawnVis.mac, openGLVis.mac, noVis.mac
|
|
- Run particles: run.mac
|
|
|
|
---------------------------------------------------------------------------
|