Import Geant4 11.2.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2023-06-30 09:09:57 +02:00
parent aef78ca386
commit dd1f179cda
3780 changed files with 212808 additions and 142780 deletions
@@ -65,7 +65,7 @@ G4double G4LENDCombinedCrossSection::GetIsoCrossSection( const G4DynamicParticle
G4int G4LENDCombinedCrossSection::SelectChannel( const G4DynamicParticle* dp , G4int iZ , G4int iA ,
const G4Isotope* isotope , const G4Element* /*elment*/ , const G4Material* material )
{
G4int ichannel=-1;
G4int ichannel = 3;
G4double XSs[4];
XSs[0] = elasticXS->GetIsoCrossSection( dp, iZ, iA, isotope, NULL , material );
XSs[1] = XSs[0] + inelasticXS->GetIsoCrossSection( dp, iZ, iA, isotope, NULL , material );
@@ -75,11 +75,11 @@ G4int G4LENDCombinedCrossSection::SelectChannel( const G4DynamicParticle* dp , G
G4double total = XSs[3];
G4double random = G4UniformRand();
for ( G4int i = 0 ; i != 4 ; i++ ) {
if ( random*total <= XSs[i] ) {
ichannel = i;
break;
}
for (G4int i = 0 ; i < 4 ; i++) {
if (random*total < XSs[i]) {
ichannel = i;
break;
}
}
return ichannel;
@@ -79,7 +79,7 @@ G4int G4LENDGammaCrossSection::SelectChannel(const G4DynamicParticle* dp,
const G4Element*,
const G4Material* material)
{
G4int ichannel = -1;
G4int ichannel = 1;
G4double XSs[2];
XSs[0] = inelasticXS->GetIsoCrossSection(dp, iZ, iA, isotope, nullptr, material);
XSs[1] = XSs[0] + fissionXS->GetIsoCrossSection(dp, iZ, iA, isotope, nullptr, material);
@@ -88,7 +88,7 @@ G4int G4LENDGammaCrossSection::SelectChannel(const G4DynamicParticle* dp,
G4double random = G4UniformRand();
for (G4int i = 0; i < 2; i++) {
if (random*total <= XSs[i]) {
if (random*total < XSs[i]) {
ichannel = i;
break;
}