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
@@ -62,12 +62,14 @@
#include "G4FissionLibrary.hh"
#include "G4ParticleHPManager.hh"
#include "G4SystemOfUnits.hh"
#include "G4PhysicsModelCatalog.hh"
G4FissionLibrary::G4FissionLibrary()
: G4ParticleHPFinalState(), theIsotope(0), targetMass(0.0)
: G4ParticleHPFinalState(), theIsotope(0), targetMass(0.0), secID(-1)
{
hasXsec = false;
fe=0;
secID = G4PhysicsModelCatalog::GetModelID( "model_G4LLNLFission" );
}
G4FissionLibrary::~G4FissionLibrary()
@@ -187,7 +189,7 @@ G4HadFinalState* G4FissionLibrary::ApplyYourself(const G4HadProjectile & theTrac
momentum*fe->getNeutronDircosw(i));
it->SetMomentum( temp );
// it->SetGlobalTime(fe->getNeutronAge(i)*second);
theResult.Get()->AddSecondary(it);
theResult.Get()->AddSecondary(it, secID);
// G4cout <<"G4FissionLibrary::ApplyYourself: energy of prompt neutron " << i << " = " << it->GetKineticEnergy()<<G4endl;
}
@@ -209,7 +211,7 @@ G4HadFinalState* G4FissionLibrary::ApplyYourself(const G4HadProjectile & theTrac
it->SetMomentum(thePhoton->GetMomentum());
// it->SetGlobalTime(fe->getPhotonAge(i)*second);
// G4cout <<"G4FissionLibrary::ApplyYourself: energy of prompt photon " << i << " = " << it->GetKineticEnergy()<<G4endl;
theResult.Get()->AddSecondary(it);
theResult.Get()->AddSecondary(it, secID);
delete thePhoton;
}
// G4cout <<"G4FissionLibrary::ApplyYourself: Number of secondaries = "<<theResult.GetNumberOfSecondaries()<< G4endl;
@@ -48,13 +48,15 @@
#include "G4PhysicalConstants.hh"
#include "G4SystemOfUnits.hh"
#include "Randomize.hh"
#include "G4PhysicsModelCatalog.hh"
G4LFission::G4LFission(const G4String& name)
: G4HadronicInteraction(name)
: G4HadronicInteraction(name), secID(-1)
{
init();
SetMinEnergy(0.0*GeV);
SetMaxEnergy(DBL_MAX);
G4PhysicsModelCatalog::GetModelID( "model_" + GetModelName() );
}
@@ -183,7 +185,7 @@ G4HadFinalState* G4LFission::ApplyYourself(const G4HadProjectile& aTrack,
aNeutron = new G4DynamicParticle(G4Neutron::NeutronDefinition(),
G4ParticleMomentum(1.,0.,0.),
ekin*MeV);
theParticleChange.AddSecondary(aNeutron);
theParticleChange.AddSecondary(aNeutron, secID);
}
// Make secondary gammas and distribute kinetic energy
@@ -195,7 +197,7 @@ G4HadFinalState* G4LFission::ApplyYourself(const G4HadProjectile& aTrack,
aGamma = new G4DynamicParticle(G4Gamma::GammaDefinition(),
G4ParticleMomentum(1.,0.,0.),
ekin*MeV);
theParticleChange.AddSecondary(aGamma);
theParticleChange.AddSecondary(aGamma, secID);
}
// Distribute momentum vectors and do Lorentz transformation