Import Geant4 5.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 16:57:27 +02:00
parent 330b82b769
commit 37fff30d2e
5733 changed files with 263867 additions and 74574 deletions
+50 -48
View File
@@ -1,6 +1,3 @@
-------------------------------------------------------------------
$Id: README,v 1.5 2002/06/13 15:59:43 guatelli Exp $
-------------------------------------------------------------------
=========================================================
Geant4 - Brachytherapy example
@@ -11,52 +8,63 @@ $Id: README,v 1.5 2002/06/13 15:59:43 guatelli Exp $
0. Introduction.
Brachytherapy example simulates energy deposition on a voxel grid
for a Ir brachytherapy source.
Brachytherapy example simulates energy deposition in a Phantom filled with
soft tissue for:
1) Ir brachytherapy source.
2) I brachytherapy source.
3) Leipzig Applicator.
1. Technical description
1.Technical information.
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.
The default source is an Ir source put in the center of the Phantom.
The Phantom is a box (dimension:30cm)
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.
2.How to run the example.
- run "Brachy" executable.
- you can run the example in batch or interative mode.
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
Default: batch mode with 1000 events
In interative mode, you can choose:
1)Ir source:
idle>/run/beamOn NumberOfEvents and then
idle> exit
2)Leipzig Applicator:
idle>/geom/switch Leipzig
idle>/run/beamOn NumberOfEvents and then
idle> exit
3) I source:
idle>/geom/switch Iodium
idle>/run/energy Iodium
idle>/run/beamOn NumberOfEvents
idle>exit
Before the run you can also change the absorber material of the Phantom:
idle>/detecor/setMaterial name
4)simulation output: brachytherapy.hbk
It contains:
1)1Dhistogram with the primary particle energy
2)2Dhistogram with the distribution of energy in the plane (x,z,energy)
2. Make
3)Ntuple with the energy deposit in the Phantom
1.3.the default visualization is with Dawn
5)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 /...
setenv CLHEP_BASE_DIR /afs/cern.ch/sw/geant4/dev/CLHEP/Linux-g++/1.7.5
#
# ---- Linux setup ----
#
@@ -95,7 +103,7 @@ setenv G4VIS_USE_DAWN 1
setenv G4VIS_USE_DAWNFILE 1
setenv PATH ${PATH}:"/afs/cern.ch/sw/geant4/dev/DAWN/Linux-g++"
setenv LD_LIBRARY_PATH $OGLHOME/lib
-----------------------------------------------------------------------------------
@@ -103,21 +111,15 @@ 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`
setenv PATH "${PATH}:/afs/cern.ch/sw/lhcxx/specific/redhat61/gcc-2.95.2/5.0.1/bin"
setenv G4ANALYSIS_AIDA_CONFIG_LIBS "-L/afs/cern.ch/sw/lhcxx/specific/redhat61/gcc-2.95.2/5.0.1/lib -lAnaphe_AIDA_AnalysisFactory_native -lAnaphe_AIDA_Annotation_native -lAnaphe_AIDA_Histogram_native -lAnaphe_AIDA_Tree_native -lAnaphe_AIDA_HBookStore -lg2c-forMinuit -lHepUtilities -lCLHEP -lAnaphe_AIDA_Tuple_native"
setenv G4ANALYSIS_AIDA_CONFIG_CFLAGS "-I/afs/cern.ch/sw/contrib/AIDA/3.0/src/cpp -I/afs/cern.ch/sw/lhcxx/specific/redhat61/gcc-2.95.2/5.0.1/include"
setenv ANAPHE5_REL_DIR /afs/cern.ch/sw/contrib/AIDA/3.0/src/cpp
setenv LD_LIBRARY_PATH /afs/cern.ch/sw/lhcxx/specific/redhat61/gcc-2.95.2/5.0.1/lib:$LD_LIBRARY_PATH
setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:"/afs/cern.ch/sw/lhcxx/specific/redhat61/gcc-2.95.2/5.0.1/lib"
# ---- 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