From ba4dd395d1f163983f7102ff9a6c513cfe17912e Mon Sep 17 00:00:00 2001 From: shivesh Date: Fri, 2 Aug 2019 22:46:21 +0100 Subject: Fri 2 Aug 22:46:21 BST 2019 --- include/#G4BeamTestEventAction.h# | 44 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 include/#G4BeamTestEventAction.h# (limited to 'include/#G4BeamTestEventAction.h#') diff --git a/include/#G4BeamTestEventAction.h# b/include/#G4BeamTestEventAction.h# new file mode 100644 index 0000000..2c8b933 --- /dev/null +++ b/include/#G4BeamTestEventAction.h# @@ -0,0 +1,44 @@ +#ifndef G4BeamTestEventAction_h +#define G4BeamTestEventAction_h 1 + +#include "G4UserEventAction.hh" +#include "globals.hh" + +/// Event action class +/// + +class G4BeamTestEventAction : public G4UserEventAction +{ + public: + G4BeamTestEventAction(); + virtual ~G4BeamTestEventAction(); + + virtual void BeginOfEventAction(const G4Event* ); + virtual void EndOfEventAction(const G4Event* ); + + void AddEdep(G4double edep) { fEdep += edep; } + void AddTime(G4double time) { ftime += ->GetTime()} + void AddPath(G4double path) { fIntegralZ +=path; } + G4double GetPath(){return fIntegralZ;} + void SetXY (G4double xhit, G4double yhit) {fXIn=xhit;fYIn=yhit;} + G4double GetX()const {return fXIn;} + + + G4double GetY()const {return fYIn;} + private: + G4double fEdep; + G4double fIntegralZ; + G4double fXIn; + G4double ftime; + G4int SiCollID; + G4int hcID; + + G4double fYIn; +}; + +//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... + +#endif + + + -- cgit v1.2.3