Import Geant4 11.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2022-12-09 14:43:28 +01:00
parent c07cea1fe0
commit 9f34590941
3810 changed files with 200490 additions and 182326 deletions
@@ -94,12 +94,12 @@ void G4eDPWACoulombScatteringModel::Initialise(const G4ParticleDefinition* pdef,
fTheDCS = new G4eDPWAElasticDCS(pdef==G4Electron::Electron(), fIsMixedModel);
// init only for the elements that are used in the geometry
G4ProductionCutsTable* theCpTable = G4ProductionCutsTable::GetProductionCutsTable();
std::size_t numOfCouples = theCpTable->GetTableSize();
for(std::size_t j=0; j<numOfCouples; ++j) {
const G4Material* mat = theCpTable->GetMaterialCutsCouple(j)->GetMaterial();
G4int numOfCouples = (G4int)theCpTable->GetTableSize();
for(G4int j=0; j<numOfCouples; ++j) {
const G4Material* mat = theCpTable->GetMaterialCutsCouple(j)->GetMaterial();
const G4ElementVector* elV = mat->GetElementVector();
std::size_t numOfElem = mat->GetNumberOfElements();
for (size_t ie = 0; ie < numOfElem; ++ie) {
std::size_t numOfElem = mat->GetNumberOfElements();
for (std::size_t ie = 0; ie < numOfElem; ++ie) {
fTheDCS->InitialiseForZ((*elV)[ie]->GetZasInt());
}
}