29#include "RunAction.hh"
32#include "G4RunManager.hh"
33#include "G4SystemOfUnits.hh"
54 G4cout <<
"### Run " << run->GetRunID() <<
" starts." << G4endl;
57 G4RunManager::GetRunManager()->SetRandomNumberStore(
false);
63 G4int nofEvents = run->GetNumberOfEvent();
67 const Run *scavengerRun =
dynamic_cast<const Run *
>(run);
72 <<
"--------------------End of Global Run-----------------------"
74 <<
" The run has " << nofEvents <<
" events "
77 G4cout <<
"Number of events recorded by the species scorer = "
80 masterScorer->OutputAndClear();
84 <<
"--------------------End of Local Run------------------------"
86 <<
" The run has " << nofEvents <<
" events"
90 <<
" Total energy deposited in the world volume : " << sumDose / eV <<
" eV"
92 <<
" ------------------------------------------------------------"
Definition of the scavenger::ScoreSpecies class.
void EndOfRunAction(const G4Run *) override
void BeginOfRunAction(const G4Run *) override
G4Run * GenerateRun() override
Collects information event per event from the hits collections.
auto GetPrimitiveScorer() const
Primitive scorer class for scoring the radiolytic species produced after irradiation in a water volum...
G4int GetNumberOfRecordedEvents() const
Get number of recorded events.