Loading...
Searching...
No Matches
gui.mac
Go to the documentation of this file.
1#
2# This file permits to customize, with commands,
3# the menu bar of the G4UIXm, G4UIQt, G4UIWin32 sessions.
4# It has no effect with G4UIterminal.
5#
6#
7# Add icons of general interest
8#
9/control/execute icons.mac
10#
11# File menu :
12/gui/addMenu file File
13/gui/addButton file Quit exit
14#
15# Run menu :
16/gui/addMenu run Run
17/gui/addButton run "beamOn 1" "/run/beamOn 1"
18/gui/addButton run run1 "/control/execute run1.mac"
19#
20# Gun menu :
21/gui/addMenu gun Gun
22/gui/addButton gun "50 MeV" "/gun/energy 50 MeV"
23/gui/addButton gun "1 GeV" "/gun/energy 1 GeV"
24/gui/addButton gun "10 GeV" "/gun/energy 10 GeV"
25/gui/addButton gun "e-" "/gun/particle e-"
26/gui/addButton gun "pi0" "/gun/particle pi0"
27/gui/addButton gun "pi+" "/gun/particle pi+"
28/gui/addButton gun "neutron" "/gun/particle neutron"
29/gui/addButton gun "proton" "/gun/particle proton"
30# Also, we need to switch off primary randomization for the /gun/ commands to
31# work
32/B5/generator/randomizePrimary false
33#
34# Field menu :
35/gui/addMenu field Field
36/gui/addButton field "off" "/B5/field/value 0 tesla"
37/gui/addButton field "0.2 tesla" "/B5/field/value 0.2 tesla"
38/gui/addButton field "2.0 tesla" "/B5/field/value 2.0 tesla"
39#
40# Viewer menu :
41/gui/addMenu viewer Viewer
42/gui/addButton viewer "Set style surface" "/vis/viewer/set/style surface"
43/gui/addButton viewer "Set style wireframe" "/vis/viewer/set/style wireframe"
44/gui/addButton viewer "Refresh viewer" "/vis/viewer/refresh"
45/gui/addButton viewer "Update viewer (interaction or end-of-file)" "/vis/viewer/update"
46/gui/addButton viewer "Flush viewer (= refresh + update)" "/vis/viewer/flush"
47/gui/addButton viewer "Update scene" "/vis/scene/notifyHandlers"
48#
49# User defined icon :
50/gui/addIcon "Run beam on" user_icon "/run/beamOn 1" run.png

Applications | User Support | Publications | Collaboration