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

#include <HadrontherapyRunAction.hh>

Inheritance diagram for HadrontherapyRunAction:
Collaboration diagram for HadrontherapyRunAction:

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 ()
 
virtual void SetMaster (G4bool val=true)
 
G4bool IsMaster () const
 

Additional Inherited Members

- Protected Attributes inherited from G4UserRunAction
G4bool isMaster
 

Detailed Description

Definition at line 42 of file HadrontherapyRunAction.hh.

Constructor & Destructor Documentation

HadrontherapyRunAction::HadrontherapyRunAction ( )

Definition at line 46 of file HadrontherapyRunAction.cc.

47 {
48 }
HadrontherapyRunAction::~HadrontherapyRunAction ( )

Definition at line 50 of file HadrontherapyRunAction.cc.

51 {
52 }

Member Function Documentation

void HadrontherapyRunAction::AddEMProcess ( )

Definition at line 71 of file HadrontherapyRunAction.cc.

72 {
73  electromagnetic += 1;
74 }
void HadrontherapyRunAction::AddHadronicProcess ( )

Definition at line 75 of file HadrontherapyRunAction.cc.

76 {
77  hadronic += 1;
78 }
void HadrontherapyRunAction::BeginOfRunAction ( const G4Run aRun)
virtual

Reimplemented from G4UserRunAction.

Definition at line 54 of file HadrontherapyRunAction.cc.

55 {
56  G4RunManager::GetRunManager()-> SetRandomNumberStore(true);
57  G4cout << "Run " << aRun -> GetRunID() << " starts ..." << G4endl;
58 
59  electromagnetic = 0;
60  hadronic = 0;
61 }
G4GLOB_DLL std::ostream G4cout
static G4RunManager * GetRunManager()
Definition: G4RunManager.cc:79
#define G4endl
Definition: G4ios.hh:61

Here is the call graph for this function:

void HadrontherapyRunAction::EndOfRunAction ( const G4Run )
virtual

Reimplemented from G4UserRunAction.

Definition at line 63 of file HadrontherapyRunAction.cc.

64 {
65  //G4cout << " Summary of Run " << aRun -> GetRunID() <<" :"<< G4endl;
66  //G4cout << "Number of electromagnetic processes of primary particles in the phantom:"
67  // << electromagnetic << G4endl;
68  //G4cout << "Number of hadronic processes of primary particles in the phantom:"
69  // << hadronic << G4endl;
70 }
void HadrontherapyRunAction::SelectEnergy ( G4int  )

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