#include "EventAction.hh" #include "RunAction.hh" #include "G4SDManager.hh" #include "G4HCofThisEvent.hh" #include "G4Event.hh" #include "G4RunManager.hh" //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... EventAction::EventAction(RunAction* runAction) : G4UserEventAction(), fRunAction(runAction) {} //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... EventAction::~EventAction() {} //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... void EventAction::BeginOfEventAction(const G4Event* event ) { G4cout << "Event ID we printed ourselves is: " << event->GetEventID() << G4endl; } //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... void EventAction::EndOfEventAction(const G4Event* event ) { // accumulate statistics in run action //G4HCofThisEvent* HCE = event->GetHCofThisEvent(); //G4cout << "The partilce is: " << inf::Print()<< G4endl; G4cout << "End of the event" << G4endl; } //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......