From b048d4dd29652b99ce2f5029af4dc8fc05969059 Mon Sep 17 00:00:00 2001 From: Yessica Dominguez <yessicadomin@gmail.com> Date: Tue, 6 Jun 2023 20:54:38 +0000 Subject: [PATCH] Upload New File --- CODE/EventAction.hh | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 CODE/EventAction.hh diff --git a/CODE/EventAction.hh b/CODE/EventAction.hh new file mode 100644 index 0000000..0d798ee --- /dev/null +++ b/CODE/EventAction.hh @@ -0,0 +1,30 @@ +#ifndef EventAction_h +#define EventAction_h 1 + + +// Geant libraries + +#include "G4UserEventAction.hh" +#include "globals.hh" + +class RunAction; + +class EventAction : public G4UserEventAction +{ + public: + EventAction(RunAction* runAction); + virtual ~EventAction(); + + virtual void BeginOfEventAction(const G4Event* event); + virtual void EndOfEventAction(const G4Event* event); + + void AddEdep(G4double edep) + { + fEdep += edep; + } + + private: + RunAction* fRunAction; + G4double fEdep; +}; +#endif -- GitLab