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
@@ -50,7 +50,7 @@ class G4HadronicParameters {
static G4HadronicParameters* Instance();
~G4HadronicParameters();
G4double GetMaxEnergy() const;
inline G4double GetMaxEnergy() const;
void SetMaxEnergy( const G4double val );
// Getter/Setter for the upper limit for Geant4 hadronic physics, for any application.
// Any hadronic model, physics list builder and constructor should use this method
@@ -58,68 +58,68 @@ class G4HadronicParameters {
// Any application which tries to use hadronic physics for an energy higher than this limit
// will get a run-time crash, because no model is found.
G4double GetMinEnergyTransitionFTF_Cascade() const;
G4double GetMaxEnergyTransitionFTF_Cascade() const;
inline G4double GetMinEnergyTransitionFTF_Cascade() const;
inline G4double GetMaxEnergyTransitionFTF_Cascade() const;
void SetMinEnergyTransitionFTF_Cascade( const G4double val );
void SetMaxEnergyTransitionFTF_Cascade( const G4double val );
// Getter/Setter of the recommended energy limits, for physics lists, of the
// transition region between the Fritiof (FTF) string model and the
// intranuclear cascade model, either Bertini (BERT) or Binary (BIC).
G4double GetMinEnergyTransitionQGS_FTF() const;
G4double GetMaxEnergyTransitionQGS_FTF() const;
inline G4double GetMinEnergyTransitionQGS_FTF() const;
inline G4double GetMaxEnergyTransitionQGS_FTF() const;
void SetMinEnergyTransitionQGS_FTF( const G4double val );
void SetMaxEnergyTransitionQGS_FTF( const G4double val );
// Getter/Setter of the recommended energy limits, for physics lists, of the
// transition region between the two strings models - the Quark Gluon String (QGS)
// model and the Fritiof (FTF) model.
G4double EnergyThresholdForHeavyHadrons() const;
inline G4double EnergyThresholdForHeavyHadrons() const;
void SetEnergyThresholdForHeavyHadrons( G4double val );
// if max kinetic energy is below this limit EM and hadronic physics is not
// instantiated for hyperons, anti-hyperons, anti light ions, b-, c- particles
// If max kinetic energy is below this limit, then EM and hadronic physics are not
// instantiated for hyperons, anti-hyperons, anti light ions, b-, c- particles.
G4double XSFactorNucleonInelastic() const;
inline G4double XSFactorNucleonInelastic() const;
void SetXSFactorNucleonInelastic( G4double val );
G4double XSFactorNucleonElastic() const;
inline G4double XSFactorNucleonElastic() const;
void SetXSFactorNucleonElastic( G4double val );
// cross section factor for protons and neutrons
// Cross section factor for protons and neutrons.
G4double XSFactorPionInelastic() const;
inline G4double XSFactorPionInelastic() const;
void SetXSFactorPionInelastic( G4double val );
G4double XSFactorPionElastic() const;
inline G4double XSFactorPionElastic() const;
void SetXSFactorPionElastic( G4double val );
// cross section factor for pions
// Cross section factor for pions.
G4double XSFactorHadronInelastic() const;
inline G4double XSFactorHadronInelastic() const;
void SetXSFactorHadronInelastic( G4double val );
G4double XSFactorHadronElastic() const;
inline G4double XSFactorHadronElastic() const;
void SetXSFactorHadronElastic( G4double val );
// cross section factor for other hadrons and ions
// Cross section factor for other hadrons and ions.
G4double XSFactorEM() const;
inline G4double XSFactorEM() const;
void SetXSFactorEM( G4double val );
// cross section factor for gamma and leptons
// Cross section factor for gamma and leptons.
G4bool EnableBCParticles() const;
inline G4bool EnableBCParticles() const;
void SetEnableBCParticles( G4bool val );
// Baryons and mesons with c- and b- quarks may be enabled/disabled
// This flag is used both by EM and hadronic physics constructors
// Baryons and mesons with c- and b- quarks may be enabled/disabled.
// This flag is used both by EM and hadronic physics constructors.
G4bool EnableHyperNuclei() const;
inline G4bool EnableHyperNuclei() const;
void SetEnableHyperNuclei( G4bool val );
// Light hyper-nuclei may be enabled/disabled
// This flag is used both by EM and hadronic physics constructors
// Light hyper-nuclei may be enabled/disabled.
// This flag is used both by EM and hadronic physics constructors.
G4bool ApplyFactorXS() const;
inline G4bool ApplyFactorXS() const;
void SetApplyFactorXS( G4bool val );
// Flag enabling cross section factor definition
// Flag enabling cross section factor definition.
G4int GetVerboseLevel() const;
inline G4int GetVerboseLevel() const;
void SetVerboseLevel( const G4int val );
// Getter/Setter of the general verbosity level for hadronics.
G4bool EnableCRCoalescence() const;
inline G4bool EnableCRCoalescence() const;
void SetEnableCRCoalescence( G4bool val );
// Boolean switch that allows to apply the Cosmic Ray (CR) coalescence algorithm
// to the secondaries produced by a string model. By default it is disabled.
@@ -128,19 +128,38 @@ class G4HadronicParameters {
inline G4bool EnableIntegralElasticXS() const;
void SetEnableIntegralInelasticXS( G4bool val );
void SetEnableIntegralElasticXS( G4bool val );
// Enable/disable integral method for main hadrons
// Enable/disable integral method for main types of hadrons.
inline G4bool EnableDiffDissociationForBGreater10() const;
/// For nucleon-hadron interactions, it's not decided what to do with diffraction
/// dissociation. For the moment, they are turned off. This option allows it to
/// be turned back on. Applies to Baryon Number > 10 or # target nucleons > 10.
// For nucleon-hadron interactions, it's not decided what to do with diffraction
// dissociation. For the moment, they are turned off. This option allows it to
// be turned back on. Applies to Baryon Number > 10 or # target nucleons > 10.
void SetEnableDiffDissociationForBGreater10(G4bool val);
inline G4bool EnableCoherentChargeExchange() const;
void SetEnableCoherentChargeExchange( G4bool val );
// Coherent Charge exchange process may be enabled/disabled.
inline G4bool EnableNeutronGeneralProcess() const;
void SetEnableNeutronGeneralProcess( G4bool val );
// Neutron general process may be enabled/disabled
// Neutron general process may be enabled/disabled.
inline G4double GetEPRelativeLevel() const;
inline G4double GetEPAbsoluteLevel() const;
inline G4int GetEPReportLevel() const;
inline G4bool GetBinaryDebug() const;
inline const G4String& GetDirPARTICLEXS() const;
inline const G4String& GetPhysListDocDir() const;
inline const G4String& GetPhysListName() const;
// Access to environment variables.
inline G4double GetNeutronKineticEnergyThresholdForSVT() const;
void SetNeutronKineticEnergyThresholdForSVT( const G4double val );
// Getter/Setter for the neutron kinetic energy threshold for
// applying the SVT (Sampling of the Velocity of the Target) algorithm.
private:
G4HadronicParameters();
G4bool IsLocked() const;
@@ -163,8 +182,13 @@ class G4HadronicParameters {
G4double fXSFactorHadronElastic = 1.0;
G4double fXSFactorEM = 1.0;
G4double fXSFactorLimit = 0.2;
G4double fRelativeDiff = DBL_MAX;
G4double fAbsoluteDiff = DBL_MAX;
G4double fNeutronEkinThresholdForSVT = -1.0;
G4int fVerboseLevel = 1;
G4int fReportLevel = 0;
G4bool fEnableBC = false;
G4bool fEnableHyperNuclei = false;
G4bool fApplyFactorXS = false;
@@ -173,6 +197,12 @@ class G4HadronicParameters {
G4bool fEnableIntegralElasticXS = true;
G4bool fEnableDiffDissociationForBGreater10 = false;
G4bool fNeutronGeneral = false;
G4bool fChargeExchange = false;
G4bool fBinaryDebug = false;
G4String fDirPARTICLEXS = "";
G4String fPhysListDocDir = "";
G4String fPhysListName = "";
};
inline G4double G4HadronicParameters::GetMaxEnergy() const {
@@ -262,4 +292,42 @@ inline G4bool G4HadronicParameters::EnableNeutronGeneralProcess() const {
return fNeutronGeneral;
}
inline G4bool G4HadronicParameters::EnableCoherentChargeExchange() const {
return fChargeExchange;
}
inline G4bool G4HadronicParameters::GetBinaryDebug() const {
return fBinaryDebug;
}
inline G4double G4HadronicParameters::GetEPRelativeLevel() const {
return fRelativeDiff;
}
inline G4double G4HadronicParameters::GetEPAbsoluteLevel() const {
return fAbsoluteDiff;
}
inline G4int G4HadronicParameters::GetEPReportLevel() const {
return fReportLevel;
}
inline const G4String& G4HadronicParameters::GetDirPARTICLEXS() const {
return fDirPARTICLEXS;
}
inline const G4String& G4HadronicParameters::GetPhysListDocDir() const
{
return fPhysListDocDir;
}
inline const G4String& G4HadronicParameters::GetPhysListName() const
{
return fPhysListName;
}
inline G4double G4HadronicParameters::GetNeutronKineticEnergyThresholdForSVT() const {
return fNeutronEkinThresholdForSVT;
}
#endif
@@ -134,6 +134,9 @@ class G4Nucleus
G4ReactionProduct GetBiasedThermalNucleus(G4double aMass, G4ThreeVector aVelocity, G4double temp=-1) const;
void DoKinematicsOfThermalNucleus(const G4double mu, const G4double vT_norm, const G4ThreeVector& aVelocity,
G4ReactionProduct& result) const;
G4double Cinema( G4double kineticEnergy );
G4double EvaporationEffects( G4double kineticEnergy );