Import Geant4 11.4.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2025-06-26 09:17:29 +02:00
parent 20a218bbe1
commit a499fb82e9
1941 changed files with 203285 additions and 95593 deletions
@@ -6,6 +6,9 @@ It must **not** be used as a substitute for writing good git commit messages!
-------------------------------------------------------------------------------
## 2025-04-15 Vladimir Ivanchenko (phys-ctor-helastic-V11-03-00)
- G4ChargeExchangePhysics - fixed usage of the messenger
## 2024-07-03 Robert Hatcher (phys-ctor-helastic-V11-02-00)
- Add self registration of G4ThermalNeutrons with the constructor factory
@@ -41,11 +41,13 @@
#include "globals.hh"
#include "G4VPhysicsConstructor.hh"
class G4ChargeExchangeMessenger;
class G4ChargeExchangePhysics : public G4VPhysicsConstructor
{
public:
explicit G4ChargeExchangePhysics(G4int ver = 1);
~G4ChargeExchangePhysics() override = default;
~G4ChargeExchangePhysics() override;
void ConstructParticle() override;
@@ -61,6 +63,8 @@ public:
private:
G4ChargeExchangeMessenger* theMessenger;
G4double fLowEnergyLimit;
G4double fXSFactor{1.0};
};
@@ -54,6 +54,7 @@
#include "G4KaonZeroLong.hh"
#include "G4HadronicParameters.hh"
#include "G4HadronInelasticProcess.hh"
#include "G4ChargeExchangeMessenger.hh"
#include "G4SystemOfUnits.hh"
// factory
@@ -67,12 +68,18 @@ G4ChargeExchangePhysics::G4ChargeExchangePhysics(G4int ver)
{
// because it is an addition, the type of this constructor is 0
G4HadronicParameters::Instance()->SetVerboseLevel(ver);
theMessenger = new G4ChargeExchangeMessenger(this);
if (ver > 1) {
G4cout << "### ChargeExchangePhysics above "
<< fLowEnergyLimit/CLHEP::GeV << " GeV." << G4endl;
}
}
G4ChargeExchangePhysics::~G4ChargeExchangePhysics()
{
delete theMessenger;
}
void G4ChargeExchangePhysics::ConstructParticle()
{
G4MesonConstructor pMesonConstructor;