Import Geant4 6.0.0 source tree
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
|
||||
#include "G4Nucleus.hh"
|
||||
#include "Randomize.hh"
|
||||
#include "G4HadronicException.hh"
|
||||
|
||||
G4Nucleus::G4Nucleus()
|
||||
{
|
||||
@@ -146,7 +147,10 @@ G4ReactionProduct G4Nucleus::GetThermalNucleus(G4double targetMass, G4double tem
|
||||
G4int myZ = G4int(Z + 0.5);
|
||||
G4int myA = G4int(A + 0.5);
|
||||
if( myA<1 || myZ<0 || myZ>myA )
|
||||
G4Exception("G4Nucleus::SetParameters called with non-physical parameters");
|
||||
{
|
||||
throw G4HadronicException(__FILE__, __LINE__,
|
||||
"G4Nucleus::SetParameters called with non-physical parameters");
|
||||
}
|
||||
aEff = A; // atomic weight
|
||||
zEff = Z; // atomic number
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user