#ifndef EventAction_h #define EventAction_h 1 #include "G4UserEventAction.hh" #include "globals.hh" #include "HistoManager.hh" /// Event action class /// class EventAction : public G4UserEventAction { public: EventAction(); virtual ~EventAction(); virtual void BeginOfEventAction(const G4Event* event); virtual void EndOfEventAction(const G4Event* event); virtual void EndOfEventTrackerAction(const G4Event* event); virtual void EndOfEventStripRTAction(const G4Event* event); void AddEdep(G4double edep) { fEdep += edep; }; void AddEpiEdep(G4int l, G4double edep) {fEdep_Epi[l] += edep; }; void SetLastRTLayerPerEvent(G4int l) { fLastRTLayer = l; }; void SetRTTruthEnergy(G4double e) { fRTTruthEnergy = e; }; private: G4double fEdep; G4double fEdep_Epi[24]; G4int fLastRTLayer; G4double fRTTruthEnergy; HistoManager* fHistoManager; G4bool stripsConstructed; //hits collection name G4String hitsCollName_x1; G4String hitsCollName_u1; G4String hitsCollName_v1; G4String hitsCollName_x2; G4String hitsCollName_u2; G4String hitsCollName_v2; G4String hitsCollName_TP1; G4String hitsCollName_TP2; G4String hitsCollName_TP3; G4String hitsCollName_TP4; G4String hitsCollName_x3; G4String hitsCollName_u3; G4String hitsCollName_v3; G4String hitsCollName_x4; G4String hitsCollName_u4; G4String hitsCollName_v4; //digits collection name G4String digitsCollName; }; //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... #endif