G4-DESCSS/include/EventAction.h

22 lines
459 B
C
Raw Normal View History

2022-05-19 11:47:35 +08:00
#ifndef DESCSS_EventAction_h
#define DESCSS_EventAction_h
#include "G4UserEventAction.hh"
#include "globals.hh"
class RunAction;
class EventAction : public G4UserEventAction {
public:
EventAction(RunAction* runAction);
~EventAction() override;
void BeginOfEventAction(const G4Event*) override;
void EndOfEventAction(const G4Event*) override;
private:
RunAction* fRunAction = nullptr;
std::map<G4String, G4double> fEdep;
};
#endif