| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 | #ifndef MEventAction_H
|
|---|
| 14 | #define MEventAction_H 1
|
|---|
| 15 |
|
|---|
| 16 | // %%%%%%%%%%
|
|---|
| 17 | // G4 headers
|
|---|
| 18 | // %%%%%%%%%%
|
|---|
| 19 | #include "G4UserEventAction.hh"
|
|---|
| 20 |
|
|---|
| 21 | // %%%%%%%%%%%%%
|
|---|
| 22 | // gemc headers
|
|---|
| 23 | // %%%%%%%%%%%%%
|
|---|
| 24 | #include "MOutputBaseClass.h"
|
|---|
| 25 | #include "MBankdefs.h"
|
|---|
| 26 | #include "MPHBaseClass.h"
|
|---|
| 27 | #include "MSensitiveDetector.h"
|
|---|
| 28 | #include "usage.h"
|
|---|
| 29 |
|
|---|
| 30 |
|
|---|
| 31 | class MEventAction : public G4UserEventAction
|
|---|
| 32 | {
|
|---|
| 33 | public:
|
|---|
| 34 | MEventAction(gemc_opts);
|
|---|
| 35 | ~MEventAction();
|
|---|
| 36 |
|
|---|
| 37 | gemc_opts gemcOpt;
|
|---|
| 38 |
|
|---|
| 39 | MOutputs *MOut;
|
|---|
| 40 | map<string, MOutput_Factory> *Out;
|
|---|
| 41 | map<string, MSensitiveDetector*> SeDe_Map;
|
|---|
| 42 | map<string, MPHB_Factory> *MProcessHit_Map;
|
|---|
| 43 | map<string, MBank> *MBank_Map;
|
|---|
| 44 |
|
|---|
| 45 | int evtN;
|
|---|
| 46 |
|
|---|
| 47 | public:
|
|---|
| 48 | void BeginOfEventAction(const G4Event*);
|
|---|
| 49 | void EndOfEventAction(const G4Event*);
|
|---|
| 50 | void SetEvtNumber(int N){evtN = N;}
|
|---|
| 51 |
|
|---|
| 52 | };
|
|---|
| 53 |
|
|---|
| 54 | #endif
|
|---|
| 55 |
|
|---|
| 56 |
|
|---|
| 57 |
|
|---|
| 58 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.