Import Geant4 10.6.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2019-06-28 11:59:04 +02:00
parent 28a70706e0
commit d0f911957d
1056 changed files with 95168 additions and 78160 deletions
@@ -14,6 +14,11 @@ code and to keep track of all tags.
* Please list in reverse chronological order (last date on top)
---------------------------------------------------------------
29 May 2019 Dennis Wright (hadr-casc-V10-05-00)
------------------------------------------------
- fix bug found in biasing/B03 example due to FPE from unprotected sqrt
of pperp2 + qv - p1r*p1r in G4NucleiModel::boundaryTransition
19 November 2018 Dennis Wright (hadr-casc-V10-04-12)
-----------------------------------------------------
- fix bug # 2096: non-conservation in precompound interface
@@ -150,11 +150,11 @@ protected:
private:
G4int operator==(const G4CascadeInterface& right) const {
G4bool operator==(const G4CascadeInterface& right) const {
return (this == &right);
}
G4int operator!=(const G4CascadeInterface& right) const {
G4bool operator!=(const G4CascadeInterface& right) const {
return (this != &right);
}
@@ -67,7 +67,7 @@ public:
void fill(const G4Fragment& frag); // Initialize from G4Fragment data
bool operator==(const G4ExitonConfiguration& right) const {
G4bool operator==(const G4ExitonConfiguration& right) const {
return ( (&right == this) ||
(protonQuasiParticles == right.protonQuasiParticles &&
neutronQuasiParticles == right.neutronQuasiParticles &&
@@ -75,7 +75,7 @@ public:
neutronHoles == right.neutronHoles) );
}
bool operator!=(const G4ExitonConfiguration& right) const {
G4bool operator!=(const G4ExitonConfiguration& right) const {
return !operator==(right);
}
@@ -102,7 +102,7 @@ public:
G4InuclNuclei& operator=(const G4InuclNuclei& right);
// Equality (comparison) operator -- NOT SORTING
bool operator==(const G4InuclNuclei& right) {
G4bool operator==(const G4InuclNuclei& right) {
return ( G4InuclParticle::operator==(right) &&
theExitonConfiguration == right.theExitonConfiguration );
}
@@ -85,11 +85,11 @@ public:
G4InuclParticle& operator=(const G4InuclParticle& right);
// Equality (comparison) operator -- NOT SORTING
bool operator==(const G4InuclParticle& right) {
G4bool operator==(const G4InuclParticle& right) {
return ( (&right == this) || (pDP == right.pDP) ); // Ignore model code
}
bool operator!=(const G4InuclParticle& right) {
G4bool operator!=(const G4InuclParticle& right) {
return !operator==(right);
}
@@ -1193,7 +1193,7 @@ void G4NucleiModel::boundaryTransition(G4CascadParticle& cparticle) {
if (adjustpperp) { // NAT
G4ThreeVector old_pperp = mom.vect() - pos*(pr/r);
G4double new_pperp_mag = std::sqrt(pperp2 + qv - p1r*p1r);
G4double new_pperp_mag = std::sqrt(std::max(0.0, pperp2 + qv - p1r*p1r) );
// new total momentum found by rescaling p_perp
mom.setVect(old_pperp * new_pperp_mag/std::sqrt(pperp2));
// add a small radial component to make sure that we propagate into new zone