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
+4 -1
View File
@@ -16,7 +16,10 @@ committal in the CVS repository !
* Reverse chronological order (last date on top), please *
----------------------------------------------------------
Mar. 11th, 2019 - G.Cosmo (procuts-V10-04-01)
Apr. 24th, 2019 - M.Asai (procuts-V10-05-01)
- Add protection against premature call to G4ProductionCutsTable.
Mar. 11th, 2019 - G.Cosmo (procuts-V10-05-00)
- Fixed typos in printouts in G4PhysicsTableHelper and G4ProductionCutsTable.
Aug. 13th, 2018 - H.Kurashige (procuts-V10-04-00)
@@ -296,6 +296,23 @@ G4double G4ProductionCutsTable::ConvertRangeToEnergy(
)
{
// This method gives energy corresponding to range value
// protection against premature call
if(firstUse)
{
#ifdef G4VERBOSE
if(verboseLevel>0)
{
G4ExceptionDescription ed;
ed << "G4ProductionCutsTable::ConvertRangeToEnergy is invoked prematurely "
<< "before it is fully initialized.";
G4Exception("G4ProductionCutsTable::ConvertRangeToEnergy","CUTS0100",
JustWarning,ed);
}
#endif
return -1.0;
}
// check material
if (material ==nullptr) return -1.0;
@@ -306,12 +323,19 @@ G4double G4ProductionCutsTable::ConvertRangeToEnergy(
// check particle
G4int index = G4ProductionCuts::GetIndex(particle);
if (index<0) {
#ifdef G4VERBOSE
if (verboseLevel >1) {
G4cout << "G4ProductionCutsTable::ConvertRangeToEnergy" ;
G4cout << particle->GetParticleName() << " has no cut value " << G4endl;
}
if (index<0 || converters[index] == nullptr) {
#ifdef G4VERBOSE
if(verboseLevel>0)
{
G4ExceptionDescription ed;
ed << "G4ProductionCutsTable::ConvertRangeToEnergy is invoked ";
if(particle != nullptr)
{ ed << "for particle <" << particle->GetParticleName() << ">."; }
else
{ ed << "without valid particle pointer."; }
G4Exception("G4ProductionCutsTable::ConvertRangeToEnergy","CUTS0101",
JustWarning,ed);
}
#endif
return -1.0;
}