geant4-B1-example  1.0
 All Classes Files Functions Variables Pages
B1RunAction Class Reference

Run action class ( run is the biggest unit) More...

#include <B1RunAction.hh>

Inheritance diagram for B1RunAction:
Collaboration diagram for B1RunAction:

Public Member Functions

 B1RunAction ()
 
virtual ~B1RunAction ()
 do nothing.. More...
 
virtual void BeginOfRunAction (const G4Run *)
 
virtual void EndOfRunAction (const G4Run *)
 
void AddEdep (G4double edep)
 for a user event action object to update fEdep and fEdep2.
fEdep represents the energy deposit of a run, which consists many events. More...
 

Detailed Description

Run action class ( run is the biggest unit)

In BeginOfRunAction(), it sets up the dose unit,
and Register our fEdep and fEdep2 parameters by parameterManager.

In EndOfRunAction(), it calculates the dose in the selected volume
from the energy deposit accumulated via stepping and event actions.
The computed dose is then printed on the screen.

Definition at line 25 of file B1RunAction.hh.

Constructor & Destructor Documentation

B1RunAction::B1RunAction ( )
  • define units (milligray, microgray, ... )
  • Register our fEdep and fEdep2 parameters by parameterManager.

Definition at line 21 of file B1RunAction.cc.

B1RunAction::~B1RunAction ( )
virtual

do nothing..

Definition at line 48 of file B1RunAction.cc.

Member Function Documentation

void B1RunAction::BeginOfRunAction ( const G4Run *  )
virtual
  • BeginOfRunAction() will be invoked at the begining of BeamOn()
  • set to not record random number.
  • call parameterManager to reset all registered parameters to zero.

Definition at line 58 of file B1RunAction.cc.

void B1RunAction::EndOfRunAction ( const G4Run *  run)
virtual
  • do parameter merging ( for multi thread )
  • from fEdep and fEdep2, calculate rms.
  • from rms, calculate rms/dos
  • print out data on the screen ( only for sequence mode )

Definition at line 84 of file B1RunAction.cc.

References B1PrimaryGeneratorAction::GetParticleGun(), and B1DetectorConstruction::GetScoringVolume().

Here is the call graph for this function:

void B1RunAction::AddEdep ( G4double  edep)

for a user event action object to update fEdep and fEdep2.
fEdep represents the energy deposit of a run, which consists many events.

Parameters
edepthe deposit energy from a given event.

Definition at line 188 of file B1RunAction.cc.

Referenced by B1EventAction::EndOfEventAction().

Here is the caller graph for this function:


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