GEMC  2.3
Geant4 Monte-Carlo Framework
bubble_hitprocess.cc
Go to the documentation of this file.
1 // gemc headers
2 #include "bubble_hitprocess.h"
3 
4 // CLHEP units
5 #include "CLHEP/Units/PhysicalConstants.h"
6 using namespace CLHEP;
7 
8 map<string, double> bubble_HitProcess :: integrateDgt(MHit* aHit, int hitn)
9 {
10  map<string, double> dgtz;
11  vector<identifier> identity = aHit->GetId();
12  int thisPid = aHit->GetPID();
13  double totEnergy = aHit->GetE();
14 
15  if(thisPid == 11 || thisPid == -11) totEnergy -= electron_mass_c2;
16 
17  dgtz["detId"] = identity[0].id;
18  dgtz["kinE"] = totEnergy;
19  dgtz["pid"] = thisPid;
20  dgtz["hitn"] = hitn;
21 
22  return dgtz;
23 }
24 
25 vector<identifier> bubble_HitProcess :: processID(vector<identifier> id, G4Step* aStep, detector Detector)
26 {
27  id[id.size()-1].id_sharing = 1;
28  return id;
29 }
30 
31 
32 map< string, vector <int> > bubble_HitProcess :: multiDgt(MHit* aHit, int hitn)
33 {
34  map< string, vector <int> > MH;
35 
36  return MH;
37 }
38 
map< string, vector< int > > multiDgt(MHit *, int)
int GetPID()
Definition: Hit.h:111
vector< identifier > GetId()
Definition: Hit.h:103
vector< identifier > processID(vector< identifier >, G4Step *, detector)
double GetE()
Definition: Hit.h:96
Definition: Hit.h:22
map< string, double > integrateDgt(MHit *, int)