Back to home page

EIC code displayed by LXR

 
 

    


Warning, /geant4/examples/basic/B5/gui.mac is written in an unsupported language. File is not indexed.

0001 #
0002 # This file permits to customize, with commands,
0003 # the menu bar of the G4UIXm, G4UIQt, G4UIWin32 sessions.
0004 # It has no effect with G4UIterminal.
0005 #
0006 #
0007 # Add icons of general interest
0008 #
0009 /control/execute icons.mac
0010 #
0011 # File menu :
0012 /gui/addMenu file File
0013 /gui/addButton file Quit exit
0014 #
0015 # Run menu :
0016 /gui/addMenu run Run
0017 /gui/addButton run "beamOn 1" "/run/beamOn 1"
0018 /gui/addButton run run1 "/control/execute run1.mac"
0019 #
0020 # Gun menu :
0021 /gui/addMenu gun Gun
0022 /gui/addButton gun "50 MeV"  "/gun/energy 50 MeV"
0023 /gui/addButton gun "1 GeV"   "/gun/energy 1 GeV"
0024 /gui/addButton gun "10 GeV"  "/gun/energy 10 GeV"
0025 /gui/addButton gun "e-"      "/gun/particle e-"
0026 /gui/addButton gun "pi0"     "/gun/particle pi0"
0027 /gui/addButton gun "pi+"     "/gun/particle pi+"
0028 /gui/addButton gun "neutron" "/gun/particle neutron"
0029 /gui/addButton gun "proton"  "/gun/particle proton"
0030 # Also, we need to switch off primary randomization for the /gun/ commands to
0031 # work
0032 /B5/generator/randomizePrimary false
0033 #
0034 # Field menu :
0035 /gui/addMenu field Field
0036 /gui/addButton field "off"       "/B5/field/value 0   tesla"
0037 /gui/addButton field "0.2 tesla" "/B5/field/value 0.2 tesla"
0038 /gui/addButton field "2.0 tesla" "/B5/field/value 2.0 tesla"
0039 #
0040 # Viewer menu :
0041 /gui/addMenu viewer Viewer
0042 /gui/addButton viewer "Set style surface" "/vis/viewer/set/style surface"
0043 /gui/addButton viewer "Set style wireframe" "/vis/viewer/set/style wireframe"
0044 /gui/addButton viewer "Refresh viewer" "/vis/viewer/refresh"
0045 /gui/addButton viewer "Update viewer (interaction or end-of-file)" "/vis/viewer/update"
0046 /gui/addButton viewer "Flush viewer (= refresh + update)" "/vis/viewer/flush"
0047 /gui/addButton viewer "Update scene" "/vis/scene/notifyHandlers"
0048 #
0049 # User defined icon :
0050 /gui/addIcon "Run beam on" user_icon "/run/beamOn 1" run.png