#include "EventAction.hh" EventAction::EventAction() {} EventAction::~EventAction() {} void EventAction::BeginOfEventAction(const G4Event* event) { G4int eventID = event->GetEventID(); G4cout << "Starting Event: " << eventID << G4endl; } void EventAction::EndOfEventAction(const G4Event* event) { G4AnalysisManager* analysisManager = G4AnalysisManager::Instance(); G4int eventID = (G4RunManager::GetRunManager()->GetCurrentEvent()->GetEventID()); analysisManager->FillNtupleIColumn(0, eventID); analysisManager->FillNtupleDColumn(1, fenergyDeposited); analysisManager->AddNtupleRow(); }