geant4-B1-example
1.0
|
Run action class ( run is the biggest unit) More...
#include <B1RunAction.hh>
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... | |
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.
B1RunAction::B1RunAction | ( | ) |
Definition at line 21 of file B1RunAction.cc.
|
virtual |
do nothing..
Definition at line 48 of file B1RunAction.cc.
|
virtual |
Definition at line 58 of file B1RunAction.cc.
|
virtual |
Definition at line 84 of file B1RunAction.cc.
References B1PrimaryGeneratorAction::GetParticleGun(), and B1DetectorConstruction::GetScoringVolume().
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.
edep | the deposit energy from a given event. |
Definition at line 188 of file B1RunAction.cc.
Referenced by B1EventAction::EndOfEventAction().