Import Geant4 4.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 16:18:25 +02:00
parent 36c080dca6
commit 921d3b1cda
3990 changed files with 185376 additions and 82884 deletions
@@ -57,6 +57,7 @@
#include "G4DynamicParticle.hh"
#include "G4ParticleDefinition.hh"
#include "G4ElementVector.hh"
#include "G4Material.hh"
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
@@ -101,7 +102,7 @@ void G4hNuclearStoppingModel::InitializeMe()
}
// Default is nuclear stopping fluctuations On
nStopingPowerTable->SetNuclearStoppingFluctuationsOn();
nStopingPowerTable->SetNuclearStoppingFluctuationsOff();
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
@@ -165,8 +166,8 @@ G4double G4hNuclearStoppingModel::StoppingPower(
G4double nloss = 0.0;
for (G4int iel=0; iel<NumberOfElements; iel++) {
const G4Element* element = (*theElementVector)(iel) ;
G4double z2 = element->GetZ() ;
const G4Element* element = (*theElementVector)[iel] ;
G4double z2 = element->GetZ();
G4double m2 = element->GetA()*mole/g ;
nloss += (nStopingPowerTable->
NuclearStoppingPower(kineticEnergy, z1, z2, m1, m2))