00001 // 00002 // $Id: EventAction.hh 172 2008-09-22 10:23:14Z maire $ 00003 // 00004 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 00005 00006 #ifndef EventAction_h 00007 #define EventAction_h 1 00008 00009 #include "G4UserEventAction.hh" 00010 #include "globals.hh" 00011 00012 class RunAction; 00013 00014 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 00015 00016 class EventAction : public G4UserEventAction 00017 { 00018 public: 00019 EventAction(RunAction*); 00020 ~EventAction(); 00021 00022 public: 00023 void BeginOfEventAction(const G4Event*); 00024 void EndOfEventAction(const G4Event*); 00025 00026 void AddEdep(G4double edep) {m_edepPerEvent += edep;}; 00027 00028 private: 00029 RunAction* m_runAction; 00030 G4double m_edepPerEvent; 00031 G4int m_printModulo; 00032 }; 00033 00034 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 00035 00036 #endif