Import Geant4 11.2.0.beta source tree
This commit is contained in:
@@ -1,43 +0,0 @@
|
||||
# -----------------------------------------------------------
|
||||
# GNUmakefile for hadronic lend library.
|
||||
# -----------------------------------------------------------
|
||||
|
||||
name := G4had_lend
|
||||
|
||||
ifndef G4INSTALL
|
||||
G4INSTALL = ../../../../..
|
||||
endif
|
||||
|
||||
include $(G4INSTALL)/config/architecture.gmk
|
||||
|
||||
CPPFLAGS += -DG4PROCESSES_EXPORT
|
||||
CPPFLAGS += -DG4HADRONIC_ALLOC_EXPORT
|
||||
|
||||
ifdef G4LIB_BUILD_EXPAT
|
||||
CPPFLAGS += -I$(G4BASE)/externals/expat/include
|
||||
endif
|
||||
|
||||
CPPFLAGS += -I$(G4BASE)/global/management/include \
|
||||
-I$(G4BASE)/global/HEPRandom/include \
|
||||
-I$(G4BASE)/global/HEPGeometry/include \
|
||||
-I$(G4BASE)/track/include \
|
||||
-I$(G4BASE)/geometry/volumes/include \
|
||||
-I$(G4BASE)/geometry/management/include \
|
||||
-I$(G4BASE)/processes/management/include \
|
||||
-I$(G4BASE)/processes/hadronic/management/include/ \
|
||||
-I$(G4BASE)/processes/hadronic/util/include \
|
||||
-I$(G4BASE)/processes/hadronic/cross_sections/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/de_excitation/handler/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/de_excitation/photon_evaporation/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/de_excitation/management/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/de_excitation/util/include \
|
||||
-I$(G4BASE)/processes/hadronic/models/pre_equilibrium/exciton_model/include \
|
||||
-I$(G4BASE)/particles/management/include \
|
||||
-I$(G4BASE)/particles/leptons/include \
|
||||
-I$(G4BASE)/particles/bosons/include \
|
||||
-I$(G4BASE)/particles/hadrons/mesons/include \
|
||||
-I$(G4BASE)/particles/hadrons/barions/include \
|
||||
-I$(G4BASE)/particles/hadrons/ions/include \
|
||||
-I$(G4BASE)/materials/include
|
||||
|
||||
include $(G4INSTALL)/config/common.gmk
|
||||
@@ -5,8 +5,12 @@ which **must** added in reverse chronological order (newest at the top).
|
||||
It must **not** be used as a substitute for writing good git commit messages!
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
## 2023-02-06 Gabriele Cosmo (hadr-lend-V11-00-08)
|
||||
## 2023-04-06 Dennis Wright (hadr-lend-V11-01-01)
|
||||
- Fix coverity bug 104071: G4LENDGammaCrossSection::SelectChannel may return
|
||||
negative atrray index. Same for G4LENDGammaCombinedCrossSection::SelectChannel.
|
||||
Initialize iChannel to positive number.
|
||||
|
||||
## 2023-02-06 Gabriele Cosmo (hadr-lend-V11-01-00)
|
||||
- Fixed potential uninitialised variables in MCGIDI_energy_parseMadlandNixFromTOM().
|
||||
|
||||
## 2022-11-26 Gabriele Cosmo (hadr-lend-V11-00-07)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user