124 lines
3.6 KiB
Plaintext
124 lines
3.6 KiB
Plaintext
-------------------------------------------------------------------
|
|
$Id: README,v 1.5 2002/06/13 15:59:43 guatelli Exp $
|
|
-------------------------------------------------------------------
|
|
|
|
=========================================================
|
|
Geant4 - Brachytherapy example
|
|
=========================================================
|
|
|
|
README
|
|
---------------------
|
|
|
|
0. Introduction.
|
|
|
|
Brachytherapy example simulates energy deposition on a voxel grid
|
|
for a Ir brachytherapy source.
|
|
|
|
1. Technical description
|
|
|
|
1.0. the source is constructed in the
|
|
brachyDetectorConstruction class. The source is composed by
|
|
an iridium core encapsulated in a capsule (body + tip).
|
|
The source is put in the center of a 30*cm water box.
|
|
|
|
1.1. The water box is made sensitive detector. A longitudinal slice
|
|
of it is associated to a planar read out geometry. At every hit
|
|
energy deposition is read and stored in a 2D histogram.
|
|
|
|
1.2. the output is the file brachy2.hbk
|
|
(e.g. anysotropy and isodose calculations):
|
|
1)1Dhistogram with the spectrum of initial energy of gamma
|
|
2)2Dhistogram with the distribution of energy in the plane (x,z,energy)
|
|
2. Make
|
|
|
|
1.3.the default visualization is with Dawn
|
|
|
|
A standard Geant4 example GNUmakefile is provided.
|
|
|
|
2. Usage
|
|
|
|
run "Brachy" executable.
|
|
The framework in in interactive mode,so
|
|
you have to do:
|
|
idle>/run/beamOn ( numberofevents)
|
|
|
|
The output is ("brachy2.hbk")
|
|
|
|
|
|
|
|
|
|
------How to run the new version of AIDA:----------------------
|
|
|
|
|
|
1)Aida platform for Linux:gcc compiler 2.95.2
|
|
|
|
-------------------------enviroment with the compiler 2.95.2 on lxplus---------
|
|
|
|
|
|
setenv G4LEDATA /afs/cern.ch/sw/geant4/dev/data/G4EMLOW1.1
|
|
setenv G4INSTALL /...
|
|
#
|
|
# ---- Linux setup ----
|
|
#
|
|
|
|
setenv G4SYSTEM Linux-g++
|
|
|
|
#choose where you want to put the G4-libraries and G4workdir
|
|
|
|
setenv G4LIB ....
|
|
setenv G4WORKDIR ...
|
|
|
|
|
|
---visualization-----
|
|
|
|
|
|
|
|
# ---- set up VRMLview
|
|
setenv G4VIS_BUILD_VRMLFILE_DRIVER 1
|
|
setenv G4VIS_USE_VRML 1
|
|
setenv G4VIS_USE_VRMLFILE 1
|
|
setenv G4VRMLFILE_MAX_FILE_NUM 100
|
|
setenv G4VRMLFILE_VIEWER vrmlview #if installed
|
|
setenv G4VIS_USE_VRML 1
|
|
setenv G4VIS_USE_VRMLFILE 1
|
|
setenv PATH ${PATH}:"/afs/cern.ch/sw/contrib/VRML/bin/Linux"
|
|
|
|
# ---- set up OpenGL or Mesa
|
|
setenv G4VIS_BUILD_OPENGLX_DRIVER 1
|
|
setenv G4VIS_USE_OPENGLX 1
|
|
setenv OGLHOME /afs/cern.ch/sw/geant4/dev/Mesa/Linux-g++
|
|
|
|
# ---- set up DAWN
|
|
setenv G4VIS_BUILD_DAWN_DRIVER 1
|
|
setenv G4VIS_BUILD_DAWNFILE_DRIVER 1
|
|
setenv G4VIS_USE_DAWN 1
|
|
setenv G4VIS_USE_DAWNFILE 1
|
|
setenv PATH ${PATH}:"/afs/cern.ch/sw/geant4/dev/DAWN/Linux-g++"
|
|
|
|
|
|
|
|
-----------------------------------------------------------------------------------
|
|
|
|
|
|
# ---- Analysis----
|
|
|
|
setenv G4ANALYSIS_BUILD 1
|
|
setenv PATH "${PATH}:/afs/cern.ch/sw/lhcxx/specific/redhat61/gcc-2.95.2/4.0.0/bin"
|
|
source /afs/cern.ch/sw/lhcxx/share/LHCXX/4.0.0/install/sharedstart.csh
|
|
setenv G4ANALYSIS_AIDA_CONFIG_CFLAGS `aida-config --noLicense --include`
|
|
setenv G4ANALYSIS_AIDA_CONFIG_LIBS `aida-config --noLicense --libs`
|
|
|
|
# ---- add to the LD_LIBRARY_PATH
|
|
setenv LD_LIBRARY_PATH $OGLHOME/lib
|
|
#
|
|
# ---- end of Linux set-up ----
|
|
|
|
before running remenber to delete *.hbk
|
|
|
|
in the file brachy.py there are the instructions to visualize the histograms with the old version of Lizard;
|
|
|
|
in order to do that open another lxplus with egcs-2.91.66 and make:
|
|
source /afs/cern.ch/sw/lhcxx/share/LHCXX/3.6.3-sec/install/sharedstart.csh
|
|
then digit lizard in the directory where brachy3.hbk is and then follow the instruction of the brachy.py
|
|
|