CMS 3D CMS Logo

VisG4EventTwig Class Reference

#include <VisSimulation/VisSimBase/interface/VisG4EventTwig.h>

Inheritance diagram for VisG4EventTwig:

VisQueuedTwig Observer< const BeginOfEvent * > IgSimpleTwig VisEventObserver IgCompoundTwig IgTwig IgRepresentable

List of all members.

Public Member Functions

virtual void update (IgTextRep *rep)
 VisG4EventTwig (IgState *state, IgTwig *parent)

Private Member Functions

virtual void update (const BeginOfEvent *item)
 This routine will be called when the appropriate signal arrives.

Private Attributes

const G4Event * m_event


Detailed Description

Definition at line 20 of file VisG4EventTwig.h.


Constructor & Destructor Documentation

VisG4EventTwig::VisG4EventTwig ( IgState state,
IgTwig parent 
)

Definition at line 20 of file VisG4EventTwig.cc.

00021     : VisQueuedTwig (state, parent, "Event"),
00022       m_event (0)
00023 { //init (); 
00024 }


Member Function Documentation

void VisG4EventTwig::update ( const BeginOfEvent  )  [private, virtual]

This routine will be called when the appropriate signal arrives.

Implements Observer< const BeginOfEvent * >.

Definition at line 52 of file VisG4EventTwig.cc.

References m_event.

00053 {
00054     // Let base class do the hard work
00055     // onBaseUpDate ();
00056     
00057     // recover G4 pointer
00058     m_event = (*event) ();
00059 }

void VisG4EventTwig::update ( IgTextRep rep  )  [virtual]

Reimplemented from VisQueuedTwig.

Definition at line 27 of file VisG4EventTwig.cc.

References event(), m_event, IgTextRep::setText(), and VisQueuedTwig::update().

00028 {
00029     // Get debugging dump.
00030     VisQueuedTwig::update (rep);
00031     
00032     // Prepare property description.
00033     const G4Event       *event = m_event;
00034     std::ostringstream  text;
00035 
00036     text << "<table width='100%'><tr><td>Event Nr</td><td>";
00037 
00038     if (event)
00039         text << event->GetEventID ();
00040     else
00041         text << "(no event)";
00042 
00043     text << "</td></tr></table>" << '\0';
00044 
00045     // Send it over.
00046     qApp->lock ();
00047     rep->setText (text.str ());
00048     qApp->unlock (false);
00049 }


Member Data Documentation

const G4Event* VisG4EventTwig::m_event [private]

Definition at line 36 of file VisG4EventTwig.h.

Referenced by update().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:35:24 2009 for CMSSW by  doxygen 1.5.4