#ifndef YOUREVENTACTION_HH #define YOUREVENTACTION_HH #include "G4UserEventAction.hh" #include "globals.hh" class YourEventAction : public G4UserEventAction { public: YourEventAction(); virtual ~YourEventAction(); virtual void BeginOfEventAction(const G4Event*); virtual void EndOfEventAction(const G4Event*); void AddEdep(G4double edep) { fEdepPerEvent += edep; } void AddCHL(G4double chl) { fCHLPerEvent += chl; } private: G4double fEdepPerEvent; G4double fCHLPerEvent; }; #endif // YOUREVENTACTION_HH