1 | <html><head><title>Commands in /control/</title></head> |
---|
2 | <body bgcolor="#ffffff"><h2>/control/</h2><p> |
---|
3 | UI control commands.<br> |
---|
4 | <p><hr><p> |
---|
5 | <h2>Sub-directories : </h2><dl> |
---|
6 | <p><br><p><dt><a href="_control_matScan_.html">/control/matScan/</a> |
---|
7 | <p><dd>Material scanner commands. |
---|
8 | </dl><p><hr><p> |
---|
9 | <h2>Commands : </h2><dl> |
---|
10 | <p><br><p><dt><b>execute [<i>fileName</i>]</b> |
---|
11 | <p><dd> |
---|
12 | Execute a macro file.<br> |
---|
13 | <p><dd>Available at all Geant4 states. |
---|
14 | <p><dd>Parameters<table border=1> |
---|
15 | <tr><td>fileName |
---|
16 | <td>type s |
---|
17 | <td><td></table> |
---|
18 | <p><br><p><dt><b>loop [<i>macroFile</i>] [<i>counterName</i>] [<i>initialValue</i>] [<i>finalValue</i>] [<i>stepSize</i>]</b> |
---|
19 | <p><dd> |
---|
20 | Execute a macro file more than once.<br> |
---|
21 | Loop counter can be used as an aliased variable.<br> |
---|
22 | <p><dd>Available at all Geant4 states. |
---|
23 | <p><dd>Parameters<table border=1> |
---|
24 | <tr><td>macroFile |
---|
25 | <td>type s |
---|
26 | <td><td><tr><td>counterName |
---|
27 | <td>type s |
---|
28 | <td><td><tr><td>initialValue |
---|
29 | <td>type d |
---|
30 | <td><td><tr><td>finalValue |
---|
31 | <td>type d |
---|
32 | <td><td><tr><td>stepSize |
---|
33 | <td>type d |
---|
34 | <td>Omittable : default value = 1 |
---|
35 | <td></table> |
---|
36 | <p><br><p><dt><b>foreach [<i>macroFile</i>] [<i>counterName</i>] [<i>valueList</i>]</b> |
---|
37 | <p><dd> |
---|
38 | Execute a macro file more than once.<br> |
---|
39 | Loop counter can be used as an aliased variable.<br> |
---|
40 | Values must be separated by a space.<br> |
---|
41 | <p><dd>Available at all Geant4 states. |
---|
42 | <p><dd>Parameters<table border=1> |
---|
43 | <tr><td>macroFile |
---|
44 | <td>type s |
---|
45 | <td><td><tr><td>counterName |
---|
46 | <td>type s |
---|
47 | <td><td><tr><td>valueList |
---|
48 | <td>type s |
---|
49 | <td><td></table> |
---|
50 | <p><br><p><dt><b>suppressAbortion [<i>level</i>]</b> |
---|
51 | <p><dd> |
---|
52 | Suppress the program abortion caused by G4Exception.<br> |
---|
53 | Suppression level = 0 : no suppression<br> |
---|
54 | = 1 : suppress during EventProc state<br> |
---|
55 | = 2 : full suppression, i.e. no abortion by G4Exception<br> |
---|
56 | When abortion is suppressed, you will get error messages issued by G4Exception,<br> |
---|
57 | and there is NO guarantee for the correct result after the G4Exception error message.<br> |
---|
58 | <p><dd>Range : level >= 0 && level <= 2 |
---|
59 | <p><dd>Available at all Geant4 states. |
---|
60 | <p><dd>Parameters<table border=1> |
---|
61 | <tr><td>level |
---|
62 | <td>type i |
---|
63 | <td>Omittable : default value = 0 |
---|
64 | <td></table> |
---|
65 | <p><br><p><dt><b>verbose [<i>switch</i>]</b> |
---|
66 | <p><dd> |
---|
67 | Applied command will also be shown on screen.<br> |
---|
68 | This command is useful with MACRO file.<br> |
---|
69 | 0 : silent<br> |
---|
70 | 1 : only the valid commands are shown.<br> |
---|
71 | 2 : comment lines are also shown (default).<br> |
---|
72 | <p><dd>Range : switch >= 0 && switch <=2 |
---|
73 | <p><dd>Available at all Geant4 states. |
---|
74 | <p><dd>Parameters<table border=1> |
---|
75 | <tr><td>switch |
---|
76 | <td>type i |
---|
77 | <td>Omittable : default value = 2 |
---|
78 | <td></table> |
---|
79 | <p><br><p><dt><b>saveHistory [<i>fileName</i>]</b> |
---|
80 | <p><dd> |
---|
81 | Store command history to a file.<br> |
---|
82 | Defaul file name is G4history.macro.<br> |
---|
83 | <p><dd>Available at all Geant4 states. |
---|
84 | <p><dd>Parameters<table border=1> |
---|
85 | <tr><td>fileName |
---|
86 | <td>type s |
---|
87 | <td>Omittable : default value = G4History.macro |
---|
88 | <td></table> |
---|
89 | <p><br><p><dt><b>stopSavingHistory</b> |
---|
90 | <p><dd> |
---|
91 | Stop saving history file.<br> |
---|
92 | <p><dd>Available at all Geant4 states. |
---|
93 | <p><br><p><dt><b>alias [<i>aliasName</i>] [<i>aliasValue</i>]</b> |
---|
94 | <p><dd> |
---|
95 | Set an alias.<br> |
---|
96 | String can be aliased by this command.<br> |
---|
97 | The string may contain one or more spaces,<br> |
---|
98 | the string must be enclosed by double quotes (").<br> |
---|
99 | To use an alias, enclose the alias name with<br> |
---|
100 | parenthis "{" and "}".<br> |
---|
101 | <p><dd>Available at all Geant4 states. |
---|
102 | <p><dd>Parameters<table border=1> |
---|
103 | <tr><td>aliasName |
---|
104 | <td>type s |
---|
105 | <td><td><tr><td>aliasValue |
---|
106 | <td>type s |
---|
107 | <td><td></table> |
---|
108 | <p><br><p><dt><b>unalias [<i>aliasName</i>]</b> |
---|
109 | <p><dd> |
---|
110 | Remove an alias.<br> |
---|
111 | <p><dd>Available at all Geant4 states. |
---|
112 | <p><dd>Parameters<table border=1> |
---|
113 | <tr><td>aliasName |
---|
114 | <td>type s |
---|
115 | <td><td></table> |
---|
116 | <p><br><p><dt><b>listAlias</b> |
---|
117 | <p><dd> |
---|
118 | List aliases.<br> |
---|
119 | <p><dd>Available at all Geant4 states. |
---|
120 | <p><br><p><dt><b>shell [<i></i>]</b> |
---|
121 | <p><dd> |
---|
122 | Execute a (Unix) SHELL command.<br> |
---|
123 | <p><dd>Available at all Geant4 states. |
---|
124 | <p><dd>Parameters<table border=1> |
---|
125 | <tr><td> |
---|
126 | <td>type s |
---|
127 | <td><td></table> |
---|
128 | <p><br><p><dt><b>manual [<i>dirPath</i>]</b> |
---|
129 | <p><dd> |
---|
130 | Display all of sub-directories and commands.<br> |
---|
131 | Directory path should be given by FULL-PATH.<br> |
---|
132 | <p><dd>Available at all Geant4 states. |
---|
133 | <p><dd>Parameters<table border=1> |
---|
134 | <tr><td>dirPath |
---|
135 | <td>type s |
---|
136 | <td>Omittable : default value = / |
---|
137 | <td></table> |
---|
138 | <p><br><p><dt><b>createHTML [<i>dirPath</i>]</b> |
---|
139 | <p><dd> |
---|
140 | Generate HTML files for all of sub-directories and commands.<br> |
---|
141 | Directory path should be given by FULL-PATH.<br> |
---|
142 | <p><dd>Available at all Geant4 states. |
---|
143 | <p><dd>Parameters<table border=1> |
---|
144 | <tr><td>dirPath |
---|
145 | <td>type s |
---|
146 | <td>Omittable : default value = / |
---|
147 | <td></table> |
---|
148 | <p><br><p><dt><b>maximumStoredHistory [<i>max</i>]</b> |
---|
149 | <p><dd> |
---|
150 | Set maximum number of stored UI commands.<br> |
---|
151 | <p><dd>Available at all Geant4 states. |
---|
152 | <p><dd>Parameters<table border=1> |
---|
153 | <tr><td>max |
---|
154 | <td>type i |
---|
155 | <td>Omittable : default value = 20 |
---|
156 | <td></table> |
---|
157 | </dl></body></html> |
---|