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

#include <GammaKnifeRunAction.hh>

Inheritance diagram for GammaKnifeRunAction:
Collaboration diagram for GammaKnifeRunAction:

Public Member Functions

 GammaKnifeRunAction (G4bool isOnMaster)
 
 ~GammaKnifeRunAction ()
 
void BeginOfRunAction (const G4Run *)
 
void EndOfRunAction (const G4Run *)
 
void SelectEnergy (G4int)
 
- 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 46 of file GammaKnifeRunAction.hh.

Constructor & Destructor Documentation

GammaKnifeRunAction::GammaKnifeRunAction ( G4bool  isOnMaster)

Definition at line 44 of file GammaKnifeRunAction.cc.

45 {
46  sum_real = 0;
47  sum_user = 0;
48  timer = new G4Timer;
49 }
GammaKnifeRunAction::~GammaKnifeRunAction ( )

Definition at line 53 of file GammaKnifeRunAction.cc.

54 {
55  delete timer;
56 }

Member Function Documentation

void GammaKnifeRunAction::BeginOfRunAction ( const G4Run aRun)
virtual

Reimplemented from G4UserRunAction.

Definition at line 60 of file GammaKnifeRunAction.cc.

61 {
63  G4cout << "Run " << aRun -> GetRunID() << " starts ..." << G4endl;
64 
65  timer->Start();
66 }
void SetRandomNumberStore(G4bool flag)
G4GLOB_DLL std::ostream G4cout
static G4RunManager * GetRunManager()
Definition: G4RunManager.cc:79
#define G4endl
Definition: G4ios.hh:61
void Start()

Here is the call graph for this function:

void GammaKnifeRunAction::EndOfRunAction ( const G4Run aRun)
virtual

Reimplemented from G4UserRunAction.

Definition at line 70 of file GammaKnifeRunAction.cc.

71 {
72 
73  timer->Stop();
74 
75  G4double time_real = timer -> GetRealElapsed();
76  G4double time_user = timer -> GetUserElapsed();
77 
78  sum_real = sum_real + time_real;
79  sum_user = sum_user + time_user;
80  G4cout << "\t User TOT = " << sum_user <<
81  "\t Real TOT = " << sum_real << G4endl;
82  G4cout << " Summary of Run " << aRun -> GetRunID() <<" :"<< G4endl;
83 
84 }
G4GLOB_DLL std::ostream G4cout
void Stop()
#define G4endl
Definition: G4ios.hh:61
double G4double
Definition: G4Types.hh:76

Here is the call graph for this function:

void GammaKnifeRunAction::SelectEnergy ( G4int  )

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