Import Geant4 11.0.2 source tree

This commit is contained in:
Gabriele Cosmo
2022-05-25 15:50:57 +02:00
parent de4f28d823
commit b3bf75a2a1
341 changed files with 93127 additions and 39343 deletions
@@ -14,6 +14,9 @@ code and to keep track of all tags.
* Please list in reverse chronological order (last date on top)
---------------------------------------------------------------
04 February 2022 - Vladimir Ivanchenko (hadr-cross-V10-07-23)
- G4HadronNucleonXsc - fixed compilation warning on unused variable
03 January 2022 - Alberto Ribon (hadr-cross-V10-07-22)
- G4ComponentAntiNuclNuclearXS : extension, by Vladimir Uzhinsky, of
the class to compute the cross sections of light anti-nuclei on
@@ -1122,12 +1122,7 @@ G4double G4HadronNucleonXsc::HadronNucleonXscVU(
G4int PDGcode = theParticle->GetPDGEncoding();
G4int absPDGcode = std::abs(PDGcode);
G4double mass = theParticle->GetPDGMass();
G4double Elab = ekin + mass;
// (s - 2*0.88*GeV*GeV)/(2*0.939*GeV)/GeV;
G4double Plab = std::sqrt(ekin*(ekin + 2.*mass));
Elab *= invGeV;
Plab *= invGeV;
G4double Plab = std::sqrt(ekin*(ekin + 2.*mass))*invGeV;
G4double logPlab = G4Log( Plab );
G4double sqrLogPlab = logPlab * logPlab;