Import Geant4 10.7.0.beta source tree
This commit is contained in:
@@ -66,7 +66,7 @@
|
||||
|
||||
#include "G4PhysicsListHelper.hh"
|
||||
#include "G4Decay.hh"
|
||||
#include "G4RadioactiveDecay.hh"
|
||||
#include "G4RadioactiveDecayBase.hh"
|
||||
#include "G4GenericIon.hh"
|
||||
#include "G4NuclideTable.hh"
|
||||
|
||||
@@ -253,7 +253,7 @@ void PhysicsList::AddDecay()
|
||||
particleIterator->reset();
|
||||
while( (*particleIterator)() ){
|
||||
G4ParticleDefinition* particle = particleIterator->value();
|
||||
if (fDecayProcess->IsApplicable(*particle))
|
||||
if (fDecayProcess->IsApplicable(*particle) && !particle->IsShortLived())
|
||||
ph->RegisterProcess(fDecayProcess, particle);
|
||||
}
|
||||
}
|
||||
@@ -262,7 +262,7 @@ void PhysicsList::AddDecay()
|
||||
|
||||
void PhysicsList::AddRadioactiveDecay()
|
||||
{
|
||||
G4RadioactiveDecay* radioactiveDecay = new G4RadioactiveDecay();
|
||||
G4RadioactiveDecayBase* radioactiveDecay = new G4RadioactiveDecayBase();
|
||||
|
||||
radioactiveDecay->SetARM(true); //Atomic Rearangement
|
||||
|
||||
@@ -284,13 +284,11 @@ void PhysicsList::AddStepMax()
|
||||
auto particleIterator=GetParticleIterator();
|
||||
particleIterator->reset();
|
||||
while ((*particleIterator)()){
|
||||
G4ParticleDefinition* particle = particleIterator->value();
|
||||
G4ProcessManager* pmanager = particle->GetProcessManager();
|
||||
G4ParticleDefinition* particle = particleIterator->value();
|
||||
G4ProcessManager* pmanager = particle->GetProcessManager();
|
||||
|
||||
if (stepMaxProcess->IsApplicable(*particle))
|
||||
{
|
||||
pmanager ->AddDiscreteProcess(stepMaxProcess);
|
||||
}
|
||||
if (stepMaxProcess->IsApplicable(*particle) && !particle->IsShortLived())
|
||||
pmanager->AddDiscreteProcess(stepMaxProcess);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user