Import Geant4 10.4.0.beta source tree
This commit is contained in:
@@ -0,0 +1,159 @@
|
||||
#
|
||||
# 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
|
||||
#
|
||||
|
||||
#########################
|
||||
# Set of the verboses
|
||||
#
|
||||
/control/verbose 1
|
||||
/tracking/verbose 0
|
||||
/run/verbose 1
|
||||
/event/verbose 0
|
||||
|
||||
#######
|
||||
# Select geometry
|
||||
/geometrySetup/selectGeometry TrentoLine
|
||||
|
||||
|
||||
|
||||
##########################
|
||||
# Set of the physic models
|
||||
#
|
||||
/Physics/addPhysics HADRONTHERAPY_1
|
||||
|
||||
/random/setSeeds 891 61
|
||||
|
||||
##########################
|
||||
# Initialisation procedure
|
||||
#
|
||||
/run/numberOfThreads 1
|
||||
|
||||
/run/initialize
|
||||
|
||||
|
||||
#########################
|
||||
# Set the primary particle type,
|
||||
# energy and position along the X direction
|
||||
#
|
||||
#---------------------------gps-----------------
|
||||
|
||||
/gps/pos/type Beam
|
||||
/gps/pos/shape Circle
|
||||
/gps/pos/centre -95. 0. 0. cm
|
||||
#/gps/pos/centre -82. 0. 0. cm
|
||||
#/gps/pos/radius 0. mm
|
||||
#/gps/pos/sigma_r 4.515 mm
|
||||
/gps/pos/sigma_x 1.805 mm
|
||||
/gps/pos/sigma_y 2.835 mm
|
||||
/gps/particle proton
|
||||
/gps/direction 1 0 0
|
||||
|
||||
# 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 beam2d
|
||||
#/gps/ang/focuspoint 0 0 0 cm
|
||||
/gps/ang/sigma_x 0.00321 rad
|
||||
/gps/ang/sigma_y 0.00364 rad
|
||||
#/gps/ang/sigma_r 0 deg
|
||||
|
||||
|
||||
# the beam energy is in gaussian profile
|
||||
#
|
||||
/gps/ene/type Gauss
|
||||
/gps/ene/mono 147.1 MeV
|
||||
/gps/ene/sigma 1.1 MeV
|
||||
|
||||
|
||||
##########################
|
||||
# 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.1 mm
|
||||
|
||||
# Set cuts ONLY inside the detector
|
||||
#
|
||||
/run/setCutForRegion DetectorLog 0.01 mm
|
||||
|
||||
/Step/waterPhantomStepMax 0.1 mm
|
||||
|
||||
######################### GEOMETRY OF BEAM LINE DESCRIPTION
|
||||
####################################################################################################
|
||||
#/beamLine/ScatteringFoil/thickness 0.25 cm
|
||||
#/beamLine/ScatteringFoil/material G4_Pb
|
||||
#/beamLine/ScatteringFoil/material G4_Ta
|
||||
#/beamLine/ScatteringFoil/material G4_Cu
|
||||
#/beamLine/preCollimator/ZSize mm
|
||||
#(cambia la dimensione lungo x dato che è ruotato)
|
||||
#/beamLine/preCollimator/XPosition 150. cm
|
||||
#/beamLine/preCollimator/innerRadius 2.5 mm
|
||||
#/beamLine/FirstCollimator/innerRadius 2.5 mm
|
||||
|
||||
|
||||
|
||||
######################### DETECTOR DESCRIPTION
|
||||
###################################################
|
||||
# USE THE FOLLOWING FOUR LINES FOR DEFINITION OF PHANTOM
|
||||
###################################################
|
||||
#
|
||||
#/changePhantom/position 220. 0. 0. cm
|
||||
#/changePhantom/update
|
||||
|
||||
#/changePhantom/size 20 20 40 cm
|
||||
#/changePhantom/position 20 0 0 cm
|
||||
|
||||
###################################################
|
||||
# USE THE FOLLOWING FOR A VOXELLIZED DETECTOR
|
||||
###################################################
|
||||
#
|
||||
|
||||
|
||||
/changeDetector/size 20 10 10 cm #size for Giraffe
|
||||
#/changeDetector/size 20 20 20 cm #large detector for dose calculation
|
||||
/changeDetector/voxelSize 0.02 1 1 cm
|
||||
|
||||
# Put the detector in the lower left corner of the phantom
|
||||
#
|
||||
/changeDetector/displacement 0 15 15 cm #displacement when detector is small
|
||||
#/changeDetector/displacement 0 10 10 cm #displacement when detector is larger
|
||||
/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 500
|
||||
|
||||
|
||||
# Default material is liquid water (G4_WATER)
|
||||
|
||||
# For dose average LET computations of primary and secondary particles
|
||||
#/analysis/computeLet
|
||||
|
||||
/run/beamOn 10
|
||||
|
||||
|
||||
@@ -18,8 +18,9 @@
|
||||
##########################
|
||||
# Set of the physic models
|
||||
#
|
||||
/Physics/addPhysics HADRONTHERAPY_1
|
||||
/Physics/addPhysics QGSP_BIC_EMY
|
||||
|
||||
/run/numberOfThreads 4
|
||||
|
||||
##########################
|
||||
# INFN-LNS transport beam line,
|
||||
@@ -38,30 +39,34 @@
|
||||
##########################
|
||||
# Visualisation
|
||||
#
|
||||
/vis/scene/create
|
||||
/vis/open OGLI
|
||||
#/vis/viewer/set/background white
|
||||
/vis/viewer/flush
|
||||
/vis/viewer/set/viewpointThetaPhi 30 140 deg
|
||||
/vis/viewer/zoomTo 1
|
||||
/vis/viewer/panTo 100 50 cm
|
||||
/tracking/storeTrajectory 1
|
||||
/vis/scene/add/trajectories
|
||||
#/vis/scene/endOfEventAction accumulate
|
||||
/vis/scene/endOfEventAction accumulate -1
|
||||
#/vis/open OGLI 600x600-0+0
|
||||
|
||||
#/vis/viewer/update
|
||||
# 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 10 mm
|
||||
# Set cuts ONLY inside the detector
|
||||
#
|
||||
/run/setCutForRegion DetectorLog 0.05 mm
|
||||
/run/setCutForRegion DetectorLog 0.1 mm
|
||||
|
||||
/Step/waterPhantomStepMax 1 mm
|
||||
/Step/waterPhantomStepMax 0.1 mm
|
||||
|
||||
##########################################################################################################
|
||||
# PRIMARY PARTICLES
|
||||
@@ -72,7 +77,7 @@
|
||||
|
||||
#---------------------------gps-----------------
|
||||
/gps/pos/shape Circle
|
||||
/gps/pos/centre -10. 0. 0. cm
|
||||
/gps/pos/centre -1710. 0. 0. mm
|
||||
/gps/pos/radius 0. mm
|
||||
/gps/pos/sigma_r 2. mm
|
||||
/gps/particle ion
|
||||
@@ -97,28 +102,26 @@
|
||||
# the beam energy is in gaussian profile
|
||||
#
|
||||
/gps/ene/type Gauss
|
||||
/gps/ene/mono 3240 MeV
|
||||
/gps/ene/sigma 0.744 MeV
|
||||
|
||||
/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 20 20 20 cm
|
||||
/changeDetector/voxelSize .2 20 20 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 8 8 cm
|
||||
/changeDetector/displacement 0 18 18 cm
|
||||
/changePhantom/update
|
||||
|
||||
#########################
|
||||
# Display the event number
|
||||
# during the run
|
||||
#
|
||||
/event/printEventNumber 2
|
||||
/run/printProgress 1000
|
||||
|
||||
# Compute Dose and Fluence for secondary
|
||||
#/analysis/secondary true
|
||||
@@ -129,6 +132,6 @@
|
||||
#
|
||||
#########################
|
||||
|
||||
/run/beamOn 2000
|
||||
/run/beamOn 1000
|
||||
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
# G.A.P.Cirrone,
|
||||
# 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!>
|
||||
# i.e. simply typing $G4WORKDIR/bin/Linux-++/Hadrontherapy <no argument here!>
|
||||
|
||||
#########################
|
||||
# Set of the verboses
|
||||
# Set of the verboses
|
||||
#
|
||||
/control/verbose 1
|
||||
/tracking/verbose 0
|
||||
@@ -17,6 +17,7 @@
|
||||
# Set of the physic models
|
||||
#
|
||||
/Physics/addPhysics HADRONTHERAPY_1
|
||||
/run/numberOfThreads 4
|
||||
|
||||
##########################
|
||||
# Initialisation procedure
|
||||
@@ -26,38 +27,36 @@
|
||||
##########################
|
||||
# Visualisation
|
||||
#
|
||||
/vis/open OGL 600x600-0+0
|
||||
/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/verbose errors
|
||||
|
||||
/vis/drawVolume
|
||||
/vis/viewer/set/viewpointThetaPhi 30 140 deg
|
||||
/vis/viewer/zoom 1
|
||||
/vis/viewer/pan -10 0 cm
|
||||
#/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.
|
||||
# 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 1 mm
|
||||
/Step/waterPhantomStepMax 0.1 mm
|
||||
|
||||
#########################
|
||||
# Set the primary particle type,
|
||||
@@ -81,16 +80,15 @@
|
||||
#
|
||||
|
||||
/gps/ang/rot1 0 0 1
|
||||
/gps/ang/rot2 0 1 0
|
||||
/gps/ang/type beam1d
|
||||
/gps/ang/sigma_r 0. deg
|
||||
/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 63.5 MeV
|
||||
/gps/ene/sigma 0.3 MeV
|
||||
|
||||
/gps/ene/mono 62.4 MeV
|
||||
/gps/ene/sigma 0.25 MeV
|
||||
|
||||
###################################################
|
||||
# DETECTOR DESCRIPTION
|
||||
@@ -116,26 +114,21 @@
|
||||
/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/secondary true
|
||||
#/analysis/computeLet
|
||||
|
||||
# Default material is water liquid
|
||||
#/changePhantom/material G4_PLEXIGLASS
|
||||
|
||||
/run/printProgress 10
|
||||
|
||||
/run/beamOn 1
|
||||
|
||||
/control/shell mkdir -p SimulationOutputs/proton/BraggPeak
|
||||
/control/shell mv DoseDistribution.root SimulationOutputs/proton/BraggPeak/protonBraggPeak.root
|
||||
|
||||
/run/printProgress 1000
|
||||
/run/beamOn 100000
|
||||
Reference in New Issue
Block a user