Import Geant4 11.3.1 source tree
This commit is contained in:
@@ -6,6 +6,11 @@ It must **not** be used as a substitute for writing good git commit messages!
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
## 2025-03-25 Ivana Hrivnacova (proccuts-V11-02-00)
|
||||
- In G4ProductionCutsTable::UpdateCoupleTable:
|
||||
Make sure that the couple tables are updated if userEnergyCuts
|
||||
vectors are set
|
||||
|
||||
## 2023-10-24 Ivana Hrivnacova (proccuts-V11-01-01)
|
||||
- G4ProductionCutsTable - Added method CreateCoupleTables()
|
||||
separated from UpdateCoupleTable() needed to prepare
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user