Import Geant4 11.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2022-12-09 14:43:28 +01:00
parent c07cea1fe0
commit 9f34590941
3810 changed files with 200490 additions and 182326 deletions
@@ -31,6 +31,7 @@ CPPFLAGS += -I$(G4BASE)/global/management/include \
-I$(G4BASE)/particles/hadrons/ions/include \
-I$(G4BASE)/run/include \
-I$(G4BASE)/physics_lists/builders/include \
-I$(G4BASE)/physics_lists/constructors/electromagnetic/include \
-I$(G4BASE)/physics_lists/util/include \
-I$(G4BASE)/physics_lists/constructors/factory/include \
-I$(G4BASE)/processes/management/include \
@@ -4,6 +4,16 @@ See `CONTRIBUTING.rst` for details of **required** info/format for each entry,
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!
## 2022-11-16 Vladimir Ivanchenko (phys-ctor-decay-V11-00-03)
- added calls to G4EmBuilder and G4PhysListUtil in order to
prevent from warnings on hyper-nuclei decays in the case of
simplified custom Physics List
## 2022-08-16 Alberto Ribon (phys-ctor-decay-V11-00-02)
- sources.cmake : added missed dependency on G4physlist_util
## 2022-08-09 Vladimir Ivanchenko (phys-ctor-decay-V11-00-01)
- G4DecayPhysics - added instantiation of singletones for physics
## 2021-12-10 Ben Morgan (phys-ctor-decay-V11-00-00)
- Change to new Markdown History format
@@ -33,6 +33,8 @@ geant4_module_link_libraries(G4phys_ctor_decay
G4mesons
G4partman
G4phys_builders
G4phys_ctor_em
G4phys_ctor_factory
G4physlist_util
G4procman
G4shortlived)
@@ -51,27 +51,26 @@
#include "G4IonConstructor.hh"
#include "G4ShortLivedConstructor.hh"
#include "G4BuilderType.hh"
#include "G4PhysListUtil.hh"
// factory
#include "G4PhysicsConstructorFactory.hh"
//
G4_DECLARE_PHYSCONSTR_FACTORY(G4DecayPhysics);
G4DecayPhysics::G4DecayPhysics(G4int ver)
: G4VPhysicsConstructor("Decay"), verbose(ver)
{
SetPhysicsType(bDecay);
}
G4DecayPhysics::G4DecayPhysics(const G4String& name, G4int ver)
: G4VPhysicsConstructor(name), verbose(ver)
{
SetPhysicsType(bDecay);
G4PhysListUtil::InitialiseParameters();
}
G4DecayPhysics::G4DecayPhysics(G4int ver)
: G4DecayPhysics("Decay", ver)
{}
G4DecayPhysics::~G4DecayPhysics()
{
}
{}
void G4DecayPhysics::ConstructParticle()
{
@@ -38,6 +38,7 @@
#include "G4MuonicAtomDecay.hh"
#include "globals.hh"
#include "G4PhysicsListHelper.hh"
#include "G4PhysListUtil.hh"
// factory
#include "G4PhysicsConstructorFactory.hh"
@@ -50,6 +51,7 @@ G4_DECLARE_PHYSCONSTR_FACTORY(G4MuonicAtomDecayPhysics);
G4MuonicAtomDecayPhysics::G4MuonicAtomDecayPhysics(G4int vL)
: G4VPhysicsConstructor("G4MuonicAtomDecay")
{
G4PhysListUtil::InitialiseParameters();
SetVerboseLevel(vL);
#ifdef G4VERBOSE
if (GetVerboseLevel()>0) {
@@ -59,15 +61,9 @@ G4MuonicAtomDecayPhysics::G4MuonicAtomDecayPhysics(G4int vL)
#endif
}
G4MuonicAtomDecayPhysics::G4MuonicAtomDecayPhysics(const G4String& name)
: G4VPhysicsConstructor(name)
G4MuonicAtomDecayPhysics::G4MuonicAtomDecayPhysics(const G4String&)
: G4MuonicAtomDecayPhysics(1)
{
#ifdef G4VERBOSE
if (GetVerboseLevel()>0) {
G4cout << "G4MuonicAtomDecayPhysics() with verboseLevel "
<< verboseLevel << " and name " << name << G4endl;
}
#endif
}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -39,6 +39,7 @@
#include "G4NuclearLevelData.hh"
#include "G4DeexPrecoParameters.hh"
#include "G4NuclideTable.hh"
#include "G4PhysListUtil.hh"
// factory
#include "G4PhysicsConstructorFactory.hh"
@@ -47,9 +48,12 @@ G4_DECLARE_PHYSCONSTR_FACTORY(G4RadioactiveDecayPhysics);
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
G4RadioactiveDecayPhysics::G4RadioactiveDecayPhysics(G4int)
G4RadioactiveDecayPhysics::G4RadioactiveDecayPhysics(G4int ver)
: G4VPhysicsConstructor("G4RadioactiveDecay")
{
G4PhysListUtil::InitialiseParameters();
SetVerboseLevel(ver);
// hadronic physics extra configuration
G4DeexPrecoParameters* deex = G4NuclearLevelData::GetInstance()->GetParameters();
deex->SetStoreICLevelData(true);
@@ -48,19 +48,23 @@
#include "G4MuonDecayChannelWithSpin.hh"
#include "G4MuonRadiativeDecayChannelWithSpin.hh"
#include "G4EmBuilder.hh"
#include "G4PhysListUtil.hh"
// factory
#include "G4PhysicsConstructorFactory.hh"
//
G4_DECLARE_PHYSCONSTR_FACTORY(G4SpinDecayPhysics);
G4SpinDecayPhysics::G4SpinDecayPhysics(G4int)
: G4VPhysicsConstructor("SpinDecay")
G4SpinDecayPhysics::G4SpinDecayPhysics(G4int verb)
: G4SpinDecayPhysics("SpinDecay", verb)
{
}
G4SpinDecayPhysics::G4SpinDecayPhysics(const G4String& name, G4int)
: G4VPhysicsConstructor(name)
{
G4PhysListUtil::InitialiseParameters();
}
G4SpinDecayPhysics::~G4SpinDecayPhysics()
@@ -69,22 +73,11 @@ G4SpinDecayPhysics::~G4SpinDecayPhysics()
void G4SpinDecayPhysics::ConstructParticle()
{
G4Gamma::GammaDefinition();
G4Electron::ElectronDefinition();
G4Positron::PositronDefinition();
G4NeutrinoE::NeutrinoEDefinition();
G4NeutrinoMu::NeutrinoMuDefinition();
G4AntiNeutrinoE::AntiNeutrinoEDefinition();
G4AntiNeutrinoMu::AntiNeutrinoMuDefinition();
// minimal set of particles for EM physics
G4EmBuilder::ConstructMinimalEmSet();
G4MuonPlus::MuonPlusDefinition();
G4MuonMinus::MuonMinusDefinition();
G4PionPlus::PionPlus();
G4PionMinus::PionMinus();
G4GenericIon::GenericIonDefinition();
G4DecayTable* MuonPlusDecayTable = new G4DecayTable();
MuonPlusDecayTable -> Insert(new