Hi experts, me again!
I want to know what I get when I run fTrackHeed- > TransportDeltaElectron and then fTrackHeed- > GetElectron ( ).The UserGuide says it’s the information of the “conduction” electron. Does it make sense to pass this information to GasBoxHit?Here are the codes.
if(particleName == "e-"){
G4AutoLock lock(&aMutex);
fTrackHeed->TransportDeltaElectron(x_cm, y_cm, z_cm, t, eKin_eV, dx, dy,dz, nc, ni);
}
else{
G4AutoLock lock(&aMutex);
fTrackHeed->TransportPhoton(x_cm, y_cm, z_cm, t, eKin_eV, dx, dy,dz, nc);
}
for (int cl = 0; cl < nc; cl++) {
double xe, ye, ze, te;
double ee, dxe, dye, dze;
fTrackHeed->GetElectron(cl, xe, ye, ze, te, ee, dxe, dye, dze);
GasBoxHit* gbh = new GasBoxHit();
gbh->SetPos(G4ThreeVector(xe*CLHEP::cm,ye*CLHEP::cm,ze*CLHEP::cm));
gbh->SetTime(te);
fGasBoxSD->InsertGasBoxHit(gbh);
if(G4VVisManager::GetConcreteInstance() && cl % 100 == 0)
Drift(xe,ye,ze,te);
}
Thanks!