Import Geant4 11.1.2 source tree

This commit is contained in:
Gabriele Cosmo
2023-06-19 17:17:14 +02:00
parent 84a556a9dc
commit aef78ca386
309 changed files with 35572 additions and 34678 deletions
@@ -6,6 +6,17 @@ It must **not** be used as a substitute for writing good git commit messages!
-------------------------------------------------------------------------------
## 2023-04-17 Alberto Ribon (hadr-casc-V11-00-06)
- G4BigBanger : added protection in the method G4BigBanger::generateBangInSCM
to avoid very rare cases of unphysical negative energy of one of the
secondaries produced by the Bertini model.
(Note: this problem was never reproduced in our tests, but was reported by
ATLAS with Geant4 10.6; the secondaries with negative - both total
and kinetic - energy were always neutrons, produced by the internal
Bertini nuclear de-excitation, after the intra-nuclear cascade.
Many thanks to Mihaly Novak for providing detailed debugging
information!)
## 2022-11-26 Gabriele Cosmo (hadr-casc-V11-00-05)
- Fixed compilation warnings for implicit type conversions on macOS/XCode 14.1.
@@ -225,6 +225,17 @@ void G4BigBanger::generateBangInSCM(G4double etot, G4int a, G4int z) {
particles.resize(a); // Use assignment to avoid temporaries
for(G4int i = 0; i < a; i++) {
G4int knd = i < z ? 1 : 2;
// Set to 0.0 the 4-th component (total energy) of the Lorentz momentum scm_momentums[i]
// in order to avoid very rare cases of unphysical negative (total and kinetic) energy
// (as reported by ATLAS with Geant4 10.6, but never reproduced in our tests).
// Note that these 4-vectors are actually 3-vectors, with null 4-th component in nearly
// all cases. After calling the method G4InuclElementaryParticle::fill (see below),
// the 4-th component of the momentum is set (in the method G4InuclParticle::setMomentum
// which in turn calls G4DynamicParticle::SetMomentum ) to the square root of the sum of
// the square of the mass and the square of the magnitude of the 3-momentum.
scm_momentums[i].setE( 0.0 );
particles[i].fill(scm_momentums[i], knd, G4InuclParticle::BigBanger);
};
};