Forked from
cepc / CEPCSW
1541 commits behind the upstream repository.
-
lintao@ihep.ac.cn authoredb9cdb003
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);
}
}