Import Geant4 10.6.0 source tree

This commit is contained in:
Gabriele Cosmo
2019-12-06 15:12:28 +01:00
parent b2a62ae692
commit 5baee230e9
2997 changed files with 141580 additions and 98673 deletions
+4
View File
@@ -16,6 +16,10 @@ committal in the CVS repository !
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
- 01 November 2019 Vladimir Ivanchenko (decay-V10-05-01)
- G4Decay.cc : Extended printout in the case of G4Exception DECAY101
and DECAY102
- 14 December 2018 Makoto Asai (decay-V10-05-00)
- G4Decay.cc, G4UnknownDecay : Allowing absolute zero proper decay time.
Co-working with event-V10-05-00 and particles-V10-05-00
+13 -11
View File
@@ -212,9 +212,14 @@ G4VParticleChange* G4Decay::DecayIt(const G4Track& aTrack, const G4Step& )
G4cout << "G4Decay::DoIt : decay table not defined for ";
G4cout << aParticle->GetDefinition()->GetParticleName()<< G4endl;
}
G4ExceptionDescription ed;
ed << "For " << aParticle->GetDefinition()->GetParticleName()
<< " decay probability exist but decay table is not defined "
<< "- the particle will be killed;\n"
<< " isExtDecayer: " << isExtDecayer
<< "; isPreAssigned: " << isPreAssigned;
G4Exception( "G4Decay::DecayIt ",
"DECAY101",JustWarning,
"Decay table is not defined");
"DECAY101",JustWarning, ed);
fParticleChangeForDecay.SetNumberOfSecondaries(0);
// Kill the parent particle
@@ -304,16 +309,13 @@ G4VParticleChange* G4Decay::DecayIt(const G4Track& aTrack, const G4Step& )
G4double ParentEnergy = aParticle->GetTotalEnergy();
G4double ParentMass = aParticle->GetMass();
if (ParentEnergy < ParentMass) {
if (GetVerboseLevel()>0) {
G4cout << "G4Decay::DoIt : Total Energy is less than its mass" << G4endl;
G4cout << " Particle: " << aParticle->GetDefinition()->GetParticleName();
G4cout << " Energy:" << ParentEnergy/MeV << "[MeV]";
G4cout << " Mass:" << ParentMass/MeV << "[MeV]";
G4cout << G4endl;
}
G4ExceptionDescription ed;
ed << "Total Energy is less than its mass - increased the energy"
<< "\n Particle: " << aParticle->GetDefinition()->GetParticleName()
<< "\n Energy:" << ParentEnergy/MeV << "[MeV]"
<< "\n Mass:" << ParentMass/MeV << "[MeV]";
G4Exception( "G4Decay::DecayIt ",
"DECAY102",JustWarning,
"Total Energy is less than its mass");
"DECAY102",JustWarning, ed);
ParentEnergy = ParentMass;
}