Import Geant4 10.7.0.beta source tree

This commit is contained in:
Gabriele Cosmo
2020-06-26 10:23:25 +02:00
parent c02c370437
commit 67ba86d073
1871 changed files with 174422 additions and 131884 deletions
@@ -50,23 +50,23 @@
#include "G4BaryonConstructor.hh"
#include "G4IonConstructor.hh"
#include "G4ShortLivedConstructor.hh"
#include "G4BuilderType.hh"
// factory
#include "G4PhysicsConstructorFactory.hh"
//
G4_DECLARE_PHYSCONSTR_FACTORY(G4DecayPhysics);
G4ThreadLocal G4Decay* G4DecayPhysics::fDecayProcess = 0;
G4ThreadLocal G4bool G4DecayPhysics::wasActivated = false;
G4DecayPhysics::G4DecayPhysics(G4int ver)
: G4VPhysicsConstructor("Decay"), verbose(ver)
{
SetPhysicsType(bDecay);
}
G4DecayPhysics::G4DecayPhysics(const G4String& name, G4int ver)
: G4VPhysicsConstructor(name), verbose(ver)
{
SetPhysicsType(bDecay);
}
G4DecayPhysics::~G4DecayPhysics()
@@ -98,13 +98,10 @@ void G4DecayPhysics::ConstructParticle()
void G4DecayPhysics::ConstructProcess()
{
if(wasActivated) { return; }
wasActivated = true;
G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
// Add Decay Process
fDecayProcess = new G4Decay();
G4Decay* fDecayProcess = new G4Decay();
auto myParticleIterator=GetParticleIterator();
myParticleIterator->reset();
G4ParticleDefinition* particle=0;
@@ -55,10 +55,11 @@ G4RadioactiveDecayPhysics::G4RadioactiveDecayPhysics(G4int)
deex->SetStoreICLevelData(true);
deex->SetMaxLifeTime(G4NuclideTable::GetInstance()->GetThresholdOfHalfLife()
/std::log(2.));
deex->SetIsomerProduction(true);
}
G4RadioactiveDecayPhysics::G4RadioactiveDecayPhysics(const G4String&)
: G4RadioactiveDecayPhysics(0)
G4RadioactiveDecayPhysics::G4RadioactiveDecayPhysics(const G4String&, G4int ver)
: G4RadioactiveDecayPhysics(ver)
{}
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
@@ -79,11 +80,13 @@ void G4RadioactiveDecayPhysics::ConstructProcess()
{
G4LossTableManager* man = G4LossTableManager::Instance();
G4VAtomDeexcitation* ad = man->AtomDeexcitation();
// EM physics constructors are not used
if(!ad) {
G4EmParameters::Instance()->SetAugerCascade(true);
ad = new G4UAtomicDeexcitation();
man->SetAtomDeexcitation(ad);
ad->InitialiseAtomicDeexcitation();
man->ResetParameters();
}
G4PhysicsListHelper::GetPhysicsListHelper()->
@@ -53,20 +53,18 @@
//
G4_DECLARE_PHYSCONSTR_FACTORY(G4SpinDecayPhysics);
G4SpinDecayPhysics::G4SpinDecayPhysics()
: G4VPhysicsConstructor("SpinDecay"), decayWithSpin(NULL), poldecay(NULL)
G4SpinDecayPhysics::G4SpinDecayPhysics(G4int)
: G4VPhysicsConstructor("SpinDecay")
{
}
G4SpinDecayPhysics::G4SpinDecayPhysics(const G4String& name)
: G4VPhysicsConstructor(name), decayWithSpin(NULL), poldecay(NULL)
G4SpinDecayPhysics::G4SpinDecayPhysics(const G4String& name, G4int)
: G4VPhysicsConstructor(name)
{
}
G4SpinDecayPhysics::~G4SpinDecayPhysics()
{
if (decayWithSpin) delete decayWithSpin;
if (poldecay) delete poldecay;
}
void G4SpinDecayPhysics::ConstructParticle()
@@ -105,15 +103,14 @@ void G4SpinDecayPhysics::ConstructParticle()
void G4SpinDecayPhysics::ConstructProcess()
{
decayWithSpin = new G4DecayWithSpin();
G4DecayWithSpin* decayWithSpin = new G4DecayWithSpin();
G4ProcessTable* processTable = G4ProcessTable::GetProcessTable();
G4VProcess* decay;
decay = processTable->FindProcess("Decay",G4MuonPlus::MuonPlus());
G4ProcessManager* fManager;
fManager = G4MuonPlus::MuonPlus()->GetProcessManager();
G4ProcessManager* fManager = G4MuonPlus::MuonPlus()->GetProcessManager();
if (fManager) {
if (decay) fManager->RemoveProcess(decay);
@@ -133,7 +130,7 @@ void G4SpinDecayPhysics::ConstructProcess()
fManager ->SetProcessOrdering(decayWithSpin, idxAtRest);
}
poldecay = new G4PionDecayMakeSpin();
G4PionDecayMakeSpin* poldecay = new G4PionDecayMakeSpin();
decay = processTable->FindProcess("Decay",G4PionPlus::PionPlus());
@@ -37,15 +37,13 @@
#include "G4ProcessManager.hh"
#include "G4UnknownParticle.hh"
#include "G4UnknownDecay.hh"
// factory
#include "G4PhysicsConstructorFactory.hh"
//
G4_DECLARE_PHYSCONSTR_FACTORY(G4UnknownDecayPhysics);
G4ThreadLocal G4UnknownDecay* G4UnknownDecayPhysics::fDecayProcess = 0;
G4ThreadLocal G4bool G4UnknownDecayPhysics::wasActivated = false;
G4UnknownDecayPhysics::G4UnknownDecayPhysics(G4int ver)
: G4VPhysicsConstructor("UnknownDecay"), verbose(ver)
{
@@ -67,13 +65,10 @@ void G4UnknownDecayPhysics::ConstructParticle()
void G4UnknownDecayPhysics::ConstructProcess()
{
if(wasActivated) { return; }
wasActivated = true;
G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
// Add Decay Process
fDecayProcess = new G4UnknownDecay();
G4UnknownDecay* fDecayProcess = new G4UnknownDecay();
auto myParticleIterator=GetParticleIterator();
myParticleIterator->reset();
G4ParticleDefinition* particle=0;