Import Geant4 11.0.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2021-06-25 16:12:29 +02:00
parent c968e26a39
commit 6399a014b6
4200 changed files with 207479 additions and 237366 deletions
@@ -69,10 +69,11 @@ void TrackingAction::PreUserTrackingAction(const G4Track* track)
G4String name = particle->GetParticleName();
G4double meanLife = particle->GetPDGLifeTime();
G4double ekin = track->GetKineticEnergy();
fTimeBirth = track->GetGlobalTime();
fTimeBirth = track->GetGlobalTime();
//count secondary particles
if (track->GetTrackID() > 1) run->ParticleCount(name,ekin,meanLife);
//count secondary particles (with meanLife > 0)
if ((track->GetTrackID() > 1) && (meanLife != 0.))
run->ParticleCount(name,ekin,meanLife);
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......