89 lines
1.8 KiB
Plaintext
89 lines
1.8 KiB
Plaintext
# 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
|