Import Geant4 11.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2021-12-10 14:46:44 +01:00
committed by Ben Morgan
parent 6399a014b6
commit 80e2389dd8
3932 changed files with 202519 additions and 246221 deletions
@@ -41,10 +41,13 @@
#include "G4LEnpData.hh"
#include "Randomize.hh"
#include "G4PhysicsModelCatalog.hh"
G4LEnp::G4LEnp():
G4HadronElastic("G4LEnp") // G4HadronicInteraction("G4LEnp")
{
secID = G4PhysicsModelCatalog::GetModelID( "model_" + GetModelName() );
// theParticleChange.SetNumberOfSecondaries(1);
// SetMinEnergy(10.*MeV);
@@ -300,7 +303,7 @@ G4LEnp::ApplyYourself(const G4HadProjectile& aTrack, G4Nucleus& targetNucleus)
theParticleChange.SetMomentumChange(newP->GetMomentumDirection());
theParticleChange.SetEnergyChange(newP->GetKineticEnergy());
delete newP;
theParticleChange.AddSecondary(targetParticle);
theParticleChange.AddSecondary(targetParticle, secID);
return &theParticleChange;
}