# ====================================================================== # # # SIMULATION OF A PHOTON BEAM PENETRATING MULTIPLESLABS. # THE PHOTON BEAM IS ATTENUATED 10%. # # # # ====11================================================================ # # What information should be printed out while running the script. /control/execute verbose.mac # ====================================================================== # # Switch on/off visualization. /vis/disable # OBS!!! To interactively change viewpoint when looking at the geometry use: # # Rotate view point: # /vis/viewer/set/viewpointThetaPhi ang1 ang2 # # Pan (pan is relative to present situation and panTo is in absolute # terms) # /vis/viewer/pan horiz vert # /vis/viewer/panTo horiz vert # # Zoom with a zoom factor # /vis/viewer/zoom factor # # OBS!!!!! To see the change you may have to run the command: #/vis/viewer/update # Call the script containing how visualization should work /control/execute visu.mac # ====================================================================== # # Load materials to be used # ====================================================================== # /gate/geometry/setMaterialDatabase ./Data/GateMaterials.db # ====================================================================== # # Draw the geometry # ====================================================================== # # WORLD. This is the volume in which all simulations take place. /gate/world/setMaterial Air /gate/world/geometry/setXLength 2.0 cm /gate/world/geometry/setYLength 2.0 cm /gate/world/geometry/setZLength 2.0 cm /control/execute Geometry.mac #===================================================== # PHYSICS #===================================================== /control/execute physicslist_empenelope.mac /gate/physics/Gamma/SetCutInRegion world 1 mm /gate/physics/Electron/SetCutInRegion world 1 mm /gate/physics/Positron/SetCutInRegion world 1 mm /gate/physics/Gamma/SetCutInRegion allbox 0.00001 mm /gate/physics/Electron/SetCutInRegion allbox 0.00001 mm /gate/physics/Positron/SetCutInRegion allbox 0.00001 mm /gate/physics/displayCuts # DATA A C Q U I S I T I O N ############################## # /control/execute Detectors.mac # I N I T I A L I Z E ####################################### # /gate/run/initialize /geometry/test/run # ==================== Beam ========================== # /control/execute beam.mac # R A N D O M G E N E R A T O R ########################### # /gate/random/setEngineName MersenneTwister /gate/random/setEngineSeed auto /gate/application/setTotalNumberOfPrimaries 2000000000 /gate/application/start # S T A R T SIMULATION ################################### # /gate/random/setEngineName MersenneTwister /gate/random/setEngineSeed auto /gate/application/setTotalNumberOfPrimaries 2000000000 /gate/application/start # Add some axis to force update of volume /vis/scene/add/axes