6 #include "G4EmParameters.hh"
7 #include "G4ParticleTable.hh"
9 #include "G4ParticleDefinition.hh"
10 #include "G4ProcessManager.hh"
11 #include "G4LossTableManager.hh"
12 #include "G4RegionStore.hh"
14 #include "G4ComptonScattering.hh"
15 #include "G4GammaConversion.hh"
16 #include "G4PhotoElectricEffect.hh"
17 #include "G4UrbanMscModel.hh"
19 #include "G4hMultipleScattering.hh"
20 #include "G4eMultipleScattering.hh"
21 #include "G4MscStepLimitType.hh"
23 #include "G4hhIonisation.hh"
25 #include "G4eBremsstrahlung.hh"
26 #include "G4eplusAnnihilation.hh"
28 #include "G4MuBremsstrahlung.hh"
29 #include "G4MuPairProduction.hh"
31 #include "G4hBremsstrahlung.hh"
32 #include "G4hPairProduction.hh"
35 #include "G4Electron.hh"
36 #include "G4Positron.hh"
37 #include "G4MuonPlus.hh"
38 #include "G4MuonMinus.hh"
39 #include "G4TauMinus.hh"
40 #include "G4TauPlus.hh"
41 #include "G4PionPlus.hh"
42 #include "G4PionMinus.hh"
43 #include "G4KaonPlus.hh"
44 #include "G4KaonMinus.hh"
45 #include "G4BMesonMinus.hh"
46 #include "G4BMesonPlus.hh"
47 #include "G4DMesonMinus.hh"
48 #include "G4DMesonPlus.hh"
49 #include "G4Proton.hh"
50 #include "G4AntiProton.hh"
51 #include "G4SigmaMinus.hh"
52 #include "G4AntiSigmaMinus.hh"
53 #include "G4SigmaPlus.hh"
54 #include "G4AntiSigmaPlus.hh"
55 #include "G4XiMinus.hh"
56 #include "G4AntiXiMinus.hh"
57 #include "G4OmegaMinus.hh"
58 #include "G4AntiOmegaMinus.hh"
59 #include "G4LambdacPlus.hh"
60 #include "G4AntiLambdacPlus.hh"
61 #include "G4XicPlus.hh"
62 #include "G4AntiXicPlus.hh"
63 #include "G4Deuteron.hh"
64 #include "G4Triton.hh"
67 #include "G4GenericIon.hh"
69 #include "G4BuilderType.hh"
70 #include "G4SystemOfUnits.hh"
74 G4EmParameters* param = G4EmParameters::Instance();
77 param->SetApplyCuts(
true);
78 param->SetMscRangeFactor(0.2);
79 param->SetMscStepLimitType(fMinimal);
80 SetPhysicsType(bElectromagnetic);
91 G4Positron::Positron();
92 G4MuonPlus::MuonPlus();
93 G4MuonMinus::MuonMinus();
94 G4TauMinus::TauMinusDefinition();
95 G4TauPlus::TauPlusDefinition();
98 G4PionPlus::PionPlusDefinition();
99 G4PionMinus::PionMinusDefinition();
100 G4KaonPlus::KaonPlusDefinition();
101 G4KaonMinus::KaonMinusDefinition();
102 G4DMesonMinus::DMesonMinusDefinition();
103 G4DMesonPlus::DMesonPlusDefinition();
104 G4BMesonMinus::BMesonMinusDefinition();
105 G4BMesonPlus::BMesonPlusDefinition();
109 G4AntiProton::AntiProton();
110 G4SigmaMinus::SigmaMinusDefinition();
111 G4AntiSigmaMinus::AntiSigmaMinusDefinition();
112 G4SigmaPlus::SigmaPlusDefinition();
113 G4AntiSigmaPlus::AntiSigmaPlusDefinition();
114 G4XiMinus::XiMinusDefinition();
115 G4AntiXiMinus::AntiXiMinusDefinition();
116 G4OmegaMinus::OmegaMinusDefinition();
117 G4AntiOmegaMinus::AntiOmegaMinusDefinition();
118 G4LambdacPlus::LambdacPlusDefinition();
119 G4AntiLambdacPlus::AntiLambdacPlusDefinition();
120 G4XicPlus::XicPlusDefinition();
121 G4AntiXicPlus::AntiXicPlusDefinition();
124 G4Deuteron::Deuteron();
128 G4GenericIon::GenericIonDefinition();
133 G4Region* reg =
nullptr;
135 G4RegionStore* regStore = G4RegionStore::GetInstance();
136 reg = regStore->GetRegion(
region,
false);
139 G4ParticleTable*
table = G4ParticleTable::GetParticleTable();
143 G4ProcessManager* pmanager = particle->GetProcessManager();
148 pmanager->AddDiscreteProcess(
new G4PhotoElectricEffect);
149 pmanager->AddDiscreteProcess(
new G4ComptonScattering);
150 pmanager->AddDiscreteProcess(
new G4GammaConversion);
153 G4eMultipleScattering* msc =
new G4eMultipleScattering;
154 msc->SetStepLimitType(fMinimal);
155 if (reg !=
nullptr) {
156 G4UrbanMscModel* msc_el =
new G4UrbanMscModel();
157 msc_el->SetRangeFactor(0.04);
158 msc->AddEmModel(0, msc_el, reg);
160 pmanager->AddProcess(msc, -1, 1, -1);
161 pmanager->AddProcess(
new G4hhIonisation, -1, 2, 1);
162 pmanager->AddProcess(
new G4eBremsstrahlung, -1, -3, 2);
165 G4eMultipleScattering* msc =
new G4eMultipleScattering;
166 msc->SetStepLimitType(fMinimal);
167 if (reg !=
nullptr) {
168 G4UrbanMscModel* msc_pos =
new G4UrbanMscModel();
169 msc_pos->SetRangeFactor(0.04);
170 msc->AddEmModel(0, msc_pos, reg);
172 pmanager->AddProcess(msc, -1, 1, -1);
173 pmanager->AddProcess(
new G4hhIonisation, -1, 2, -1);
174 pmanager->AddProcess(
new G4eBremsstrahlung, -1, -3, 1);
175 pmanager->AddProcess(
new G4eplusAnnihilation, 0, -1, 2);
178 pmanager->AddProcess(
new G4hMultipleScattering, -1, 1, -1);
179 pmanager->AddProcess(
new G4hhIonisation, -1, 2, -1);
180 pmanager->AddProcess(
new G4MuBremsstrahlung, -1, -3, 1);
181 pmanager->AddProcess(
new G4MuPairProduction, -1, -4, 2);
184 pmanager->AddProcess(
new G4hMultipleScattering, -1, 1, -1);
185 pmanager->AddProcess(
new G4hhIonisation, -1, 2, -1);
189 pmanager->AddProcess(
new G4hMultipleScattering, -1, 1, -1);
190 pmanager->AddProcess(
new G4hhIonisation, -1, 2, -1);
191 pmanager->AddProcess(
new G4hBremsstrahlung(), -1, -3, 1);
192 pmanager->AddProcess(
new G4hPairProduction(), -1, -4, 2);
194 }
else if (particle->GetPDGCharge() != 0.0) {
195 pmanager->AddProcess(
new G4hMultipleScattering, -1, 1, -1);
196 pmanager->AddProcess(
new G4hhIonisation, -1, 2, -1);