GEMC  2.3
Geant4 Monte-Carlo Framework
ft_hodo_hitprocess.cc
Go to the documentation of this file.
1 // G4 headers
2 #include "G4Poisson.hh"
3 #include "Randomize.hh"
4 
5 // gemc headers
6 #include "ft_hodo_hitprocess.h"
7 
8 map<string, double> ft_hodo_HitProcess :: integrateDgt(MHit* aHit, int hitn)
9 {
10  map<string, double> dgtz;
11  vector<identifier> identity = aHit->GetId();
12  trueInfos tInfos(aHit);
13 
14  // use Crystal ID to define IDX and IDY
15  int ID = identity[0].id;
16  int Layer = identity[1].id;
17 
18  // initialize ADC and TDC
19  int ADC = 0;
20  int TDC = 8191;
21 
22  if(tInfos.eTot>0)
23  {
24  ADC = (int) (tInfos.eTot*100);
25  TDC = (int) (tInfos.time *100);
26  }
27 
28 
29  dgtz["hitn"] = hitn;
30  dgtz["id"] = ID;
31  dgtz["layer"] = Layer;
32  dgtz["adc"] = ADC;
33  dgtz["tdc"] = TDC;
34 
35  return dgtz;
36 }
37 
38 vector<identifier> ft_hodo_HitProcess :: processID(vector<identifier> id, G4Step* aStep, detector Detector)
39 {
40  id[id.size()-1].id_sharing = 1;
41  return id;
42 }
43 
44 
45 
46 
47 
48 map< string, vector <int> > ft_hodo_HitProcess :: multiDgt(MHit* aHit, int hitn)
49 {
50  map< string, vector <int> > MH;
51 
52  return MH;
53 }
54 
55 
56 
57 
58 
59 
60 
61 
62 
63 
64 
65 
map< string, vector< int > > multiDgt(MHit *, int)
map< string, double > integrateDgt(MHit *, int)
vector< identifier > GetId()
Definition: Hit.h:103
double time
Definition: HitProcess.h:43
double eTot
Definition: HitProcess.h:40
Definition: Hit.h:22
vector< identifier > processID(vector< identifier >, G4Step *, detector)