00001 // 00002 // $Id: RunAction.hh 171 2008-09-17 14:27:03Z maire $ 00003 // 00004 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 00005 00006 #ifndef RunAction_h 00007 #define RunAction_h 1 00008 00009 #include "G4UserRunAction.hh" 00010 #include "globals.hh" 00011 00012 class G4Run; 00013 class DetectorConstruction; 00014 00015 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 00016 00017 class RunAction : public G4UserRunAction 00018 { 00019 public: 00020 RunAction(DetectorConstruction*); 00021 ~RunAction(); 00022 00023 public: 00024 void BeginOfRunAction(const G4Run*); 00025 void EndOfRunAction(const G4Run*); 00026 00027 void AddEdep(G4double e) { m_edepTotal += e;}; 00028 00029 private: 00030 DetectorConstruction* m_detector; 00031 G4double m_edepTotal; 00032 }; 00033 00034 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... 00035 00036 #endif 00037