4 #include "G4UnitsTable.hh" 5 #include "G4Poisson.hh" 6 #include "Randomize.hh" 17 HCname =
"FTH Hit Process";
22 int nsteps = aHit->
GetPos().size();
26 vector<G4double> Edep = aHit->
GetEdep();
27 for(
int s=0; s<nsteps; s++) Etot = Etot + Edep[s];
32 x = y = z = lx = ly = lz = 0;
33 vector<G4ThreeVector> pos = aHit->
GetPos();
34 vector<G4ThreeVector> Lpos = aHit->
GetLPos();
37 for(
int s=0; s<nsteps; s++)
39 x = x + pos[s].x()*Edep[s]/Etot;
40 y = y + pos[s].y()*Edep[s]/Etot;
41 z = z + pos[s].z()*Edep[s]/Etot;
42 lx = lx + Lpos[s].x()*Edep[s]/Etot;
43 ly = ly + Lpos[s].y()*Edep[s]/Etot;
44 lz = lz + Lpos[s].z()*Edep[s]/Etot;
58 vector<G4double> times = aHit->
GetTime();
59 for(
int s=0; s<nsteps; s++) time = time + times[s]/nsteps;
62 double Ene = aHit->
GetE();
64 out.
raws.push_back(Etot);
65 out.
raws.push_back(x);
66 out.
raws.push_back(y);
67 out.
raws.push_back(z);
68 out.
raws.push_back(lx);
69 out.
raws.push_back(ly);
70 out.
raws.push_back(lz);
71 out.
raws.push_back(time);
76 out.
raws.push_back(Ene);
94 out.
dgtz.push_back(ID);
95 out.
dgtz.push_back(Layer);
96 out.
dgtz.push_back(ADC);
97 out.
dgtz.push_back(TDC);
105 id[
id.size()-1].id_sharing = 1;
vector< double > raws
Raw information.
vector< identifier > ProcessID(vector< identifier >, G4Step *, detector, gemc_opts)
Method to calculate new identifier.
vector< identifier > GetId()
PH_output ProcessHit(MHit *, gemc_opts)
Method to process the hit.
string HCname
Hit Collection name.
vector< identifier > identity
Identifier.
vector< G4ThreeVector > GetLPos()
vector< G4ThreeVector > GetPos()
vector< double > GetTime()
vector< double > GetEdep()
vector< int > dgtz
Digitized information.