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

Question Interface problem regarding EndOfRunAction display 

Forum: (Graphical) User Interfaces
Date: 17 Mar, 2010
From: Neoh <Neoh>

Hi,

I'm currently using g4.9.3 on Fedora.

When I used Qt user interface as replacement of dumb terminal, The output messages which I wrote in G4Run::EndOfRunAction() did not show up until the next run. For example, I ran 100 events in the first run, 10 events in second run. The messages output of EndOfRunAction() should be like this:

--------------------End of Run Summary------------------------------
Number of events processed: 100
---Neutron---
Average energy per event: 0 eV
---Gamma---
Average energy per event: 402.49372 keV
---Others---
Average energy per event: 39.515165 keV
--------------------------------------------------------------------

However, this end-of-run result did not show up until the next run. The same problem happens to G4UIXm, but when I ran in batch mode, the results displayed normally in the terminal. The message in EndOfRunAction() displayed right at the end of first run.

I couldn't sure if this is my coding problem when dumb terminal shows the correct display but Qt interface or Xmotif does not. The thing is, I borrowed the code from novice/N03, but the Qt interface displays the N03 messages normally.

I attach my EventAction and RunAction cc and hh files, in case one needs to look at the codes. Hope someone can point out the problem. Thanks!


Neoh



   Attachment:
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2010/03/17/07.51-26435-EventAction.cc
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2010/03/17/07.51-57294-EventAction.hh
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2010/03/17/07.51-46641-RunAction.cc
      http://hypernews.slac.stanford.edu/HyperNews/geant4/get/AUX/2010/03/17/07.51-44332-RunAction.hh

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

1 Feedback: Re: Interface problem regarding EndOfRunAction display   (Neoh - 18 Mar, 2010)
(_ None: Re: Interface problem regarding EndOfRunAction display   (John Allison - 07 May, 2010)
(_ None: Re: Interface problem regarding EndOfRunAction display   (Neoh - 07 May, 2010)
 Add Message Add Message
to: "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 ]