4 #include "G4UnitsTable.hh" 16 string hd_msg = Opt.
args[
"LOG_MSG"].args +
" LTCC Hit Process " ;
17 double HIT_VERBOSITY = Opt.
args[
"HIT_VERBOSITY"].arg;
20 HCname =
"LTCC Hit Process";
32 int nsteps = aHit->
GetPos().size();
34 vector<int> tids = aHit->
GetTIds();
35 vector<int> pids = aHit->
GetPIDs();
42 x = y = z = lx = ly = lz = 0;
43 vector<G4ThreeVector> pos = aHit->
GetPos();
44 vector<G4ThreeVector> Lpos = aHit->
GetLPos();
46 for(
int s=0; s<nsteps; s++)
56 lx = lx + Lpos[s].x();
57 ly = ly + Lpos[s].y();
58 lz = lz + Lpos[s].z();
73 vector<G4double> times = aHit->
GetTime();
74 for(
int s=0; s<nsteps; s++) time = time + times[s]/nsteps;
77 double Ene = aHit->
GetE();
79 out.
raws.push_back(x);
80 out.
raws.push_back(y);
81 out.
raws.push_back(z);
82 out.
raws.push_back(lx);
83 out.
raws.push_back(ly);
84 out.
raws.push_back(lz);
85 out.
raws.push_back(time);
89 out.
raws.push_back(Ene);
105 cout << hd_msg <<
" pmt: " << pmt <<
" x=" << x/cm <<
" y=" << y/cm <<
" z=" << z/cm << endl;
107 out.
dgtz.push_back(sector);
108 out.
dgtz.push_back(side);
109 out.
dgtz.push_back(pmt);
110 out.
dgtz.push_back(TIDS.size());
118 id[
id.size()-1].id_sharing = 1;
vector< double > raws
Raw information.
vector< identifier > GetId()
string HCname
Hit Collection name.
vector< identifier > identity
Identifier.
vector< G4ThreeVector > GetLPos()
vector< G4ThreeVector > GetPos()
vector< double > GetTime()
map< string, opts > args
Options map.
vector< identifier > ProcessID(vector< identifier >, G4Step *, detector, gemc_opts)
Method to calculate new identifier.
vector< int > dgtz
Digitized information.
PH_output ProcessHit(MHit *, gemc_opts)
Method to process the hit.