Import Geant4 11.3.0 source tree
This commit is contained in:
@@ -6,6 +6,9 @@ It must **not** be used as a substitute for writing good git commit messages!
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
|
||||
## 2024-08-21 Gabriele Cosmo (hadr-fission-V11-02-01)
|
||||
- Fixed reported Coverity defects for use of std::move().
|
||||
|
||||
## 2024-02-12 Gabriele Cosmo (hadr-fission-V11-02-00)
|
||||
- G4FissLib: fixed compilation warning on gcc when LTO settings are enabled.
|
||||
|
||||
|
||||
@@ -80,21 +80,19 @@ class G4FissionLibrary : public G4ParticleHPFinalState
|
||||
G4FissionLibrary();
|
||||
~G4FissionLibrary();
|
||||
|
||||
//void Init (G4double A, G4double Z, G4String & dirName, G4String &);
|
||||
//void Init (G4double A, G4double Z, G4int M, G4String & dirName, G4String &);
|
||||
void Init (G4double A, G4double Z, G4int M, G4String & dirName, G4String &, G4ParticleDefinition* );
|
||||
G4HadFinalState * ApplyYourself(const G4HadProjectile & theTrack);
|
||||
G4ParticleHPFinalState * New() ;
|
||||
void Init (G4double A, G4double Z, G4int M, const G4String& dirName, const G4String&, G4ParticleDefinition* );
|
||||
G4HadFinalState* ApplyYourself(const G4HadProjectile& theTrack);
|
||||
G4ParticleHPFinalState* New() ;
|
||||
|
||||
private:
|
||||
|
||||
void SampleMult(const G4HadProjectile& theTrack, G4int* nPrompt,
|
||||
G4int* gPrompt, G4double eKinetic);
|
||||
inline G4ParticleHPFissionERelease * GetEnergyRelease() { return &theEnergyRelease; }
|
||||
|
||||
G4fissionEvent* fe;
|
||||
G4int theIsotope; // used to call G4fissionEvent
|
||||
G4double targetMass;
|
||||
void SampleMult(const G4HadProjectile & theTrack, G4int* nPrompt,
|
||||
G4int* gPrompt, G4double eKinetic);
|
||||
inline G4ParticleHPFissionERelease * GetEnergyRelease() {
|
||||
return &theEnergyRelease;
|
||||
}
|
||||
G4ParticleHPParticleYield theFinalStateNeutrons;
|
||||
G4ParticleHPEnergyDistribution thePromptNeutronEnDis;
|
||||
G4ParticleHPEnergyDistribution theDelayedNeutronEnDis;
|
||||
|
||||
@@ -82,7 +82,7 @@ G4ParticleHPFinalState * G4FissionLibrary::New()
|
||||
}
|
||||
|
||||
//void G4FissionLibrary::Init (G4double A, G4double Z, G4String & dirName, G4String &)
|
||||
void G4FissionLibrary::Init (G4double A, G4double Z, G4int M, G4String & dirName, G4String &, G4ParticleDefinition*)
|
||||
void G4FissionLibrary::Init (G4double A, G4double Z, G4int M, const G4String& dirName, const G4String&, G4ParticleDefinition*)
|
||||
{
|
||||
G4String tString = "/FS/";
|
||||
G4bool dbool;
|
||||
|
||||
@@ -89,7 +89,7 @@ G4double G4fissionEvent::G4SmpTerrell(G4double nubar) {
|
||||
if (nubar < WIDTH) {
|
||||
std::ostringstream o;
|
||||
o << nubar;
|
||||
std::string errMsg = "fission nubar out of range, nubar=" + o.str();
|
||||
const std::string& errMsg = "fission nubar out of range, nubar=" + o.str();
|
||||
G4fissionerr(6, "SmpTerrell", errMsg);
|
||||
}
|
||||
|
||||
|
||||
@@ -149,7 +149,7 @@ G4double G4fissionEvent::G4SmpWatt(G4double ePart, G4int iso) {
|
||||
if (isoindex == -1) {
|
||||
std::ostringstream o;
|
||||
o << iso;
|
||||
std::string errMsg = "No Watt spectrum available for iso " + o.str();
|
||||
const std::string& errMsg = "No Watt spectrum available for iso " + o.str();
|
||||
G4fissionerr(6, "SmpWatt", errMsg);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user