Warning, file /geant4/examples/extended/radioactivedecay/rdecay01/src/PhysicsList.cc was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031 #include "PhysicsList.hh"
0032
0033 #include "G4DeexPrecoParameters.hh"
0034 #include "G4EmBuilder.hh"
0035 #include "G4IonConstructor.hh"
0036 #include "G4LossTableManager.hh"
0037 #include "G4NuclearLevelData.hh"
0038 #include "G4NuclideTable.hh"
0039 #include "G4ParticleTypes.hh"
0040 #include "G4PhysListUtil.hh"
0041 #include "G4PhysicsListHelper.hh"
0042 #include "G4Radioactivation.hh"
0043 #include "G4SystemOfUnits.hh"
0044 #include "G4UAtomicDeexcitation.hh"
0045 #include "G4UnitsTable.hh"
0046 #include "globals.hh"
0047
0048
0049
0050 PhysicsList::PhysicsList()
0051 {
0052
0053
0054 G4PhysListUtil::InitialiseParameters();
0055
0056
0057
0058 const G4double meanLife = 1 * nanosecond;
0059 G4NuclideTable::GetInstance()->SetMeanLifeThreshold(meanLife);
0060 G4NuclideTable::GetInstance()->SetLevelTolerance(1.0 * eV);
0061
0062
0063
0064 G4EmParameters::Instance()->SetDefaults();
0065 G4EmParameters::Instance()->SetAugerCascade(true);
0066 G4EmParameters::Instance()->SetDeexcitationIgnoreCut(true);
0067
0068
0069
0070 G4DeexPrecoParameters* deex = G4NuclearLevelData::GetInstance()->GetParameters();
0071 deex->SetCorrelatedGamma(false);
0072 deex->SetStoreAllLevels(true);
0073 deex->SetInternalConversionFlag(true);
0074 deex->SetIsomerProduction(true);
0075 deex->SetMaxLifeTime(meanLife);
0076
0077
0078
0079 SetDefaultCutValue(1 * mm);
0080 }
0081
0082
0083
0084 void PhysicsList::ConstructParticle()
0085 {
0086
0087
0088 G4EmBuilder::ConstructMinimalEmSet();
0089 }
0090
0091
0092
0093 void PhysicsList::ConstructProcess()
0094 {
0095 AddTransportation();
0096
0097 G4Radioactivation* radioactiveDecay = new G4Radioactivation();
0098
0099 G4bool ARMflag = false;
0100 radioactiveDecay->SetARM(ARMflag);
0101
0102
0103
0104
0105 G4LossTableManager* man = G4LossTableManager::Instance();
0106 G4VAtomDeexcitation* deex = man->AtomDeexcitation();
0107 if (nullptr == deex) {
0108 deex = new G4UAtomicDeexcitation();
0109 man->SetAtomDeexcitation(deex);
0110 }
0111 deex->InitialiseAtomicDeexcitation();
0112
0113
0114
0115 G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
0116 ph->RegisterProcess(radioactiveDecay, G4GenericIon::GenericIon());
0117 }
0118
0119