Import Geant4 10.3.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2016-06-30 14:12:05 +02:00
parent a654a7ab1f
commit 4ec577e5c4
2021 changed files with 100995 additions and 78277 deletions
@@ -63,6 +63,7 @@ G4HadFinalState * G4LENDFission::ApplyYourself(const G4HadProjectile& aTrack, G4
// << ", px = " << (*products)[j].px
// << ", py = " << (*products)[j].py
// << ", pz = " << (*products)[j].pz
// << ", birthTimeSec = " << (*products)[j].birthTimeSec << " [second]"
// << G4endl;
G4DynamicParticle* theSec = new G4DynamicParticle;
@@ -83,6 +84,12 @@ G4HadFinalState * G4LENDFission::ApplyYourself(const G4HadProjectile& aTrack, G4
theSec->SetMomentum( G4ThreeVector( (*products)[j].px*MeV , (*products)[j].py*MeV , (*products)[j].pz*MeV ) );
//G4cout << theSec->GetDefinition()->GetParticleName() << G4endl;
theResult->AddSecondary( theSec );
//Set time for delayed neutrons
//Current implementation is a little tricky,
if ( (*products)[j].birthTimeSec != 0 ) {
G4double time = (*products)[j].birthTimeSec*second + aTrack.GetGlobalTime();
theResult->GetSecondary(theResult->GetNumberOfSecondaries()-1)->SetTime(time);
}
}
}
delete products;