Import Geant4 10.5.0 source tree

This commit is contained in:
Gabriele Cosmo
2018-12-07 15:15:39 +01:00
parent 6aa23be517
commit db49709b53
11370 changed files with 187480 additions and 160142 deletions
+143
View File
@@ -0,0 +1,143 @@
# G.A.P.Cirrone
#
# Default macro file. It is called if no argument is provided at run
#
# i.e. simply typing $G4WORKDIR/bin/Linux-++/Hadrontherapy <no argument here!>
#
# This macro can be used for a proton beam in water. Both electrmagnetic and
# hadronic models are swiched on
#########################
# Set of the verboses
#
/control/verbose 1
/tracking/verbose 0
/run/verbose 1
/event/verbose 0
##########################
# Set of the physic models
#
/Physics/addPhysics QGSP_BIC_EMY
/run/numberOfThreads 4
##########################
# INFN-LNS transport beam line,
# normally used for interdisciplinary
# researches with carbon and
# and other ion beams is activated
# with the following command
#
/geometrySetup/selectGeometry Carbon
##########################
# Initialisation procedure
#
/run/initialize
##########################
# Visualisation
#
#/vis/open OGLI 600x600-0+0
# Disable auto refresh and quieten vis messages whilst scene and
# trajectories are established:
#/vis/viewer/set/autoRefresh false
#/vis/verbose errors
#/vis/drawVolume
#/vis/viewer/set/viewpointThetaPhi 30 140 deg
#/vis/viewer/zoom 1
#/vis/viewer/pan -10 0 cm
#/vis/scene/add/trajectories smooth
#/vis/scene/endOfEventAction accumulate
#/vis/viewer/set/autoRefresh true
#/vis/verbose warnings
##########################
# Set here the cut and the step max for the tracking.
# Suggested values of cut and step:
# Set cuts OUTSIDE the detector
/run/setCut 10 mm
# Set cuts ONLY inside the detector
#
/run/setCutForRegion DetectorLog 0.1 mm
/Step/waterPhantomStepMax 0.1 mm
##########################################################################################################
# PRIMARY PARTICLES
# the beam spot is centered at the origin and is
# of 1d gaussian shape with a 3mm central plateau
#
#---------------------------gps-----------------
/gps/pos/shape Circle
/gps/pos/centre -80. 0. 0. mm
/gps/pos/radius 0. mm
/gps/pos/sigma_r 2. mm
/gps/particle ion
/gps/ion 6 12 6
/gps/pos/type Beam
# the incident surface is in the y-z plane
/gps/pos/rot1 0 1 0
/gps/pos/rot2 0 0 1
# the beam is travelling along the x-axis without any angular dispersion (angular despersion set to 0.0)
#
/gps/ang/rot1 0 0 1
/gps/ang/rot2 0 1 0
/gps/ang/type beam1d
/gps/ang/sigma_r 0. deg
# the beam energy is in gaussian profile
#
/gps/ene/type Gauss
/gps/ene/mono 744 MeV
/gps/ene/sigma 0.740 MeV
# Voxelised detector
/changePhantom/size 40 40 40 cm
/changePhantom/position 20 0 0 cm
/changeDetector/size 4 4 4 cm
/changeDetector/voxelSize .1 40 40 mm
# Put the detector in the lower left corner of the phantom
/changeDetector/displacement 0 18 18 cm
/changePhantom/update
/changeTheSource/VirtualLayer true
/changeTheSource/VirtualLayerPosition -4 0 0 cm
/primaryParticleData/NewSource true
/primaryParticleData/calculatedPhaseSpaceFileIN Layer_TuttaLinea.txt
#########################
# Display the event number
# during the run
#
/run/printProgress 1000
# Compute Dose and Fluence for secondary
#/analysis/secondary true
#########################
# Start of the run
#
#########################
/run/beamOn 1
@@ -1,11 +0,0 @@
# GNUmakefile for macro directory, Gillis Danielsen
all:
make doc
doc:
doxygen ./configureDoxygen
viewdoc:
make doc
firefox ../../hadrontherapyDoxygen/html/index.html
@@ -1,30 +0,0 @@
#
# This file permits to customize, with commands,
# the menu bar of the G4UIXm, G4UIWin32 sessions.
# It has no effect with G4UIterminal.
# File :
/gui/addMenu file File
/gui/addButton file Continue continue
/gui/addButton file Exit "exit"
#
# Run menu :
/gui/addMenu run Run
/gui/addButton run "beamOn 1" "/run/beamOn 1"
/gui/addButton run "beamOn 10" "/run/beamOn 10"
/gui/addButton run "beamOn 100" "/run/beamOn 100"
/gui/addButton run run1 "/control/execute defaultMacro.mac"
#
# Gps menu :
/gui/addMenu gps Particle
/gui/addButton gps "Proton" "/gps/particle proton"
/gui/addMenu gps Energy
/gui/addButton gps "15 MeV" "/gps/energy 15 MeV"
/gui/addButton gps "30 MeV" "/gps/energy 30 MeV"
/gui/addButton gps "60 MeV" "/gps/energy 60 MeV"
#
# Macro menu
/gui/addMenu control "Macro"
/gui/addButton control "Hadron-therapy" "/control/execute macro/hadron_therapy.mac"
@@ -0,0 +1,39 @@
/Physics/addPhysics QGSP_BIC_EMY
/geometrySetup/selectGeometry Carbon
/run/initialize
/run/setCut 1 mm
/run/setCutForRegion DetectorLog 1 km
/Step/waterPhantomStepMax 10 um
/gps/particle ion
/gps/ion 6 12 6
/gps/position 0. 0. 0. cm
/gps/ene/type Gauss
/gps/ene/mono 2244 MeV
/gps/direction 1 0 0
/changePhantom/size 40 40 40 cm
/changePhantom/position 20 0 0 cm
/changePhantom/material G4_WATER
/changeDetector/voxelSize .02 40 40 mm
/changeDetector/size 120 40 40 mm
/changeDetector/displacement 0 18 18 cm # With respect to the phantom
/changePhantom/update
/event/printEventNumber 100
### RBE (CHO cell line)
/rbe/calculation 1
/rbe/verbose 2
/rbe/loadLemTable data/rbe/CHOScholz1997_LEM.csv
/rbe/cellLine CHO
/rbe/doseScale 320000
# Dose scale should be: 2e7 / nEvents * voxelSizeInCm2
/run/printProgress 100
/run/beamOn 1000
@@ -0,0 +1,3 @@
# macro to be run in loop
/modulator/angle 1 deg
/run/beamOn 100
+89
View File
@@ -0,0 +1,89 @@
/Physics/addPhysics QGSP_BIC_EMY
# /geometrySetup/selectGeometry Carbon
/run/initialize
/run/setCut 1 mm
/run/setCutForRegion DetectorLog 1 km
/Step/waterPhantomStepMax 10 um
# /gps/particle proton
# /gps/pos/centre 0. 0. 0. cm
# /gps/pos/type Beam
# /gps/pos/rot1 0 1 0
# /gps/pos/rot2 0 0 1
# /gps/ene/type Gauss
# /gps/ene/mono 62 MeV
# /gps/direction 1 0 0
#---------------------------gps-----------------
/gps/pos/shape Circle
/gps/pos/centre -310. 0. 0. cm
/gps/pos/radius 0. mm
/gps/pos/sigma_r 2.5 mm
/gps/particle proton
/gps/pos/type Beam
/gps/pos/rot1 0 1 0
/gps/pos/rot2 0 0 1
/gps/ang/rot1 0 0 1
/gps/ang/rot2 0 1 0
/gps/ang/type beam1d
/gps/ang/sigma_r 0. deg
/gps/ene/type Gauss
/gps/ene/mono 62 MeV
/gps/ene/sigma 0.3 MeV
#--------------detector and phantom-----------------
/changePhantom/size 40 40 40 cm
/changePhantom/position 20 0 0 cm
/changePhantom/material G4_WATER
/changeDetector/voxelSize .02 40 40 mm
/changeDetector/size 120 40 40 mm
/changeDetector/displacement 0 18 18 cm # With respect to the phantom
/changePhantom/update
# /score/create/boxMesh boxMesh_1
# /score/mesh/translate/xyz 60. 20. 20. mm
# /score/mesh/boxSize 60. 20. 20. mm
# /score/mesh/nBin 6000 1 1
# /score/quantity/doseDeposit dose
# /score/close
/event/printEventNumber 100
### RBE
/rbe/verbose 2
/rbe/loadLemTable data/rbe/lem1.csv
/rbe/calculation 1
/rbe/accumulate 1
## U87
#/rbe/dcut 8.0 gray
#/rbe/alphaX 0.11 gray(-1)
#/rbe/betaX 0.06 gray(-2)
#/rbe/lemTable data/rbe/U87_LEM.dat
/rbe/cellLine U87
## AG01522
#/rbe/dcut 9.5 gray
#/rbe/alphaX 0.54 gray(-1)
#/rbe/betaX 0.062 gray(-2)
#/rbe/lemTable data/rbe/AG01522_LEM.dat
/rbe/doseScale 7777770
# Dose scale should be: 2e7 / nEvents * voxelSizeInCm2
/modulator/ReadData Modulators/Modulator010.txt
/modulator/RMWMat G4_PLEXIGLASS
/modulator/position -2160.5 30 50 mm
/modulator/innerRadius 2.5 cm
/modulator/outRadius 9.5 cm
# Running in loop
/control/alias initialValue 0
/control/alias finalValue 360
/control/alias stepSize 1
/control/loop macro/RBE-62MeV-proton-modulator.loop counterName {initialValue} {finalValue} {stepSize}
@@ -8,55 +8,41 @@
#########################
# Set of the verboses
#
/control/verbose 1
/control/verbose 0
/tracking/verbose 0
/run/verbose 1
/run/verbose 0
/event/verbose 0
##########################
# Set of the physic models
#
#/Physics/addPhysics QGSP_BIC_EMY
/Physics/addPhysics HADRONTHERAPY_1
/run/numberOfThreads 4
/run/numberOfThreads 1
##########################
# Initialisation procedure
#
/run/initialize
##########################
# Visualisation
#
/vis/open OGLI 600x600-0+0
# Disable auto refresh and quieten vis messages whilst scene and
# trajectories are established:
/vis/viewer/set/autoRefresh false
#/vis/verbose errors
/vis/drawVolume
/vis/viewer/set/viewpointThetaPhi 30 140 deg
#/vis/viewer/zoom 1
#/vis/viewer/pan -10 0 cm
/vis/scene/add/trajectories smooth
/vis/scene/endOfEventAction accumulate
/vis/viewer/set/autoRefresh true
/vis/verbose warnings
####################################################
# Set here the CUT and the STEP MAX for the tracking.
# Suggested values of cut and step
#
# Set cuts OUTSIDE the detector
#
/run/setCut 1 mm
/run/setCut 1 m
# Set cuts ONLY inside the detector
#
/run/setCutForRegion DetectorLog 0.1 mm
/Step/waterPhantomStepMax 0.1 mm
/run/setCutForAGivenParticle e- 0.1 mm
/run/setCutForAGivenParticle e+ 0.1 mm
/run/setCutForAGivenParticle proton 0.1 mm
#/Step/waterPhantomStepMax 0.1 mm
#########################
# Set the primary particle type,
@@ -69,6 +55,8 @@
/gps/pos/radius 0. mm
/gps/pos/sigma_r 2. mm
/gps/particle proton
#/gps/particle ion
#/gps/ion 6 12 6
/gps/pos/type Beam
# the incident surface is in the y-z plane
@@ -87,8 +75,10 @@
# the beam energy is in gaussian profile
#
/gps/ene/type Gauss
/gps/ene/mono 62.4 MeV
/gps/ene/sigma 0.25 MeV
/gps/ene/mono 60.0 MeV
#/gps/ene/sigma 0.25 MeV
#/gps/ene/mono 744 MeV
#/gps/ene/sigma 0.740 MeV
###################################################
# DETECTOR DESCRIPTION
@@ -124,11 +114,12 @@
# Start of the run
#
# If secondary particles dose & fluence are needed
#/analysis/secondary true
#/analysis/computeLet
/analysis/secondary true
/analysis/computeLet
# Default material is water liquid
#/changePhantom/material G4_PLEXIGLASS
/changePhantom/material G4_WATER
/run/printProgress 1000
/run/beamOn 100000
/run/beamOn 1000
/tracking/verbose 0
@@ -0,0 +1,144 @@
# G.A.P.Cirrone,
# pablo.cirrone@lns.infn.it
#
# Default macro file. It is called if no argument is provided at run
# and when the PHYSLIST enviroment variable is OFF
# i.e. simply typing $G4WORKDIR/bin/Linux-++/Hadrontherapy <no argument here!>
#########################
# Set of the verboses
#
/control/verbose 0
/tracking/verbose 0
/run/verbose 0
/event/verbose 0
##########################
# Set of the physic models
#
#/Physics/addPhysics QGSP_BIC_EMY
/Physics/addPhysics HADRONTHERAPY_1
/run/numberOfThreads 1
##########################
# Initialisation procedure
#
/run/initialize
##########################
# Visualisation
#
/vis/open OGLI 600x600-0+0
# Disable auto refresh and quieten vis messages whilst scene and
# trajectories are established:
/vis/viewer/set/autoRefresh false
/vis/verbose errors
/vis/drawVolume
/vis/viewer/set/viewpointThetaPhi 30 140 deg
/vis/viewer/zoom 1
/vis/viewer/pan -10 0 cm
/vis/scene/add/trajectories smooth
/vis/scene/endOfEventAction accumulate
/vis/viewer/set/autoRefresh true
/vis/verbose warnings
####################################################
# Set here the CUT and the STEP MAX for the tracking.
# Suggested values of cut and step
#
# Set cuts OUTSIDE the detector
#
/run/setCut 1 m
# Set cuts ONLY inside the detector
#
/run/setCutForRegion DetectorLog 0.1 mm
/run/setCutForAGivenParticle e- 0.1 mm
/run/setCutForAGivenParticle e+ 0.1 mm
/run/setCutForAGivenParticle proton 0.1 mm
#/Step/waterPhantomStepMax 0.1 mm
#########################
# Set the primary particle type,
# energy and position along the X direction
#
#---------------------------gps-----------------
/gps/pos/shape Circle
/gps/pos/centre -310. 0. 0. cm
/gps/pos/radius 0. mm
/gps/pos/sigma_r 2. mm
/gps/particle proton
#/gps/particle ion
#/gps/ion 6 12 6
/gps/pos/type Beam
# the incident surface is in the y-z plane
#
/gps/pos/rot1 0 1 0
/gps/pos/rot2 0 0 1
# the beam is travelling along the x-axis without any angular dispersion (angular despersion set to 0.0)
#
/gps/ang/rot1 0 0 1
/gps/ang/rot2 0 1 0
/gps/ang/type beam1d
/gps/ang/sigma_r 0.028 deg
# the beam energy is in gaussian profile
#
/gps/ene/type Gauss
/gps/ene/mono 60.0 MeV
#/gps/ene/sigma 0.25 MeV
#/gps/ene/mono 744 MeV
#/gps/ene/sigma 0.740 MeV
###################################################
# DETECTOR DESCRIPTION
########################################################
# USE THE FOLLOWING FOUR LINES FOR DEFINITION OF PHANTOM
########################################################
#
#/changePhantom/position 20. 0. 0. cm
#/changePhantom/update
/changePhantom/size 40 40 40 cm
/changePhantom/position 20 0 0 cm
###################################################
# USE THE FOLLOWING FOR A VOXELLIZED DETECTOR
###################################################
#
/changeDetector/size 4 4 4 cm
/changeDetector/voxelSize .1 40 40 mm
# Put the detector in the lower left corner of the phantom
#
/changeDetector/displacement 0 18 18 cm
/changePhantom/update
#########################
# Display the event number
# during the run
#
/event/printEventNumber 100
#########################
# Start of the run
#
# If secondary particles dose & fluence are needed
/analysis/secondary true
/analysis/computeLet
# Default material is water liquid
/changePhantom/material G4_WATER
/run/printProgress 1000
/run/beamOn 1000
/tracking/verbose 0
@@ -1,3 +1,3 @@
# macro to be run in loop
/modulator/angle 1 deg
/run/beamOn 10
/run/beamOn 100000
@@ -31,7 +31,9 @@
##########################
# Set of the physic models
#
/Physics/addPhysics QGSP_BIC_EMY
/Physics/addPhysics HADRONTHERAPY_1
/run/numberOfThreads 7
##########################
# Initialisation procedure
@@ -41,17 +43,16 @@
##########################
# Visualisation
#
/vis/scene/create
/vis/open OGLI
/vis/viewer/flush
/vis/viewer/set/viewpointThetaPhi 50 130 deg
/vis/scene/add/axes 0 0 0 0.1 m
/vis/viewer/zoom 1
/vis/viewer/panTo -80 40 cm
/vis/scene/add/trajectories
/vis/viewer/update
/vis/scene/endOfEventAction accumulate
/vis/viewer/set/hiddenMarker 1
#/vis/open OGLI 600x600-0+0
#/vis/viewer/flush
#/vis/viewer/set/viewpointThetaPhi 50 130 deg
#/vis/scene/add/axes 0 0 0 0.1 m
#/vis/viewer/zoom 1
#/vis/viewer/panTo -80 40 cm
#/vis/scene/add/trajectories
#/vis/viewer/update
#/vis/scene/endOfEventAction accumulate
#/vis/viewer/set/hiddenMarker 1
#########################
# Set the primary particle type,
# energy and position along the X direction
@@ -91,9 +92,12 @@
# Set here the cut and the step max for the tracking.
# Suggested values of cut and step:
#
#/Physics/setDetectorCuts 0.001 mm
#/Physics/setCuts 1 mm
/Step/waterPhantomStepMax 0.005 mm
/run/setCutForRegion DetectorLog 0.1 mm
# Cut for the rest of the volume
/run/setCut 1 mm
#/Step/waterPhantomStepMax 0.1 mm
/changePhantom/size 40 40 40 cm
/changePhantom/position 20 0 0 cm
@@ -124,7 +128,15 @@
/modulator/innerRadius 2.5 cm
/modulator/outRadius 9.5 cm
############################################################
/event/printEventNumber 1000
#########################
# Start of the run
#
# If secondary particles dose & fluence are needed
/analysis/secondary true
/analysis/computeLet
/run/printProgress 1000
# START OF THE MODULATOR ROTATION
# IT CONSISTS IN A COMPLETE ROTATION