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

#include <ExGflashRunAction.hh>

Inheritance diagram for ExGflashRunAction:
Collaboration diagram for ExGflashRunAction:

Public Member Functions

 ExGflashRunAction ()
 
 ~ExGflashRunAction ()
 
virtual void BeginOfRunAction (const G4Run *aRun)
 
virtual void EndOfRunAction (const G4Run *aRun)
 
- 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 39 of file ExGflashRunAction.hh.

Constructor & Destructor Documentation

ExGflashRunAction::ExGflashRunAction ( )

Definition at line 37 of file ExGflashRunAction.cc.

38  : G4UserRunAction(), fRunID(0)
39 {}
ExGflashRunAction::~ExGflashRunAction ( )

Definition at line 43 of file ExGflashRunAction.cc.

44 {}

Member Function Documentation

void ExGflashRunAction::BeginOfRunAction ( const G4Run aRun)
virtual

Reimplemented from G4UserRunAction.

Definition at line 48 of file ExGflashRunAction.cc.

49 {
50  ((G4Run *)(aRun))->SetRunID(fRunID++);
51 
52  G4cout << "### Run " << aRun->GetRunID() << " start." << G4endl;
53 }
G4GLOB_DLL std::ostream G4cout
G4int GetRunID() const
Definition: G4Run.hh:76
Definition: G4Run.hh:46
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:

void ExGflashRunAction::EndOfRunAction ( const G4Run aRun)
virtual

Reimplemented from G4UserRunAction.

Definition at line 57 of file ExGflashRunAction.cc.

58 {
59  G4cout << "number of event = " << aRun->GetNumberOfEvent() << G4endl;
60 
61 }
G4GLOB_DLL std::ostream G4cout
G4int GetNumberOfEvent() const
Definition: G4Run.hh:79
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:


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