Warning, /geant4/examples/advanced/hadrontherapy/macro/defaultMacro_vis.mac is written in an unsupported language. File is not indexed.
0001 # G.A.P.Cirrone,
0002 # pablo.cirrone@lns.infn.it
0003 #
0004 # Default macro file. It is called if no argument is provided at run
0005 # and when the PHYSLIST enviroment variable is OFF
0006 # i.e. simply typing $G4WORKDIR/bin/Linux-++/Hadrontherapy <no argument here!>
0007
0008 #########################
0009 # Set of the verboses
0010 #
0011 /control/verbose 0
0012 /tracking/verbose 0
0013 /run/verbose 0
0014 /event/verbose 0
0015
0016 ##########################
0017 # Set of the physic models
0018 #
0019
0020
0021 /Physics/addPhysics HADRONTHERAPY_1
0022 /run/numberOfThreads 1
0023
0024 ##########################
0025 # Initialisation procedure
0026 #
0027 /run/initialize
0028
0029 # Set a very high time threshold to allow all decays to happen
0030 /process/had/rdm/thresholdForVeryLongDecayTime 1.0e+60 year
0031
0032 ##########################
0033 # Visualisation
0034 #
0035 /vis/open OGLI 600x600-0+0
0036 #/vis/open ## open the default viewer
0037
0038 # Disable auto refresh and quieten vis messages whilst scene and
0039 # trajectories are established:
0040 /vis/viewer/set/autoRefresh false
0041 /vis/verbose errors
0042
0043 /vis/drawVolume
0044 /vis/viewer/set/viewpointThetaPhi 30 140 deg
0045 /vis/viewer/zoom 1
0046 /vis/viewer/pan -10 0 cm
0047 /vis/scene/add/trajectories smooth
0048 /vis/scene/endOfEventAction accumulate
0049 /vis/viewer/set/autoRefresh true
0050 /vis/verbose warnings
0051
0052 ####################################################
0053 # Set here the CUT and the STEP MAX for the tracking.
0054 # Suggested values of cut and step
0055 #
0056 # Set cuts OUTSIDE the detector
0057 #
0058 /run/setCut 1 m
0059
0060 # Set cuts ONLY inside the detector
0061 #
0062 /run/setCutForRegion DetectorLog 0.1 mm
0063
0064
0065 /run/setCutForAGivenParticle e- 0.1 mm
0066 /run/setCutForAGivenParticle e+ 0.1 mm
0067 /run/setCutForAGivenParticle proton 0.1 mm
0068 #/Step/waterPhantomStepMax 0.1 mm
0069
0070 #########################
0071 # Set the primary particle type,
0072 # energy and position along the X direction
0073 #
0074
0075 #---------------------------gps-----------------
0076 /gps/pos/shape Circle
0077 /gps/pos/centre -310. 0. 0. cm
0078 /gps/pos/radius 0. mm
0079 /gps/pos/sigma_r 2. mm
0080 /gps/particle proton
0081 #/gps/particle ion
0082 #/gps/ion 6 12 6
0083 /gps/pos/type Beam
0084
0085 # the incident surface is in the y-z plane
0086 #
0087 /gps/pos/rot1 0 1 0
0088 /gps/pos/rot2 0 0 1
0089
0090 # the beam is travelling along the x-axis without any angular dispersion (angular despersion set to 0.0)
0091 #
0092
0093 /gps/ang/rot1 0 0 1
0094 /gps/ang/rot2 0 1 0
0095 /gps/ang/type beam1d
0096 /gps/ang/sigma_r 0.028 deg
0097
0098 # the beam energy is in gaussian profile
0099 #
0100 /gps/ene/type Gauss
0101 /gps/ene/mono 60.0 MeV
0102 #/gps/ene/sigma 0.25 MeV
0103 #/gps/ene/mono 744 MeV
0104 #/gps/ene/sigma 0.740 MeV
0105
0106 ###################################################
0107 # DETECTOR DESCRIPTION
0108 ########################################################
0109 # USE THE FOLLOWING FOUR LINES FOR DEFINITION OF PHANTOM
0110 ########################################################
0111 #
0112 #/changePhantom/position 20. 0. 0. cm
0113 #/changePhantom/update
0114
0115 /changePhantom/size 40 40 40 cm
0116 /changePhantom/position 20 0 0 cm
0117
0118 ###################################################
0119 # USE THE FOLLOWING FOR A VOXELLIZED DETECTOR
0120 ###################################################
0121 #
0122 /changeDetector/size 4 4 4 cm
0123 /changeDetector/voxelSize .1 40 40 mm
0124
0125 # Put the detector in the lower left corner of the phantom
0126 #
0127 /changeDetector/displacement 0 18 18 cm
0128 /changePhantom/update
0129
0130 #########################
0131 # Display the event number
0132 # during the run
0133 #
0134 /event/printEventNumber 100
0135
0136 #########################
0137 # Start of the run
0138 #
0139 # If secondary particles dose & fluence are needed
0140 /analysis/secondary true
0141 /analysis/computeLet
0142
0143 # Default material is water liquid
0144 /changePhantom/material G4_WATER
0145
0146 /run/printProgress 1000
0147 /run/beamOn 1000
0148 /tracking/verbose 0