7 #include "G4EmParameters.hh"
8 #include "G4ParticleTable.hh"
10 #include "G4ParticleDefinition.hh"
11 #include "G4ProcessManager.hh"
12 #include "G4LossTableManager.hh"
13 #include "G4RegionStore.hh"
15 #include "G4ComptonScattering.hh"
16 #include "G4GammaConversion.hh"
17 #include "G4PhotoElectricEffect.hh"
18 #include "G4PairProductionRelModel.hh"
20 #include "G4hMultipleScattering.hh"
21 #include "G4eMultipleScattering.hh"
22 #include "G4MuMultipleScattering.hh"
23 #include "G4MscStepLimitType.hh"
25 #include "G4eIonisation.hh"
26 #include "G4eBremsstrahlung.hh"
27 #include "G4eplusAnnihilation.hh"
29 #include "G4MuIonisation.hh"
30 #include "G4MuBremsstrahlung.hh"
31 #include "G4MuPairProduction.hh"
33 #include "G4hIonisation.hh"
34 #include "G4ionIonisation.hh"
35 #include "G4hBremsstrahlung.hh"
36 #include "G4hPairProduction.hh"
39 #include "G4Electron.hh"
40 #include "G4Positron.hh"
41 #include "G4MuonPlus.hh"
42 #include "G4MuonMinus.hh"
43 #include "G4TauMinus.hh"
44 #include "G4TauPlus.hh"
45 #include "G4PionPlus.hh"
46 #include "G4PionMinus.hh"
47 #include "G4KaonPlus.hh"
48 #include "G4KaonMinus.hh"
49 #include "G4BMesonMinus.hh"
50 #include "G4BMesonPlus.hh"
51 #include "G4DMesonMinus.hh"
52 #include "G4DMesonPlus.hh"
53 #include "G4Proton.hh"
54 #include "G4AntiProton.hh"
55 #include "G4SigmaMinus.hh"
56 #include "G4AntiSigmaMinus.hh"
57 #include "G4SigmaPlus.hh"
58 #include "G4AntiSigmaPlus.hh"
59 #include "G4XiMinus.hh"
60 #include "G4AntiXiMinus.hh"
61 #include "G4OmegaMinus.hh"
62 #include "G4AntiOmegaMinus.hh"
63 #include "G4LambdacPlus.hh"
64 #include "G4AntiLambdacPlus.hh"
65 #include "G4XicPlus.hh"
66 #include "G4AntiXicPlus.hh"
67 #include "G4Deuteron.hh"
68 #include "G4Triton.hh"
71 #include "G4GenericIon.hh"
73 #include "G4BuilderType.hh"
74 #include "G4SystemOfUnits.hh"
78 G4EmParameters* param = G4EmParameters::Instance();
81 param->SetApplyCuts(
true);
82 param->SetStepFunction(0.8, 1 * CLHEP::mm);
83 param->SetMscRangeFactor(0.2);
84 param->SetMscStepLimitType(fMinimal);
85 SetPhysicsType(bElectromagnetic);
96 G4Positron::Positron();
97 G4MuonPlus::MuonPlus();
98 G4MuonMinus::MuonMinus();
99 G4TauMinus::TauMinusDefinition();
100 G4TauPlus::TauPlusDefinition();
103 G4PionPlus::PionPlusDefinition();
104 G4PionMinus::PionMinusDefinition();
105 G4KaonPlus::KaonPlusDefinition();
106 G4KaonMinus::KaonMinusDefinition();
107 G4DMesonMinus::DMesonMinusDefinition();
108 G4DMesonPlus::DMesonPlusDefinition();
109 G4BMesonMinus::BMesonMinusDefinition();
110 G4BMesonPlus::BMesonPlusDefinition();
114 G4AntiProton::AntiProton();
115 G4SigmaMinus::SigmaMinusDefinition();
116 G4AntiSigmaMinus::AntiSigmaMinusDefinition();
117 G4SigmaPlus::SigmaPlusDefinition();
118 G4AntiSigmaPlus::AntiSigmaPlusDefinition();
119 G4XiMinus::XiMinusDefinition();
120 G4AntiXiMinus::AntiXiMinusDefinition();
121 G4OmegaMinus::OmegaMinusDefinition();
122 G4AntiOmegaMinus::AntiOmegaMinusDefinition();
123 G4LambdacPlus::LambdacPlusDefinition();
124 G4AntiLambdacPlus::AntiLambdacPlusDefinition();
125 G4XicPlus::XicPlusDefinition();
126 G4AntiXicPlus::AntiXicPlusDefinition();
129 G4Deuteron::Deuteron();
133 G4GenericIon::GenericIonDefinition();
138 G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
141 G4MuBremsstrahlung* mub =
nullptr;
142 G4MuPairProduction* mup =
nullptr;
143 G4hBremsstrahlung* pib =
nullptr;
144 G4hPairProduction* pip =
nullptr;
145 G4hBremsstrahlung* kb =
nullptr;
146 G4hPairProduction*
kp =
nullptr;
147 G4hBremsstrahlung* pb =
nullptr;
148 G4hPairProduction*
pp =
nullptr;
151 G4MuMultipleScattering* mumsc =
nullptr;
152 G4hMultipleScattering* pimsc =
nullptr;
153 G4hMultipleScattering* kmsc =
nullptr;
154 G4hMultipleScattering* pmsc =
nullptr;
155 G4hMultipleScattering* hmsc =
nullptr;
161 G4ParticleTable*
table = G4ParticleTable::GetParticleTable();
169 ph->RegisterProcess(
new G4PhotoElectricEffect(), particle);
170 ph->RegisterProcess(
new G4ComptonScattering(), particle);
171 ph->RegisterProcess(
new G4GammaConversion(), particle);
174 G4eIonisation* eioni =
new G4eIonisation();
175 G4eMultipleScattering* msc =
new G4eMultipleScattering;
178 G4eBremsstrahlung* ebrem =
new G4eBremsstrahlung();
180 ph->RegisterProcess(msc, particle);
181 ph->RegisterProcess(eioni, particle);
182 ph->RegisterProcess(ebrem, particle);
185 G4eIonisation* eioni =
new G4eIonisation();
187 G4eMultipleScattering* msc =
new G4eMultipleScattering;
190 G4eBremsstrahlung* ebrem =
new G4eBremsstrahlung();
192 ph->RegisterProcess(msc, particle);
193 ph->RegisterProcess(eioni, particle);
194 ph->RegisterProcess(ebrem, particle);
195 ph->RegisterProcess(
new G4eplusAnnihilation(), particle);
198 if (
nullptr == mub) {
199 mub =
new G4MuBremsstrahlung();
200 mup =
new G4MuPairProduction();
201 mumsc =
new G4MuMultipleScattering();
203 ph->RegisterProcess(mumsc, particle);
204 ph->RegisterProcess(
new G4MuIonisation(), particle);
205 ph->RegisterProcess(mub, particle);
206 ph->RegisterProcess(mup, particle);
209 ph->RegisterProcess(
new G4hMultipleScattering(), particle);
210 ph->RegisterProcess(
new G4ionIonisation(), particle);
213 if (
nullptr == hmsc) {
214 hmsc =
new G4hMultipleScattering(
"ionmsc");
216 ph->RegisterProcess(hmsc, particle);
217 ph->RegisterProcess(
new G4ionIonisation(), particle);
220 if (
nullptr == pib) {
221 pib =
new G4hBremsstrahlung();
222 pip =
new G4hPairProduction();
223 pimsc =
new G4hMultipleScattering();
225 ph->RegisterProcess(pimsc, particle);
226 ph->RegisterProcess(
new G4hIonisation(), particle);
227 ph->RegisterProcess(pib, particle);
228 ph->RegisterProcess(pip, particle);
232 kb =
new G4hBremsstrahlung();
233 kp =
new G4hPairProduction();
234 kmsc =
new G4hMultipleScattering();
236 ph->RegisterProcess(kmsc, particle);
237 ph->RegisterProcess(
new G4hIonisation(), particle);
238 ph->RegisterProcess(kb, particle);
239 ph->RegisterProcess(
kp, particle);
243 pb =
new G4hBremsstrahlung();
244 pp =
new G4hPairProduction();
246 pmsc =
new G4hMultipleScattering();
248 ph->RegisterProcess(pmsc, particle);
249 ph->RegisterProcess(
new G4hIonisation(), particle);
250 ph->RegisterProcess(pb, particle);
251 ph->RegisterProcess(
pp, particle);
253 }
else if (particle->GetPDGCharge() != 0.0) {
254 if (
nullptr == hmsc) {
255 hmsc =
new G4hMultipleScattering(
"ionmsc");
257 ph->RegisterProcess(hmsc, particle);
258 ph->RegisterProcess(
new G4hIonisation(), particle);