Line | |
---|
1 | |
---|
2 | |
---|
3 | |
---|
4 | |
---|
5 | |
---|
6 | |
---|
7 | |
---|
8 | #ifndef MPHBASECLASS_H |
---|
9 | #define MPHBASECLASS_H 1 |
---|
10 | |
---|
11 | // %%%%%%%%%%%%% |
---|
12 | // gemc headers |
---|
13 | // %%%%%%%%%%%%% |
---|
14 | #include "detector.h" |
---|
15 | #include "MHit.h" |
---|
16 | #include "usage.h" |
---|
17 | |
---|
18 | class PH_output |
---|
19 | { |
---|
20 | public: |
---|
21 | vector<double> raws; |
---|
22 | vector<int> dgtz; |
---|
23 | vector<identifier> identity; |
---|
24 | }; |
---|
25 | |
---|
26 | class MPHBaseClass |
---|
27 | { |
---|
28 | public: |
---|
29 | virtual PH_output ProcessHit(MHit*, gemc_opts) = 0; |
---|
30 | virtual vector<identifier> ProcessID(vector<identifier>, G4Step*, detector) = 0; |
---|
31 | string HCname; |
---|
32 | }; |
---|
33 | |
---|
34 | typedef MPHBaseClass *(*MPHB_Factory)(); |
---|
35 | |
---|
36 | MPHBaseClass *GetMPHClass (map<string, MPHB_Factory>, string); |
---|
37 | |
---|
38 | |
---|
39 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.