Skip to content
Snippets Groups Projects
Forked from cepc / CEPCSW
1541 commits behind the upstream repository.
EventAction.cpp 489 B
#include "EventAction.h"

EventAction::EventAction(ToolHandleArray<IAnaElemTool>& anatools) 
    : G4UserEventAction(),
      m_anaelemtools(anatools) {

}

EventAction::~EventAction() {

}

void
EventAction::BeginOfEventAction(const G4Event* anEvent) {
    for (auto ana: m_anaelemtools) {
        ana->BeginOfEventAction(anEvent);
    }
}

void
EventAction::EndOfEventAction(const G4Event* anEvent) {
    for (auto ana: m_anaelemtools) {
        ana->EndOfEventAction(anEvent);
    }
}