Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
IORTRunAction Class Reference

#include <IORTRunAction.hh>

Inheritance diagram for IORTRunAction:
G4UserRunAction

Public Member Functions

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

Additional Inherited Members

- Protected Attributes inherited from G4UserRunAction
G4bool isMaster
 

Detailed Description

Definition at line 53 of file IORTRunAction.hh.

Constructor & Destructor Documentation

IORTRunAction::IORTRunAction ( )

Definition at line 56 of file IORTRunAction.cc.

57 {
58 }
IORTRunAction::~IORTRunAction ( )

Definition at line 60 of file IORTRunAction.cc.

61 {
62 }

Member Function Documentation

void IORTRunAction::AddEMProcess ( )

Definition at line 81 of file IORTRunAction.cc.

82 {
83  electromagnetic += 1;
84 }
void IORTRunAction::AddHadronicProcess ( )

Definition at line 85 of file IORTRunAction.cc.

86 {
87  hadronic += 1;
88 }
void IORTRunAction::BeginOfRunAction ( const G4Run aRun)
virtual

Reimplemented from G4UserRunAction.

Definition at line 64 of file IORTRunAction.cc.

References G4cout, G4endl, and G4RunManager::GetRunManager().

65 {
66  G4RunManager::GetRunManager()-> SetRandomNumberStore(true);
67  G4cout << "Run " << aRun -> GetRunID() << " starts ..." << G4endl;
68 
69  electromagnetic = 0;
70  hadronic = 0;
71 }
G4GLOB_DLL std::ostream G4cout
static G4RunManager * GetRunManager()
Definition: G4RunManager.cc:74
#define G4endl
Definition: G4ios.hh:61
void IORTRunAction::EndOfRunAction ( const G4Run )
virtual

Reimplemented from G4UserRunAction.

Definition at line 73 of file IORTRunAction.cc.

74 {
75  //G4cout << " Summary of Run " << aRun -> GetRunID() <<" :"<< G4endl;
76  //G4cout << "Number of electromagnetic processes of primary particles in the phantom:"
77  // << electromagnetic << G4endl;
78  //G4cout << "Number of hadronic processes of primary particles in the phantom:"
79  // << hadronic << G4endl;
80 }
void IORTRunAction::SelectEnergy ( G4int  )

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