Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
XrayTelRunAction Class Reference

#include <XrayTelRunAction.hh>

Inheritance diagram for XrayTelRunAction:
Collaboration diagram for XrayTelRunAction:

Public Member Functions

 XrayTelRunAction ()
 
 ~XrayTelRunAction ()
 
void BeginOfRunAction (const G4Run *)
 
void EndOfRunAction (const G4Run *)
 
- Public Member Functions inherited from G4UserRunAction
 G4UserRunAction ()
 
virtual ~G4UserRunAction ()
 
virtual G4RunGenerateRun ()
 
virtual void SetMaster (G4bool val=true)
 
G4bool IsMaster () const
 

Additional Inherited Members

- Protected Attributes inherited from G4UserRunAction
G4bool isMaster
 

Detailed Description

Definition at line 65 of file XrayTelRunAction.hh.

Constructor & Destructor Documentation

XrayTelRunAction::XrayTelRunAction ( )

Definition at line 73 of file XrayTelRunAction.cc.

74 { }
XrayTelRunAction::~XrayTelRunAction ( )

Definition at line 77 of file XrayTelRunAction.cc.

78 { }

Member Function Documentation

void XrayTelRunAction::BeginOfRunAction ( const G4Run aRun)
virtual

Reimplemented from G4UserRunAction.

Definition at line 81 of file XrayTelRunAction.cc.

82 {
83  G4int runN = aRun->GetRunID();
84  if (IsMaster())
85  G4cout << "### Run : " << runN << " (master)" << G4endl;
86  else
87  G4cout << "### Run : " << runN << " (worker)" << G4endl;
88 
91  UI->ApplyCommand("/vis/scene/notifyHandlers");
92  }
93  // Book histograms and ntuples
95  analysis->book(IsMaster());
96 }
void book(G4bool isMaster)
static G4VVisManager * GetConcreteInstance()
int G4int
Definition: G4Types.hh:78
static G4UImanager * GetUIpointer()
Definition: G4UImanager.cc:59
G4GLOB_DLL std::ostream G4cout
G4bool IsMaster() const
G4int GetRunID() const
Definition: G4Run.hh:76
#define G4endl
Definition: G4ios.hh:61
static XrayTelAnalysis * getInstance()
G4int ApplyCommand(const char *aCommand)
Definition: G4UImanager.cc:447

Here is the call graph for this function:

void XrayTelRunAction::EndOfRunAction ( const G4Run )
virtual

Reimplemented from G4UserRunAction.

Definition at line 99 of file XrayTelRunAction.cc.

100 {
102  analysis->finish(IsMaster());
103 
105  G4UImanager::GetUIpointer()->ApplyCommand("/vis/viewer/update");
106 }
void finish(G4bool isMaster)
static G4VVisManager * GetConcreteInstance()
static G4UImanager * GetUIpointer()
Definition: G4UImanager.cc:59
G4bool IsMaster() const
static XrayTelAnalysis * getInstance()
G4int ApplyCommand(const char *aCommand)
Definition: G4UImanager.cc:447

Here is the call graph for this function:


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