Message: Re: Interface problem regarding EndOfRunAction display Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: Interface problem regarding EndOfRunAction display 

Forum: (Graphical) User Interfaces
Re: Question Interface problem regarding EndOfRunAction display (Neoh)
Re: Feedback Re: Interface problem regarding EndOfRunAction display (Neoh)
Date: 07 May, 2010
From: John Allison <John Allison>

Dear Neoh,

Sorry to be so long responding to your problem. It got buried in my in tray.

Looking at your source code in EndOfRunAction, the reason is plain - G4endl is missing. This means output remains in the buffer.

The reason "/vis/scene/endOfEventAction accumulate" works for you is that it causes extra printing which flushes your printing.

This is not just a Geant4 problem. For example, if a program crashes you can lose output written before the crash. Always use std::endl or, within Geant4, G4endl, to flush the output buffer. (G4cout and G4endl are equivalent to std::cout and std::endl for terminal sessions but they intercept and re-direct output to the graphical user interface, such as G4UIQt, if used.)

John.

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

1 None: Re: Interface problem regarding EndOfRunAction display   (Neoh - 07 May, 2010)
 Add Message Add Message
to: "Re: Interface problem regarding EndOfRunAction display"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]