Back to home page

EIC code displayed by LXR

 
 

    


Warning, /geant4/examples/advanced/iort_therapy/defaultMacro.mac is written in an unsupported language. File is not indexed.

0001 #########################
0002 # Set of the verboses 
0003 #
0004 /control/verbose 1
0005 /tracking/verbose 0
0006 /run/verbose 1
0007 /event/verbose 0
0008 
0009 ##########################
0010 # Set of the physic models
0011 #
0012 /Physics/addPhysics standard_opt3                     # Electromagnetic model
0013 
0014 ##########################
0015 #       Geometry         #
0016 ##########################
0017 
0018 #/geometrySetup/selectGeometry coll80
0019 
0020 
0021 ##########################
0022 # Initialisation procedure
0023 #
0024 /run/initialize
0025 
0026 ##########################
0027 # Visualisation 
0028 #
0029 /vis/scene/create
0030 /vis/open OGL
0031 #/vis/open  ## open the default viewer
0032 /vis/viewer/flush
0033 #/vis/viewer/set/style solid 
0034 /vis/viewer/set/auxiliaryEdge true
0035 /vis/viewer/set/viewpointThetaPhi 30 140 deg
0036 /vis/viewer/zoom 1
0037 /vis/viewer/pan -10  0 cm
0038 /vis/scene/add/trajectories
0039 /vis/scene/endOfEventAction accumulate
0040 #/vis/viewer/update  # new
0041  
0042 
0043 ##########################
0044 # Definition of the GUI
0045 # It will work only if the QT GUI interface is active
0046 #
0047 #/control/execute macro/GUIPersonalisation.mac
0048 ##########################
0049 # Set here the cut and the step max for the tracking. 
0050 # Suggested values of cut and step:
0051 #
0052 # Set cuts ONLY inside the detector
0053 /Physics/setDetectorCuts 0.01 mm
0054 
0055 # Set cuts OUTSIDE the detector 
0056 #/Physics/setCuts 1. mm
0057 /Physics/setCuts 0.01 mm
0058 
0059 /Step/waterPhantomStepMax 0.01 mm 
0060 
0061 #########################
0062 # Set the primary particle type,
0063 # energy and position along the X direction and spread
0064 #
0065 /beam/energy/meanEnergy 9.9 MeV   # 6.2 MeV old
0066 /beam/energy/sigmaEnergy  500 keV # 400 keV old
0067 /beam/position/Xposition -862.817 mm  # coll40, coll50, coll60, coll70, coll80 -> -862.817 mm ; coll100 ->  
0068                                                                                                 # -1062.817   mm ; 
0069 #/beam/momentum/Theta             # default -> 6°;
0070 
0071 #########################
0072 # Display the event number
0073 # during the run
0074 # 
0075 /event/printEventNumber 1000
0076 
0077 #########################
0078 # Start of the run
0079 #
0080 # If secondary particles dose & fluence are needed
0081 #/analysis/secondary true 
0082 # Default material is water liquid
0083 #/changePhantom/material G4_PLEXIGLASS
0084 
0085 #/ProtectionDisc1/OuterRadiusDisc1 30   # default -> 40*mm ; 30(coll40);35(coll50);45(coll70);50(coll40);60(coll100) 
0086 #/ProtectionDisc1/InnerRadiusDisc1      # default -> 0*mm
0087 #/ProtectionDisc1/HeightDisc1             # default -> 2*mm
0088 #/ProtectionDisc1/XPositionDisc1 -11.0  # default -> -11*mm   R90 (10.1 MeV) -> -10.68 mm from detector centre (24mm)
0089 #/ProtectionDisc1/YPositionDisc1  5.0      # default -> 0.0*mm
0090 #/ProtectionDisc1/ZPositionDisc1  5.0      # default -> 0.0*mm
0091 #/ProtectionDisc1/material G4_Al        # default -> G4_WATER ;
0092 
0093 #/ProtectionDisc2/OuterRadiusDisc2 30   # default -> 40*mm ; 30(coll40);35(coll50);45(coll70);50(coll40);60(coll100)
0094 #/ProtectionDisc2/InnerRadiusDisc2      # default -> 0*mm
0095 #/ProtectionDisc2/HeightDisc2            # default -> 1*mm
0096 #/ProtectionDisc2/XPositionDisc2 -8.0  # default -> -8*mm
0097 #/ProtectionDisc2/material G4_Pb        # default -> G4_WATER ;
0098 
0099 #/ChangeTiltAngleDisc1-2/TiltAngleDisc1-2 110.0 # default -> 90.0*deg around Y
0100 
0101 #/InsertProtectionDisc/insert
0102 
0103 #/changePhantom/update
0104 #
0105 # Scoring mesh is used to calculate
0106 #  the dose in the phantom
0107 /score/create/boxMesh boxMesh_1
0108 #
0109 /score/mesh/boxSize 10. 10. 10. cm
0110 /score/mesh/nBin 300 300 300
0111 /score/mesh/translate/xyz 4.5 0. 0. cm 
0112 /score/quantity/doseDeposit dose Gy
0113 #
0114 /score/close
0115 #
0116 /score/list  
0117 /DeleteProtectionDisc/delete
0118 /run/beamOn  100
0119 /score/dumpQuantityToFile boxMesh_1 dose dose.out
0120