Import Geant4 8.3.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-09 15:07:44 +02:00
parent fe73f43734
commit 75c7fd177d
764 changed files with 45230 additions and 95238 deletions
@@ -14,6 +14,11 @@ code and to keep track of all tags.
* Please list in reverse chronological order (last date on top)
---------------------------------------------------------------
04-May 2007 G.Folger hadr-pre-V08-02-00
----------------------------------------------
- G4PreCompoundTransitions.cc: Protect against divide by 0
19 Aug 2006 Dennis Wright (hadr-pre-V08-01-00)
----------------------------------------------
- exciton_model
@@ -24,8 +24,8 @@
// ********************************************************************
//
//
// $Id: G4PreCompoundTransitions.cc,v 1.8 2006/06/29 20:59:31 gunter Exp $
// GEANT4 tag $Name: geant4-08-02 $
// $Id: G4PreCompoundTransitions.cc,v 1.9 2007/05/04 14:50:22 gunter Exp $
// GEANT4 tag $Name: geant4-08-03 $
//
// by V. Lara
@@ -188,7 +188,7 @@ G4Fragment G4PreCompoundTransitions::PerformTransition(const G4Fragment & aFragm
// With weight Z/A, number of charged particles is decreased on +1
if ((deltaN > 0 || result.GetNumberOfCharged() > 0) &&
(G4UniformRand() <= static_cast<G4double>(result.GetZ()-result.GetNumberOfCharged())/
static_cast<G4double>(result.GetA()-Nexcitons)))
std::max(static_cast<G4double>(result.GetA()-Nexcitons),1.)))
{
result.SetNumberOfCharged(result.GetNumberOfCharged()+deltaN/2);
}