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

#include <HadrontherapyRunAction.hh>

Inheritance diagram for HadrontherapyRunAction:
G4UserRunAction

Public Member Functions

 HadrontherapyRunAction ()
 
 ~HadrontherapyRunAction ()
 
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 48 of file HadrontherapyRunAction.hh.

Constructor & Destructor Documentation

HadrontherapyRunAction::HadrontherapyRunAction ( )

Definition at line 53 of file HadrontherapyRunAction.cc.

54 {
55 }
HadrontherapyRunAction::~HadrontherapyRunAction ( )

Definition at line 57 of file HadrontherapyRunAction.cc.

58 {
59 }

Member Function Documentation

void HadrontherapyRunAction::AddEMProcess ( )

Definition at line 78 of file HadrontherapyRunAction.cc.

79 {
80  electromagnetic += 1;
81 }
void HadrontherapyRunAction::AddHadronicProcess ( )

Definition at line 82 of file HadrontherapyRunAction.cc.

83 {
84  hadronic += 1;
85 }
void HadrontherapyRunAction::BeginOfRunAction ( const G4Run aRun)
virtual

Reimplemented from G4UserRunAction.

Definition at line 61 of file HadrontherapyRunAction.cc.

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

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

Reimplemented from G4UserRunAction.

Definition at line 70 of file HadrontherapyRunAction.cc.

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

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