/control/cout/

Control cout/cerr for local thread.

Commands

setCoutFile
setCerrFile
useBuffer
prefixString
ignoreThreadsExcept
ignoreInitializationCout

setCoutFile [fileName] [append]

Send G4cout stream to a file dedicated to a thread.
To have a display output, use special keyword "**Screen**".
If append flag is true output is appended to file,
otherwise file output is overwritten.

Available Geant4 state(s) : PreInit Idle

Parameters
fileName type s Omittable : default value = **Screen**
append type b Omittable : default value = 1

setCerrFile [fileName] [append]

Send G4cerr stream to a file dedicated to a thread.
To have a display output, use special keyword "**Screen**".
If append flag is true output is appended to file,
otherwise file output is overwritten.

Available Geant4 state(s) : PreInit Idle

Parameters
fileName type s Omittable : default value = **Screen**
append type b Omittable : default value = 1

useBuffer [flag]

Send cout and/or cerr stream to a buffer.
The buffered text will be printed at the end of the job
for each thread at a time, so that output of each thread is grouped.
This command has no effect if output goes to a file.

Available Geant4 state(s) : PreInit Idle

Parameters
flag type b Omittable : default value = 1

prefixString [prefix]

Set the prefix string for each cout/cerr line from a thread.

Available Geant4 state(s) : PreInit Idle

Parameters
prefix type s Omittable : default value = G4WT

ignoreThreadsExcept [threadID]

Omit cout from threads except the specified one.
This command takes effect only if cout destination is screen without buffering.
If specified thread ID is greater than the number of threads,
no cout is displayed from worker threads. -1 to reset.
This command does not affect to cerr.

Available Geant4 state(s) : PreInit Idle

Parameters
threadID type i Omittable : default value = 0

ignoreInitializationCout [IgnoreInit]

Omit cout from threads during initialization, as they should be identical to the master thread.
This command takes effect only if cout destination is screen without buffering.
This command does not affect to cerr.

Available Geant4 state(s) : PreInit Idle

Parameters
IgnoreInit type b Omittable : default value = 1