Message: Re: G4cout in messenger class Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: G4cout in messenger class 

Forum: (Graphical) User Interfaces
Re: Question G4cout in messenger class (Steve Quillin)
Date: 26 Jul, 2016
From: Ruirui <Ruirui>

Hi Steve, I think you can simply just use the standard cout to output what
you want to display. If cout works well, then it may be just the io
problem, if no, probably it is your simulation problem.


On Tue, Jul 26, 2016 at 3:51 AM, Steve Quillin <>

> *** Discussion title: (Graphical) User Interfaces
> Hello
> I have a messenger class attached to my PrimaryGeneratorAction class and
> though it seems to work, it does not display any output from G4cout.
> There is no error message at compile or run time, just no output.
> std::cout used instead of G4cout works as expected. I've spent ages
> trying to track down errors in my code that turned out to be just a lack
> of expected messages in output. (I'm trying to print a message to screen
> after applying a command to PrimaryGeneratorAction from the messenger. )
> I presume I'm either missing something or being stupid somewhere. Or is
> this expected behaviour? Any advice?
> Thanks
> Steve
> -------------------------------------------------------------
> Visit this GEANT4 at message (to reply or
> unsubscribe) at:

Liu Ruirui
Research Assistant
Department of Nuclear Engineering and Radiological Health Physics (NERHP)
Oregon State University
3541 SW Jefferson Way, Corvallis, OR 97330

 [ MIME part of type text/html without a name stripped ]

 Add Message Add Message
to: "Re: G4cout in messenger class"

 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 ]