Import Geant4 10.7.0.beta source tree
This commit is contained in:
@@ -1,143 +0,0 @@
|
||||
# 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,39 +0,0 @@
|
||||
/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
|
||||
@@ -1,3 +0,0 @@
|
||||
# macro to be run in loop
|
||||
/modulator/angle 1 deg
|
||||
/run/beamOn 100
|
||||
@@ -1,89 +0,0 @@
|
||||
/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}
|
||||
@@ -1,223 +0,0 @@
|
||||
# A: Tramontana
|
||||
# tramontana@lns.infn.it
|
||||
#
|
||||
# Macro file recommended for the use with laser-driven beam line and built-in physic list.
|
||||
# This macro uses the physics list already contained in the Geant4 distribution
|
||||
|
||||
#######################
|
||||
# Set of the verboses #
|
||||
#######################
|
||||
#
|
||||
/control/verbose 1
|
||||
/tracking/verbose 0
|
||||
/run/verbose 1
|
||||
/event/verbose 0
|
||||
|
||||
###########################################################################################################
|
||||
# ACTIVATED PHYSICS MODELS
|
||||
/Physics/addPhysics standard_opt4
|
||||
|
||||
/geometrySetup/selectGeometry LaserDriven
|
||||
|
||||
# Initialize geometry and physic
|
||||
/run/initialize
|
||||
##########################################################################################################
|
||||
############### Define the entrance beam: TARANIS angular distribution
|
||||
## beam->1-2
|
||||
#/gps/verbose 2
|
||||
/gps/source/intensity 3.6
|
||||
/gps/particle proton
|
||||
/gps/pos/type Beam
|
||||
/gps/pos/shape Circle
|
||||
/gps/pos/centre -171.3 0.0 0.0 cm
|
||||
/gps/pos/radius 0.007 mm
|
||||
/gps/pos/sigma_r 0. mm
|
||||
/gps/ang/rot1 0 0 1
|
||||
/gps/ang/rot2 0 1 0
|
||||
/gps/pos/rot1 0 0 1
|
||||
/gps/pos/rot2 0 1 0
|
||||
/gps/ang/type iso
|
||||
/gps/ang/mintheta 0 deg
|
||||
/gps/ang/maxtheta 26.69 deg
|
||||
/gps/ene/type Arb
|
||||
/gps/hist/type arb
|
||||
/gps/hist/point 1.1 3.5
|
||||
/gps/hist/point 3.1399999999999999 1.2
|
||||
/gps/hist/inter Exp
|
||||
|
||||
## beam->2-3
|
||||
#/gps/verbose 2
|
||||
/gps/source/add 0.98
|
||||
/gps/particle proton
|
||||
/gps/pos/type Beam
|
||||
/gps/pos/shape Circle
|
||||
/gps/pos/centre -171.3 0.0 0.0 cm
|
||||
/gps/pos/radius 0.007 mm
|
||||
/gps/pos/sigma_r 0. mm
|
||||
/gps/ang/rot1 0 0 1
|
||||
/gps/ang/rot2 0 1 0
|
||||
/gps/pos/rot1 0 0 1
|
||||
/gps/pos/rot2 0 1 0
|
||||
/gps/ang/type iso
|
||||
/gps/ang/mintheta 0 deg
|
||||
/gps/ang/maxtheta 23.49 deg
|
||||
/gps/ene/type Arb
|
||||
/gps/hist/type arb
|
||||
/gps/hist/point 3.14 0.98899
|
||||
/gps/hist/point 4.4499999999999999999 0.5382
|
||||
/gps/hist/inter Exp
|
||||
|
||||
## beam->3-4
|
||||
#/gps/verbose 2
|
||||
/gps/source/add 0.50003
|
||||
/gps/particle proton
|
||||
/gps/pos/type Beam
|
||||
/gps/pos/shape Circle
|
||||
/gps/pos/centre -171.3 0.0 0.0 cm
|
||||
/gps/pos/radius 0.007 mm
|
||||
/gps/pos/sigma_r 0. mm
|
||||
/gps/ang/rot1 0 0 1
|
||||
/gps/ang/rot2 0 1 0
|
||||
/gps/pos/rot1 0 0 1
|
||||
/gps/pos/rot2 0 1 0
|
||||
/gps/ang/type iso
|
||||
/gps/ang/mintheta 0 deg
|
||||
/gps/ang/maxtheta 19.8 deg
|
||||
/gps/ene/type Arb
|
||||
/gps/hist/type arb
|
||||
/gps/hist/point 4.45 1.0
|
||||
/gps/hist/point 5.4999999999999999 0.59
|
||||
/gps/hist/inter Exp
|
||||
|
||||
## beam->4-5
|
||||
#/gps/verbose 2
|
||||
/gps/source/add 0.25041
|
||||
/gps/particle proton
|
||||
/gps/pos/type Beam
|
||||
/gps/pos/shape Circle
|
||||
/gps/pos/centre -171.3 0.0 0.0 cm
|
||||
/gps/pos/radius 0.007 mm
|
||||
/gps/pos/sigma_r 0. mm
|
||||
/gps/ang/rot1 0 0 1
|
||||
/gps/ang/rot2 0 1 0
|
||||
/gps/pos/rot1 0 0 1
|
||||
/gps/pos/rot2 0 1 0
|
||||
/gps/ang/type iso
|
||||
/gps/ang/mintheta 0 deg
|
||||
/gps/ang/maxtheta 16.03 deg
|
||||
/gps/ene/type Arb
|
||||
/gps/hist/type arb
|
||||
/gps/hist/point 5.5 1.0
|
||||
/gps/hist/point 6.419999999999999999 0.60093
|
||||
/gps/hist/inter Exp
|
||||
|
||||
## beam->5-6
|
||||
#/gps/verbose 2
|
||||
/gps/source/add 0.140041
|
||||
/gps/particle proton
|
||||
/gps/pos/type Beam
|
||||
/gps/pos/shape Circle
|
||||
/gps/pos/centre -171.3 0.0 0.0 cm
|
||||
/gps/pos/radius 0.007 mm
|
||||
/gps/pos/sigma_r 0. mm
|
||||
/gps/ang/rot1 0 0 1
|
||||
/gps/ang/rot2 0 1 0
|
||||
/gps/pos/rot1 0 0 1
|
||||
/gps/pos/rot2 0 1 0
|
||||
/gps/ang/type iso
|
||||
/gps/ang/mintheta 0 deg
|
||||
/gps/ang/maxtheta 12.93 deg
|
||||
/gps/ene/type Arb
|
||||
/gps/hist/type arb
|
||||
/gps/hist/point 6.42 1.2
|
||||
/gps/hist/point 7.249999999999999999 0.670093
|
||||
/gps/hist/inter Exp
|
||||
|
||||
## beam->3
|
||||
#/gps/verbose 2
|
||||
/gps/source/add 0.120094
|
||||
/gps/particle proton
|
||||
/gps/pos/type Beam
|
||||
/gps/pos/shape Circle
|
||||
/gps/pos/centre -171.3 0.0 0.0 cm
|
||||
/gps/pos/radius 0.007 mm
|
||||
/gps/pos/sigma_r 0. mm
|
||||
/gps/ang/rot1 0 0 1
|
||||
/gps/ang/rot2 0 1 0
|
||||
/gps/pos/rot1 0 0 1
|
||||
/gps/pos/rot2 0 1 0
|
||||
/gps/ang/type iso
|
||||
/gps/ang/mintheta 0 deg
|
||||
/gps/ang/maxtheta 9.45 deg
|
||||
/gps/ene/type Arb
|
||||
/gps/hist/type arb
|
||||
/gps/hist/point 7.25 1.4
|
||||
/gps/hist/point 8.3 0.630513
|
||||
/gps/hist/inter Exp
|
||||
######################################################################
|
||||
#/gps/direction 1 0 0
|
||||
######################################################################
|
||||
# TARANIS energy spectrum without angular dipendence: exp(-.44E) for energy between 1. to 12 MeV
|
||||
###/gps/ene/type Exp
|
||||
###/gps/ene/min 1. MeV
|
||||
###/gps/ene/max 12. MeV
|
||||
###/gps/ene/ezero 2.272727273
|
||||
######################################################################
|
||||
/vis/scene/create
|
||||
/vis/open OGL
|
||||
/vis/viewer/set/background white
|
||||
/vis/viewer/set/viewpointThetaPhi 60 130
|
||||
/vis/viewer/zoom 1.0
|
||||
/vis/viewer/panTo -.27 -.0
|
||||
/vis/scene/add/axes 0 0 0 1 m
|
||||
/vis/scene/add/trajectories
|
||||
/vis/scene/endOfRunAction accumulate
|
||||
/vis/modeling/trajectories/create/drawByCharge
|
||||
/vis/scene/endOfEventAction accumulate -1
|
||||
/vis/viewer/update
|
||||
|
||||
################# change first collimator #################
|
||||
##/LaserDriven/EnergySelector/FirstCollimator/Radius 10.0 mm
|
||||
##/LaserDriven/EnergySelector/FirstCollimator/Thickness 20.0 mm
|
||||
##/LaserDriven/EnergySelector/FirstCollimator/zPosizion 42. mm
|
||||
################# change second collimator #################
|
||||
#/LaserDriven/EnergySelector/SecondCollimator/Radius 20.0 mm
|
||||
#/LaserDriven/EnergySelector/SecondCollimator/Thickness 20.0 mm
|
||||
#/LaserDriven/EnergySelector/SecondCollimator/zPosizion 42. mm
|
||||
######################## change slit ########################
|
||||
##/LaserDriven/EnergySelector/Slit/thickness 0.1 mm
|
||||
/LaserDriven/EnergySelector/Slit/HoleDimensionY 6. mm
|
||||
/LaserDriven/EnergySelector/Slit/HoleDimensionZ 3. mm
|
||||
/LaserDriven/EnergySelector/Slit/HolePositionZ 27.7 mm
|
||||
#Slit position
|
||||
# -0.5 mm -> 37.8 mm (4MeV)
|
||||
#-9.5 mm -> 27.7 mm (7MeV)
|
||||
#/LaserDriven/EnergySelector/Disable
|
||||
#/LaserDriven/Quadrupoles/DisableQuad4
|
||||
#####################################################################################################################
|
||||
##########################################################################################################
|
||||
# CUT AND STEP MAX
|
||||
# Suggested values of cut and step:
|
||||
# Set cuts OUTSIDE the detector
|
||||
#/run/setCut 1 mm
|
||||
# Set cuts ONLY inside the detector
|
||||
#/run/setCutForRegion DetectorLog 0.1 mm
|
||||
|
||||
/Step/waterPhantomStepMax 1 mm
|
||||
##############################################################################################################################
|
||||
# DETECTOR DESCRIPTION
|
||||
###################################################
|
||||
# USE THE FOLLOWING FOR A VOXELLIZED DETECTOR
|
||||
###################################################
|
||||
#
|
||||
/changePhantom/position 100 100 0 cm
|
||||
/changePhantom/size 40 40 40 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
|
||||
/event/printEventNumber 100
|
||||
|
||||
/run/beamOn 2000
|
||||
@@ -1,10 +1,7 @@
|
||||
# G.A.P.Cirrone,
|
||||
# pablo.cirrone@lns.infn.it
|
||||
# G.A.P.Cirrone, pablo.cirrone@lns.infn.it
|
||||
#
|
||||
# Default macro file with visualisation. It is called if no argument is provided at run
|
||||
#
|
||||
# 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
|
||||
#
|
||||
@@ -19,7 +16,7 @@
|
||||
#/Physics/addPhysics QGSP_BIC_EMY
|
||||
|
||||
/Physics/addPhysics HADRONTHERAPY_1
|
||||
/run/numberOfThreads 1
|
||||
/run/numberOfThreads 10
|
||||
|
||||
##########################
|
||||
# Initialisation procedure
|
||||
@@ -66,7 +63,6 @@
|
||||
|
||||
# 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
|
||||
@@ -75,8 +71,8 @@
|
||||
# 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 62.3 MeV
|
||||
/gps/ene/sigma 0.25 MeV
|
||||
#/gps/ene/mono 744 MeV
|
||||
#/gps/ene/sigma 0.740 MeV
|
||||
|
||||
@@ -104,12 +100,6 @@
|
||||
/changeDetector/displacement 0 18 18 cm
|
||||
/changePhantom/update
|
||||
|
||||
#########################
|
||||
# Display the event number
|
||||
# during the run
|
||||
#
|
||||
/event/printEventNumber 100
|
||||
|
||||
#########################
|
||||
# Start of the run
|
||||
#
|
||||
@@ -117,9 +107,33 @@
|
||||
/analysis/secondary true
|
||||
/analysis/computeLet
|
||||
|
||||
|
||||
### 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
|
||||
|
||||
|
||||
# Default material is water liquid
|
||||
/changePhantom/material G4_WATER
|
||||
|
||||
|
||||
/run/printProgress 1000
|
||||
/run/beamOn 1000
|
||||
/tracking/verbose 0
|
||||
/run/beamOn 50000
|
||||
|
||||
@@ -1,124 +0,0 @@
|
||||
# G.A.P.Cirrone,
|
||||
# pablo.cirronelns.infn.it
|
||||
#
|
||||
|
||||
# This default macro file is called when:
|
||||
# 1.- No macro file is provided at the application launch
|
||||
# 2.- The PHYSLIST enviroment variable is set to one of the
|
||||
# predifined reference Physics Lists
|
||||
#
|
||||
# The the complete list of the Reference Physiscs Lists can be found inside:
|
||||
# $G4INSTALL/source/physics_lists/lists/include
|
||||
|
||||
#########################
|
||||
# Set of the verboses
|
||||
#
|
||||
/control/verbose 1
|
||||
/tracking/verbose 0
|
||||
/run/verbose 1
|
||||
/event/verbose 0
|
||||
|
||||
##########################
|
||||
# Initialisation procedure
|
||||
#
|
||||
/run/initialize
|
||||
|
||||
##########################
|
||||
# Visualisation
|
||||
#
|
||||
/vis/scene/create
|
||||
/vis/open OGL
|
||||
/vis/viewer/flush
|
||||
/vis/viewer/set/viewpointThetaPhi 30 140 deg
|
||||
/vis/viewer/zoom 1
|
||||
/vis/viewer/pan -10 0 cm
|
||||
/vis/scene/add/trajectories
|
||||
/vis/scene/endOfEventAction accumulate
|
||||
|
||||
####################################################
|
||||
# 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
|
||||
|
||||
# Set cuts ONLY inside the detector
|
||||
#
|
||||
/run/setCutForRegion DetectorLog 0.1 mm
|
||||
|
||||
#/Step/waterPhantomStepMax 0.1 mm
|
||||
|
||||
#########################
|
||||
# Set the primary particle type,
|
||||
# energy and position along the X direction
|
||||
#
|
||||
/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/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.1 deg
|
||||
|
||||
|
||||
# the beam energy is in gaussian profile
|
||||
#
|
||||
/gps/ene/type Gauss
|
||||
/gps/ene/mono 62 MeV
|
||||
/gps/ene/sigma 0.3 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
|
||||
|
||||
# Default material is water liquid
|
||||
#/changePhantom/material G4_PLEXIGLASS
|
||||
|
||||
/run/beamOn 10
|
||||
|
||||
/control/shell mkdir -p SimulationOutputs/proton/BraggPeak
|
||||
/control/shell mv DoseDistribution.root SimulationOutputs/proton/BraggPeak/protonBraggPeak.root
|
||||
@@ -1,151 +0,0 @@
|
||||
# G.A.P.Cirrone
|
||||
# cirrone@lns.infn.it
|
||||
#
|
||||
# Macro file recommended for the use with proton beams and built-in physic list.
|
||||
# This macro uses the physics list already contained in the Geant4 distribution
|
||||
#
|
||||
# The 'Reference Physics Lists' can be activated setting a specific enviroment variable to the name
|
||||
# of the physics. For example if the QGSP_BIC Reference Physics Lists must be activated the User
|
||||
# must set export PHYSLIST=QGSP_BIC (or setenv PHYSLIST QGSP_BIC).
|
||||
# A 'Reference Physics Lists' contains all the physics process necessary to a particle transport
|
||||
# If the User set the PHYSLIST variable Hadrontherapy will start with the defaultMacroWithReferencePhysicsList.mac
|
||||
# macro. See this macro file for more details
|
||||
|
||||
#########################
|
||||
# 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
|
||||
|
||||
|
||||
|
||||
##########################
|
||||
# Initialisation procedure
|
||||
#
|
||||
/run/initialize
|
||||
|
||||
#########################
|
||||
# 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/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 62 MeV
|
||||
/gps/ene/sigma 0.3 MeV
|
||||
|
||||
#/beamLine/RangeShifter/RSMat G4_PLEXIGLASS
|
||||
#/beamLine/RangeShifter/thickness 13 mm
|
||||
/beamLine/FinalCollimator/halfInnerRad 12.5 mm
|
||||
|
||||
##########################
|
||||
# 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
|
||||
|
||||
# Set cuts ONLY inside the detector
|
||||
#
|
||||
/run/setCutForRegion DetectorLog 0.05 mm
|
||||
|
||||
/Step/waterPhantomStepMax 1 mm
|
||||
|
||||
#########################
|
||||
##############################################################################################################################
|
||||
# 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
|
||||
|
||||
|
||||
# Visualisation
|
||||
#
|
||||
/vis/scene/create
|
||||
/vis/open OGL
|
||||
/vis/viewer/flush
|
||||
/vis/viewer/set/viewpointThetaPhi 30 140 deg
|
||||
/vis/viewer/zoomTo 1
|
||||
#/vis/viewer/panTo 100 20 cm
|
||||
/vis/viewer/panTo -10 0 cm
|
||||
/vis/scene/add/trajectories
|
||||
/tracking/storeTrajectory 1
|
||||
/vis/scene/endOfEventAction accumulate -1
|
||||
/vis/viewer/update
|
||||
|
||||
#########################
|
||||
# Display the event number
|
||||
# during the run
|
||||
#
|
||||
/event/printEventNumber 1
|
||||
|
||||
|
||||
# Default material is liquid water (G4_WATER)
|
||||
#/changePhantom/material G4_Pb
|
||||
|
||||
# For dose/fleunce computation of primary and secondary particles
|
||||
#/analysis/secondary true
|
||||
|
||||
# For dose average LET computations of primary and secondary particles
|
||||
#/analysis/computeLet
|
||||
|
||||
/run/beamOn 10
|
||||
#########################
|
||||
# Move the generated .root & .out
|
||||
# files into the
|
||||
# "SimulationOutputs" folder
|
||||
# if this folder has been created
|
||||
|
||||
/control/shell mv DoseDistribution.root experimentalData/proton/BraggPeak/protonBraggPeak.root
|
||||
/control/shell mv Dose.out experimentalData/proton/BraggPeak/Dose.out
|
||||
|
||||
@@ -1,130 +0,0 @@
|
||||
|
||||
#######################
|
||||
# Set of the verboses #
|
||||
#######################
|
||||
#
|
||||
/control/verbose 1
|
||||
/tracking/verbose 0
|
||||
/run/verbose 1
|
||||
/event/verbose 0
|
||||
|
||||
###########################################################################################################
|
||||
# ACTIVATED PHYSICS MODELS
|
||||
/Physics/addPhysics standard_opt4
|
||||
|
||||
/geometrySetup/selectGeometry LaserDriven
|
||||
|
||||
# Initialize geometry and physic
|
||||
/run/initialize
|
||||
##########################################################################################################
|
||||
##########Cut ##########
|
||||
|
||||
/run/setCut 0.01 mm
|
||||
|
||||
# Set cuts ONLY inside the detector
|
||||
#
|
||||
#/run/setCutForRegion DetectorLog 0.1 mm
|
||||
|
||||
/Step/waterPhantomStepMax 1 mm
|
||||
|
||||
|
||||
############### Input proton beam at the entrance of Faraday Cup after ESS
|
||||
|
||||
/gps/particle proton
|
||||
/gps/pos/type Beam
|
||||
/gps/pos/shape Circle
|
||||
/gps/pos/centre -175. 0.0 0.0 mm
|
||||
/gps/pos/radius 1.5 mm
|
||||
|
||||
#/gps/ang/rot1 0 0 1
|
||||
#/gps/ang/rot2 0 1 0
|
||||
|
||||
#/gps/pos/rot1 0 0 1
|
||||
#/gps/pos/rot2 0 1 0
|
||||
|
||||
########### The beam axis after the ESS final collimator is at 1.5 deg respect to the x-axis in the z direction ###########
|
||||
|
||||
/gps/ang/rot1 -0.0261 0 0.999
|
||||
/gps/ang/rot2 0 0.999 -0.0261
|
||||
|
||||
/gps/pos/rot1 -0.026 0 0.999
|
||||
/gps/pos/rot2 0 0.999 -0.026
|
||||
|
||||
############################### Input after last collimator 4 MeV ###############################
|
||||
|
||||
/gps/ang/type iso
|
||||
/gps/ang/mintheta 0 deg
|
||||
/gps/ang/maxtheta 0.7 deg
|
||||
|
||||
/gps/ene/type Arb
|
||||
/gps/hist/type arb
|
||||
|
||||
/gps/hist/point 3.93962 0.149951784
|
||||
/gps/hist/point 4.02586 0.486981678
|
||||
/gps/hist/point 4.1121 0.870781099
|
||||
/gps/hist/point 4.19834 0.949373192
|
||||
/gps/hist/point 4.28458 0.910318226
|
||||
/gps/hist/point 4.37082 0.864995178
|
||||
/gps/hist/point 4.45706 1
|
||||
/gps/hist/point 4.5433 0.884763742
|
||||
/gps/hist/point 4.62954 0.467213115
|
||||
/gps/hist/point 4.71578 0.141755063
|
||||
/gps/hist/inter Lin
|
||||
################################################################################################
|
||||
|
||||
|
||||
############################### Input after last collimator 7 MeV ###############################
|
||||
|
||||
#/gps/ang/type iso
|
||||
#/gps/ang/mintheta 0 deg
|
||||
#/gps/ang/maxtheta 0.7 deg
|
||||
|
||||
#/gps/ene/type Arb
|
||||
#/gps/hist/type arb
|
||||
|
||||
#/gps/hist/point 6.04803 0.075220186
|
||||
#/gps/hist/point 6.22209 0.309688169
|
||||
#/gps/hist/point 6.39615 0.675791478
|
||||
#/gps/hist/point 6.57021 1
|
||||
#/gps/hist/point 6.74427 0.8543204
|
||||
#/gps/hist/point 6.91833 0.759581052
|
||||
#/gps/hist/point 7.09239 0.59604856
|
||||
#/gps/hist/point 7.26645 0.711259224
|
||||
#/gps/hist/point 7.44051 0.501309212
|
||||
#/gps/hist/point 7.61457 0.130445132
|
||||
|
||||
#/gps/hist/inter Lin
|
||||
|
||||
##################################################################################################
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
##############################################
|
||||
/vis/scene/create
|
||||
/vis/open OGL
|
||||
/vis/viewer/set/background white
|
||||
/vis/viewer/set/viewpointThetaPhi 60 130
|
||||
/vis/viewer/zoom 1.0
|
||||
/vis/viewer/panTo -.27 -.0
|
||||
/vis/scene/add/axes 0 0 0 1 m
|
||||
/vis/scene/add/trajectories
|
||||
/vis/scene/endOfRunAction accumulate
|
||||
/vis/modeling/trajectories/create/drawByCharge
|
||||
/vis/scene/endOfEventAction accumulate -1
|
||||
/vis/viewer/update
|
||||
|
||||
###################################################
|
||||
#
|
||||
/changePhantom/position 100 100 0 cm
|
||||
/changePhantom/size 40 40 40 cm
|
||||
/changeDetector/size 4 4 4 cm
|
||||
/changeDetector/voxelSize 1 40 40 mm
|
||||
|
||||
/changeDetector/displacement 0 18 18 cm
|
||||
/changePhantom/update
|
||||
/event/printEventNumber 10
|
||||
|
||||
/run/beamOn 100
|
||||
|
||||
@@ -77,6 +77,33 @@
|
||||
/vis/scene/endOfEventAction accumulate -1
|
||||
/vis/viewer/update
|
||||
|
||||
|
||||
|
||||
##########################################################################################################
|
||||
############### Define the entrance beam: TARANIS angular distribution
|
||||
## beam->1-2
|
||||
#/gps/verbose 2
|
||||
#/gps/source/intensity 3.6
|
||||
#/gps/particle proton
|
||||
#/gps/pos/type Beam
|
||||
#/gps/pos/shape Circle
|
||||
#/gps/pos/centre -171.3 0.0 0.0 cm
|
||||
#/gps/pos/radius 0.007 mm
|
||||
#/gps/pos/sigma_r 0. mm
|
||||
#/gps/ang/rot1 0 0 1
|
||||
#/gps/ang/rot2 0 1 0
|
||||
#/gps/pos/rot1 0 0 1
|
||||
#/gps/pos/rot2 0 1 0
|
||||
#/gps/ang/type iso
|
||||
#/gps/ang/mintheta 0 deg
|
||||
#/gps/ang/maxtheta 26.69 deg
|
||||
#/gps/ene/type Arb
|
||||
#/gps/hist/type arb
|
||||
#/gps/hist/point 1.1 3.5
|
||||
#/gps/hist/point 3.1399999999999999 1.2
|
||||
#/gps/hist/inter Exp
|
||||
|
||||
|
||||
################# change first collimator #################
|
||||
#/LaserDriven/EnergySelector/FirstCollimator/Radius 10.0 mm
|
||||
##/LaserDriven/EnergySelector/FirstCollimator/Thickness 20.0 mm
|
||||
|
||||
@@ -1,97 +0,0 @@
|
||||
# S.E. Mazzaglia May 4 2010
|
||||
|
||||
# Example macro file to show how to change geometric properties and voxelization of the phantom/detector
|
||||
|
||||
#######################
|
||||
# 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
|
||||
|
||||
# Initialize geometry and Physics
|
||||
/run/initialize
|
||||
|
||||
#############################
|
||||
# Initialize graphic system #
|
||||
#############################
|
||||
#
|
||||
/vis/scene/create
|
||||
/vis/open OGL
|
||||
/vis/viewer/flush
|
||||
/vis/viewer/set/viewpointThetaPhi 30 140 deg
|
||||
/tracking/storeTrajectory 1
|
||||
/vis/scene/endOfEventAction accumulate -1 # this accumulate infinite tracks
|
||||
# zoom to phantom...
|
||||
/vis/viewer/panTo 1.5 0.5
|
||||
/vis/viewer/zoomTo 3
|
||||
|
||||
##########################
|
||||
# Set here the cut and the step max for the tracking.
|
||||
# Suggested values of cut and step:
|
||||
#
|
||||
# Set cuts OUTSIDE the detector
|
||||
/run/setCut 0.01 mm
|
||||
# Set cuts ONLY inside the detector
|
||||
/run/setCutForRegion DetectorLog 0.01 mm
|
||||
|
||||
|
||||
/Step/waterPhantomStepMax 0.01 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 ##-270
|
||||
/gps/pos/radius 0. mm
|
||||
/gps/pos/sigma_r 2. mm ##3
|
||||
/gps/particle proton
|
||||
/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 energy is in gaussian profile
|
||||
#
|
||||
/gps/ene/type Gauss
|
||||
/gps/energy 62 MeV
|
||||
/gps/ene/sigma 300 keV
|
||||
/gps/direction 1 0 0
|
||||
|
||||
|
||||
# Copy & Paste in a new macro the previous and ONE of the following groups of commands
|
||||
# in order to change the Phantom & Detector geometry!
|
||||
|
||||
######################################
|
||||
# Change Phantom & Detector geometry #
|
||||
######################################
|
||||
|
||||
##########################################################################################
|
||||
# Cut & paste the following commands in order to create,
|
||||
# a Phantom with a detector divided by 40 slabs
|
||||
# Each slab is 0.1 mm along the X direction, 40 mm along the Y and Z.
|
||||
|
||||
#/changePhantom/material G4_PLEXIGLASS # in case you do not want the default phantom made of liquid water
|
||||
/changePhantom/size 40 40 40 cm
|
||||
/changeDetector/size 4 4 4 cm
|
||||
/changeDetector/voxelSize 0.1 40 40 mm
|
||||
/changePhantom/update # update geometry!
|
||||
|
||||
/run/beamOn 1000
|
||||
|
||||
@@ -1,96 +0,0 @@
|
||||
# S.E. Mazzaglia May 4 2010
|
||||
|
||||
# Example macro file to show how to change geometric properties and voxelization of the phantom/detector
|
||||
|
||||
#######################
|
||||
# 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
|
||||
|
||||
# Initialize geometry and physic
|
||||
/run/initialize
|
||||
|
||||
#############################
|
||||
# Initialize graphic system #
|
||||
#############################
|
||||
#
|
||||
/vis/scene/create
|
||||
/vis/open OGL
|
||||
/vis/viewer/flush
|
||||
/vis/viewer/set/viewpointThetaPhi 30 140 deg
|
||||
/tracking/storeTrajectory 1
|
||||
/vis/scene/endOfEventAction accumulate -1 # this accumulate infinite tracks
|
||||
# zoom to phantom...
|
||||
/vis/viewer/panTo 1.5 0.5
|
||||
/vis/viewer/zoomTo 3
|
||||
|
||||
##########################
|
||||
# Set here the cut and the step max for the tracking.
|
||||
# Suggested values of cut and step:
|
||||
# Set cuts OUTSIDE the detector
|
||||
/run/setCut 0.01 mm
|
||||
# Set cuts ONLY inside the detector
|
||||
/run/setCutForRegion DetectorLog 0.01 mm
|
||||
|
||||
/Step/waterPhantomStepMax 0.01 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/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 energy is in gaussian profile
|
||||
#
|
||||
/gps/ene/type Gauss
|
||||
/gps/energy 62 MeV
|
||||
/gps/ene/sigma 300 keV
|
||||
/gps/direction 1 0 0
|
||||
|
||||
# Copy & Paste in a new macro the previous and ONE of the following groups of commands
|
||||
# in order to change the Phantom & Detector geometry!
|
||||
|
||||
######################################
|
||||
# Change Phantom & Detector geometry #
|
||||
######################################
|
||||
|
||||
##########################################################################################
|
||||
# Cut & paste the following commands in order to create,
|
||||
# a Phantom with a detector divided by one only slab
|
||||
# 1 mm along the X direction, 400 mm along the Y and Z.
|
||||
|
||||
#/changePhantom/material G4_PLEXIGLASS # in case you do not want the default phantom made of liquid water
|
||||
/changeDetector/displacement 0 0 0 mm
|
||||
/changePhantom/size 1 400 400 mm
|
||||
/changeDetector/size 1 400 400 mm
|
||||
/changeDetector/voxelSize 1 400 400 mm
|
||||
/changePhantom/update # update geometry!
|
||||
|
||||
/run/beamOn 1000
|
||||
|
||||
@@ -1,88 +0,0 @@
|
||||
# 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
|
||||
/Physics/addPhysics radioactive_decay
|
||||
|
||||
##########################
|
||||
# Initialisation procedure
|
||||
#
|
||||
/run/initialize
|
||||
|
||||
##########################
|
||||
# Visualisation
|
||||
#
|
||||
/vis/scene/create
|
||||
/vis/open OGL
|
||||
#/vis/viewer/flush
|
||||
/vis/viewer/set/viewpointThetaPhi 30 140 deg
|
||||
/vis/viewer/zoom 1
|
||||
/vis/viewer/pan -10 0 cm
|
||||
/vis/scene/add/trajectories
|
||||
/vis/scene/endOfEventAction accumulate
|
||||
/vis/viewer/update
|
||||
|
||||
##########################
|
||||
# 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
|
||||
# Set cuts ONLY inside the detector
|
||||
#/run/setCutForRegion DetectorLog 0.5 mm
|
||||
|
||||
/Step/waterPhantomStepMax 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/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 energy is in gaussian profile
|
||||
#
|
||||
/gps/ene/type Gauss
|
||||
/gps/energy 62 MeV
|
||||
/gps/ene/sigma 300 keV
|
||||
/gps/direction 1 0 0
|
||||
#########################
|
||||
# Display the event number
|
||||
# during the run
|
||||
#
|
||||
/event/printEventNumber 10
|
||||
|
||||
#########################
|
||||
# Start of the run
|
||||
#
|
||||
|
||||
/run/beamOn 100
|
||||
@@ -1,89 +0,0 @@
|
||||
# S.E. Mazzaglia May 4 2010
|
||||
|
||||
# Example macro file to show how to change geometric properties and voxelization of the phantom/detector
|
||||
|
||||
#######################
|
||||
# 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
|
||||
|
||||
# Initialize geometry and physic
|
||||
/run/initialize
|
||||
|
||||
#############################
|
||||
# Initialize graphic system #
|
||||
#############################
|
||||
#
|
||||
/vis/scene/create
|
||||
/vis/open OGL
|
||||
/vis/viewer/flush
|
||||
/vis/viewer/set/viewpointThetaPhi 30 140 deg
|
||||
/tracking/storeTrajectory 1
|
||||
/vis/scene/endOfEventAction accumulate -1 # this accumulate infinite tracks
|
||||
# zoom to phantom...
|
||||
/vis/viewer/panTo 1.5 0.5
|
||||
/vis/viewer/zoomTo 3
|
||||
|
||||
##########################
|
||||
# Set here the cut and the step max for the tracking.
|
||||
# Suggested values of cut and step:
|
||||
#
|
||||
# Set cuts OUTSIDE the detector
|
||||
/run/setCut 0.01 mm
|
||||
# Set cuts ONLY inside the detector
|
||||
/run/setCutForRegion DetectorLog 0.01 mm
|
||||
|
||||
/Step/waterPhantomStepMax 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/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 energy is in gaussian profile
|
||||
#
|
||||
/gps/ene/type Gauss
|
||||
/gps/energy 62 MeV
|
||||
/gps/ene/sigma 300 keV
|
||||
/gps/direction 1 0 0
|
||||
####################################
|
||||
# Change Phantom/Detector geometry #
|
||||
####################################
|
||||
##########################################################################################
|
||||
# Cut & paste the following commands in order to create, starting from the default sizes,
|
||||
# a full voxellized (40 by 40 by 40) detector
|
||||
|
||||
/changePhantom/size 4 4 4 cm
|
||||
/changeDetector/size 4 4 4 cm
|
||||
/changeDetector/voxelSize 1 1 1 mm
|
||||
# Put the detector in the lower left corner of the phantom
|
||||
/changeDetector/displacement 0 0 0
|
||||
/changePhantom/update
|
||||
##########################################################################################
|
||||
|
||||
/run/beamOn 1000
|
||||
Reference in New Issue
Block a user