QwGeant4
RunAction Class Reference

#include <RunAction.hh>

Inherits G4UserRunAction.

Public Member Functions

 RunAction ()
 
virtual ~RunAction ()
 
virtual void BeginOfRunAction (const G4Run *)
 
virtual void EndOfRunAction (const G4Run *)
 

Detailed Description

Definition at line 52 of file RunAction.hh.

Constructor & Destructor Documentation

RunAction::RunAction ( )

Definition at line 50 of file RunAction.cc.

51 {}
RunAction::~RunAction ( )
virtual

Definition at line 55 of file RunAction.cc.

56 {}

Member Function Documentation

void RunAction::BeginOfRunAction ( const G4Run *  aRun)
virtual

Definition at line 60 of file RunAction.cc.

References HistoManager::GetPointer().

61 {
62  G4int id = aRun->GetRunID();
63  G4cout << "### Run " << id << " start" << G4endl;
64  (HistoManager::GetPointer())->BeginOfRun();
65 
66 #ifdef G4VIS_USE
67  G4UImanager* UI = G4UImanager::GetUIpointer();
68 
69  G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance();
70 
71  if(pVVisManager)
72  {
73  UI->ApplyCommand("/vis/scene/notifyHandlers");
74  }
75 #endif
76 
77 }
static HistoManager * GetPointer()
Definition: HistoManager.cc:70

+ Here is the call graph for this function:

void RunAction::EndOfRunAction ( const G4Run *  )
virtual

Definition at line 81 of file RunAction.cc.

References HistoManager::GetPointer().

82 {
83 
84  G4cout << "RunAction: End of run actions are started" << G4endl;
85  (HistoManager::GetPointer())->EndOfRun();
86 
87 #ifdef G4VIS_USE
88  if (G4VVisManager::GetConcreteInstance())
89  G4UImanager::GetUIpointer()->ApplyCommand("/vis/viewer/update");
90 #endif
91 
92 }
static HistoManager * GetPointer()
Definition: HistoManager.cc:70

+ Here is the call graph for this function:


The documentation for this class was generated from the following files: