129 G4cout <<
"### " << GetPhysicsName() <<
" Construct Processes " << G4endl;
136 G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
139 G4MuBremsstrahlung* mub =
nullptr;
140 G4MuPairProduction* mup =
nullptr;
141 G4hBremsstrahlung* pib =
nullptr;
142 G4hPairProduction* pip =
nullptr;
143 G4hBremsstrahlung* kb =
nullptr;
144 G4hPairProduction*
kp =
nullptr;
145 G4hBremsstrahlung* pb =
nullptr;
146 G4hPairProduction*
pp =
nullptr;
149 G4MuMultipleScattering* mumsc =
nullptr;
150 G4MuMultipleScattering* pimsc =
nullptr;
151 G4MuMultipleScattering* kmsc =
nullptr;
152 G4MuMultipleScattering* pmsc =
nullptr;
153 G4hMultipleScattering* hmsc =
nullptr;
156 G4double highEnergyLimit = 100*
MeV;
158 aParticleIterator->reset();
159 while( (*aParticleIterator)() ){
160 G4ParticleDefinition* particle = aParticleIterator->value();
161 G4String particleName = particle->GetParticleName();
163 if (particleName ==
"gamma") {
165 ph->RegisterProcess(
new G4PhotoElectricEffect(), particle);
166 ph->RegisterProcess(
new G4ComptonScattering(), particle);
167 ph->RegisterProcess(
new G4GammaConversion(), particle);
169 }
else if (particleName ==
"e-") {
171 G4eIonisation* eioni =
new G4eIonisation();
172 eioni->SetStepFunction(0.8, 1.0*mm);
174 G4eMultipleScattering*
msc =
new G4eMultipleScattering;
175 msc->SetStepLimitType(fMinimal);
177 G4WentzelVIModel* msc2 =
new G4WentzelVIModel();
178 msc1->SetHighEnergyLimit(highEnergyLimit);
179 msc2->SetLowEnergyLimit(highEnergyLimit);
180 msc->AddEmModel(0, msc1);
181 msc->AddEmModel(0, msc2);
183 G4eCoulombScatteringModel* ssm =
new G4eCoulombScatteringModel();
184 G4CoulombScattering*
ss =
new G4CoulombScattering();
185 ss->SetEmModel(ssm, 1);
186 ss->SetMinKinEnergy(highEnergyLimit);
187 ssm->SetLowEnergyLimit(highEnergyLimit);
188 ssm->SetActivationLowEnergyLimit(highEnergyLimit);
190 ph->RegisterProcess(msc, particle);
191 ph->RegisterProcess(eioni, particle);
192 ph->RegisterProcess(
new G4eBremsstrahlung(), particle);
193 ph->RegisterProcess(ss, particle);
195 }
else if (particleName ==
"e+") {
197 G4eIonisation* eioni =
new G4eIonisation();
198 eioni->SetStepFunction(0.8, 1.0*mm);
200 G4eMultipleScattering* msc =
new G4eMultipleScattering;
201 msc->SetStepLimitType(fMinimal);
203 G4WentzelVIModel* msc2 =
new G4WentzelVIModel();
204 msc1->SetHighEnergyLimit(highEnergyLimit);
205 msc2->SetLowEnergyLimit(highEnergyLimit);
206 msc->AddEmModel(0, msc1);
207 msc->AddEmModel(0, msc2);
209 G4eCoulombScatteringModel* ssm =
new G4eCoulombScatteringModel();
210 G4CoulombScattering* ss =
new G4CoulombScattering();
211 ss->SetEmModel(ssm, 1);
212 ss->SetMinKinEnergy(highEnergyLimit);
213 ssm->SetLowEnergyLimit(highEnergyLimit);
214 ssm->SetActivationLowEnergyLimit(highEnergyLimit);
216 ph->RegisterProcess(msc, particle);
217 ph->RegisterProcess(eioni, particle);
218 ph->RegisterProcess(
new G4eBremsstrahlung(), particle);
219 ph->RegisterProcess(
new G4eplusAnnihilation(), particle);
220 ph->RegisterProcess(ss, particle);
222 }
else if (particleName ==
"mu+" ||
223 particleName ==
"mu-" ) {
226 mub =
new G4MuBremsstrahlung();
227 mup =
new G4MuPairProduction();
228 mumsc =
new G4MuMultipleScattering();
229 mumsc->AddEmModel(0,
new G4WentzelVIModel());
231 ph->RegisterProcess(mumsc, particle);
232 ph->RegisterProcess(
new G4MuIonisation(), particle);
233 ph->RegisterProcess(mub, particle);
234 ph->RegisterProcess(mup, particle);
235 ph->RegisterProcess(
new G4CoulombScattering(), particle);
237 }
else if (particleName ==
"alpha" ||
238 particleName ==
"He3" ) {
240 ph->RegisterProcess(
new G4hMultipleScattering(), particle);
241 ph->RegisterProcess(
new G4ionIonisation(), particle);
243 }
else if (particleName ==
"GenericIon") {
245 if(
nullptr == hmsc) {
246 hmsc =
new G4hMultipleScattering(
"ionmsc");
248 ph->RegisterProcess(hmsc, particle);
249 ph->RegisterProcess(
new G4ionIonisation(), particle);
251 }
else if (particleName ==
"pi+" ||
252 particleName ==
"pi-" ) {
255 pib =
new G4hBremsstrahlung();
256 pip =
new G4hPairProduction();
257 pimsc =
new G4MuMultipleScattering();
258 pimsc->AddEmModel(0,
new G4WentzelVIModel());
260 ph->RegisterProcess(pimsc, particle);
261 ph->RegisterProcess(
new G4hIonisation(), particle);
262 ph->RegisterProcess(pib, particle);
263 ph->RegisterProcess(pip, particle);
264 ph->RegisterProcess(
new G4CoulombScattering(), particle);
266 }
else if (particleName ==
"kaon+" ||
267 particleName ==
"kaon-" ) {
270 kb =
new G4hBremsstrahlung();
271 kp =
new G4hPairProduction();
272 kmsc =
new G4MuMultipleScattering();
273 kmsc->AddEmModel(0,
new G4WentzelVIModel());
275 ph->RegisterProcess(kmsc, particle);
276 ph->RegisterProcess(
new G4hIonisation(), particle);
277 ph->RegisterProcess(kb, particle);
278 ph->RegisterProcess(kp, particle);
279 ph->RegisterProcess(
new G4CoulombScattering(), particle);
281 }
else if (particleName ==
"proton" ||
282 particleName ==
"anti_proton") {
285 pb =
new G4hBremsstrahlung();
286 pp =
new G4hPairProduction();
287 pmsc =
new G4MuMultipleScattering();
288 pmsc->AddEmModel(0,
new G4WentzelVIModel());
290 ph->RegisterProcess(pmsc, particle);
291 ph->RegisterProcess(
new G4hIonisation(), particle);
292 ph->RegisterProcess(pb, particle);
293 ph->RegisterProcess(pp, particle);
294 ph->RegisterProcess(
new G4CoulombScattering(), particle);
296 }
else if (particleName ==
"B+" ||
297 particleName ==
"B-" ||
298 particleName ==
"D+" ||
299 particleName ==
"D-" ||
300 particleName ==
"Ds+" ||
301 particleName ==
"Ds-" ||
302 particleName ==
"anti_He3" ||
303 particleName ==
"anti_alpha" ||
304 particleName ==
"anti_deuteron" ||
305 particleName ==
"anti_lambda_c+" ||
306 particleName ==
"anti_omega-" ||
307 particleName ==
"anti_sigma_c+" ||
308 particleName ==
"anti_sigma_c++" ||
309 particleName ==
"anti_sigma+" ||
310 particleName ==
"anti_sigma-" ||
311 particleName ==
"anti_triton" ||
312 particleName ==
"anti_xi_c+" ||
313 particleName ==
"anti_xi-" ||
314 particleName ==
"deuteron" ||
315 particleName ==
"lambda_c+" ||
316 particleName ==
"omega-" ||
317 particleName ==
"sigma_c+" ||
318 particleName ==
"sigma_c++" ||
319 particleName ==
"sigma+" ||
320 particleName ==
"sigma-" ||
321 particleName ==
"tau+" ||
322 particleName ==
"tau-" ||
323 particleName ==
"triton" ||
324 particleName ==
"xi_c+" ||
325 particleName ==
"xi-" ) {
327 if(
nullptr == hmsc) {
328 hmsc =
new G4hMultipleScattering(
"ionmsc");
330 ph->RegisterProcess(hmsc, particle);
331 ph->RegisterProcess(
new G4hIonisation(), particle);
334 G4EmProcessOptions opt;
337 opt.SetApplyCuts(
true);