Newer
Older
#include "RunAction.h"
#include "G4Run.hh"
RunAction::RunAction(ToolHandleArray<IAnaElemTool>& anatools)
: G4UserRunAction(),
m_anaelemtools(anatools) {
}
RunAction::~RunAction() {
}
void
RunAction::BeginOfRunAction(const G4Run* aRun)
{
for (auto ana: m_anaelemtools) {
ana->BeginOfRunAction(aRun);
}
}
void
RunAction::EndOfRunAction(const G4Run* aRun)
{
for (auto ana: m_anaelemtools) {
ana->EndOfRunAction(aRun);
}