source: trunk/examples/novice/gemc/src/MPHBaseClass.h @ 1309

Last change on this file since 1309 was 807, checked in by garnier, 16 years ago

update

File size: 741 bytes
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
18class PH_output
19{
20 public:
21   vector<double>     raws;       
22   vector<int>        dgtz;       
23   vector<identifier> identity;   
24};
25
26class 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
34typedef MPHBaseClass *(*MPHB_Factory)();                       
35
36MPHBaseClass *GetMPHClass (map<string, MPHB_Factory>, string); 
37
38
39#endif
Note: See TracBrowser for help on using the repository browser.