/control/cout/ | Control cout/cerr for local thread. |
Set macro search path with colon-separated list.
Available at all Geant4 states.
Parameters
path | type s |
Execute a macro file.
Available at all Geant4 states.
Parameters
fileName | type s |
Execute a macro file more than once.
Loop counter can be used as an aliased variable.
Available at all Geant4 states.
Parameters
macroFile | type s | ||
counterName | type s | ||
initialValue | type d | ||
finalValue | type d | ||
stepSize | type d | Omittable : default value = 1 |
Execute a macro file more than once.
Loop counter can be used as an aliased variable.
Values must be separated by a space.
Available at all Geant4 states.
Parameters
macroFile | type s | ||
counterName | type s | ||
valueList | type s |
Suppress the program abortion caused by G4Exception.
Suppression level = 0 : no suppression
= 1 : suppress during EventProc state
= 2 : full suppression, i.e. no abortion by G4Exception
When abortion is suppressed, you will get error messages issued by G4Exception,
and there is NO guarantee for the correct result after the G4Exception error message.
Range : level >= 0 && level <= 2
Available at all Geant4 states.
Parameters
level | type i | Omittable : default value = 0 |
Applied command will also be shown on screen.
This command is useful with MACRO file.
0 : silent
1 : only the valid commands are shown.
2 : comment lines are also shown (default).
Range : switch >= 0 && switch <=2
Available at all Geant4 states.
Parameters
switch | type i | Omittable : default value = 2 |
Use double precision for printing out the current parameter value(s).
Available at all Geant4 states.
Parameters
useDoublePrecision | type b | Omittable : default value = 1 |
Store command history to a file.
Defaul file name is G4history.macro.
Available at all Geant4 states.
Parameters
fileName | type s | Omittable : default value = G4History.macro |
Stop saving history file.
Available at all Geant4 states.
Set an alias.
String can be aliased by this command.
The string may contain one or more spaces,
the string must be enclosed by double quotes (").
To use an alias, enclose the alias name with
parenthesis "{" and "}".
Available at all Geant4 states.
Parameters
aliasName | type s | ||
aliasValue | type s |
Remove an alias.
Available at all Geant4 states.
Parameters
aliasName | type s |
List aliases.
Available at all Geant4 states.
Get a shell environment variable and define it as an alias.
Available at all Geant4 states.
Parameters
type s |
Get the current value of the UI command and define it as an alias.
Command is ignored if the UI command does not support GetCurrentValue().
Syntax : <alias_name> <UI_command> <iIdx>
Available at all Geant4 states.
Parameters
alias_name | type s | ||
UI_command | type s | ||
iIdx | type i | Omittable : default value = 0 |
Display the valuerameter string.
If alias is contained, it is converted to the aliased value.
Available at all Geant4 states.
Parameters
type s |
Execute a (Unix) SHELL command.
Available at all Geant4 states.
Parameters
type s |
Display all of sub-directories and commands.
Directory path should be given by FULL-PATH.
Available at all Geant4 states.
Parameters
dirPath | type s | Omittable : default value = / |
Generate HTML files for all of sub-directories and commands.
Directory path should be given by FULL-PATH.
Available at all Geant4 states.
Parameters
dirPath | type s | Omittable : default value = / |
Set maximum number of stored UI commands.
Available at all Geant4 states.
Parameters
max | type i | Omittable : default value = 20 |
Execute a macro file if the expression is true.
Syntax : <double> <comp> <double> <macro_file>
Available at all Geant4 states.
Parameters
left | type d | ||
comp | type s | Parameter candidates : > >= < <= == != | |
right | type d | ||
macroFile | type s |
Execute a UI command if the expression is true.
Syntax : <double> <comp> <double> <UI_command>
Available at all Geant4 states.
Parameters
left | type d | ||
comp | type s | Parameter candidates : > >= < <= == != | |
right | type d | ||
UI_command | type s |
Define a new alias as the sum of two values.
Syntax : <new_alias> <value1> <value2>
<new_alias> may be an already existing alias. If it is the case,
aliased value is alternated.
Available at all Geant4 states.
Parameters
new_alias | type s | ||
value1 | type d | ||
value2 | type d |
Define a new alias as the subtraction of two values.
Syntax : <new_alias> <value1> <value2>
<new_alias> may be an already existing alias. If it is the case,
aliased value is alternated.
Available at all Geant4 states.
Parameters
new_alias | type s | ||
value1 | type d | ||
value2 | type d |
Define a new alias as the multiplication of two values.
Syntax : <new_alias> <value1> <value2>
<new_alias> may be an already existing alias. If it is the case,
aliased value is alternated.
Available at all Geant4 states.
Parameters
new_alias | type s | ||
value1 | type d | ||
value2 | type d |
Define a new alias as the division of two values.
Syntax : <new_alias> <value1> <value2>
<new_alias> may be an already existing alias. If it is the case,
aliased value is alternated.
Available at all Geant4 states.
Parameters
new_alias | type s | ||
value1 | type d | ||
value2 | type d | Parameter range : value2 != 0 |
Define a new alias as the remainder of two values.
Syntax : <new_alias> <value1> <value2>
<new_alias> may be an already existing alias. If it is the case,
aliased value is alternated.
Available at all Geant4 states.
Parameters
new_alias | type s | ||
value1 | type i | ||
value2 | type i |
Execute a macro file if the expression is true.
Syntax : <string> <comp> <string> <macro_file>
Available at all Geant4 states.
Parameters
left | type s | ||
comp | type s | Parameter candidates : == != | |
right | type s | ||
macroFile | type s |
Execute a UI command if the expression is true.
Syntax : <string> <comp> <string> <UI_command>
Available at all Geant4 states.
Parameters
left | type s | ||
comp | type s | Parameter candidates : == != | |
right | type s | ||
UI_command | type s |
Execute a macro file if program is running in batch mode.
Available at all Geant4 states.
Parameters
macroFile | type s |
Execute a macro file if program is running in interactive mode.
Available at all Geant4 states.
Parameters
macroFile | type s |
Execute a UI command if program is running in batch mode.
Available at all Geant4 states.
Parameters
UIcommand | type s |
Execute a UI command if program is running in interactive mode.
Available at all Geant4 states.
Parameters
UIcommand | type s |