Import Geant4 11.1.0 source tree
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user