Import Geant4 11.3.1 source tree

This commit is contained in:
Gabriele Cosmo
2025-03-24 16:45:22 +01:00
parent 32390e802b
commit df176550b3
388 changed files with 29491 additions and 29435 deletions
@@ -270,6 +270,15 @@ void G4ProductionCutsTable::UpdateCoupleTable(G4VPhysicalVolume* /*currWorld*/)
firstUse = false;
}
// Force update of coupleTable if userEnergyCuts vectors are set
G4bool isRecalcNeeded = false;
for (const auto* userVector : userEnergyCuts) {
if (userVector != nullptr) {
isRecalcNeeded = true;
break;
}
}
// Update RangeEnergy cuts tables
std::size_t idx = 0;
G4Timer timer;
@@ -281,7 +290,7 @@ void G4ProductionCutsTable::UpdateCoupleTable(G4VPhysicalVolume* /*currWorld*/)
{
G4ProductionCuts* aCut = (*cItr)->GetProductionCuts();
const G4Material* aMat = (*cItr)->GetMaterial();
if((*cItr)->IsRecalcNeeded())
if((*cItr)->IsRecalcNeeded() || isRecalcNeeded)
{
for(std::size_t ptcl=0; ptcl< NumberOfG4CutIndex; ++ptcl)
{