diff options
| author | shivesh <s.p.mandalia@qmul.ac.uk> | 2018-11-20 17:26:02 +0000 |
|---|---|---|
| committer | shivesh <s.p.mandalia@qmul.ac.uk> | 2018-11-20 17:26:02 +0000 |
| commit | d0533d03d0c85f2f993f1793a6b9ea2af3391207 (patch) | |
| tree | 682c2fefe2d113319f21c07bded00fed5245e19b /include/G4BeamTestEventAction.h | |
| parent | 738c2f88939a041fbc8b6b9cfa3c547b86bc6e42 (diff) | |
| download | G4BeamTest-d0533d03d0c85f2f993f1793a6b9ea2af3391207.tar.gz G4BeamTest-d0533d03d0c85f2f993f1793a6b9ea2af3391207.zip | |
Tue 20 Nov 17:26:02 GMT 2018
Diffstat (limited to 'include/G4BeamTestEventAction.h')
| -rw-r--r-- | include/G4BeamTestEventAction.h | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/include/G4BeamTestEventAction.h b/include/G4BeamTestEventAction.h new file mode 100644 index 0000000..2d6de49 --- /dev/null +++ b/include/G4BeamTestEventAction.h @@ -0,0 +1,42 @@ +#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 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; + G4int SiCollID; + G4int hcID; + + G4double fYIn; +}; + +//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... + +#endif + + + |
