Skip to main content
<Outline of the g4cout>
The arrow '<--' denotes the direction of the stream flow. The couted
strings are buffered in G4StrStreamBuf class, and the buffered data
will be flushed to G4UIsession (i.e. to its concrete derivative
classes like G4UIterminal) whenever the '<<endl' or '<<flush' is
G4UIsession SendG4cout(ss) G4StrStreamBuf thousands of
(G4UIterminal) (derived from G4couts
The concrete classes like G4UIterminal handles the
string and decides where to send it. For example,
G4UIterminal sends the messages to the console
terminal. And some GUI class may send the messages to
another computer via sockets...