138 G4cout <<
"### " << GetPhysicsName() <<
" Construct Processes " << G4endl;
145 G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
148 G4MuBremsstrahlung* mub =
nullptr;
149 G4MuPairProduction* mup =
nullptr;
150 G4hBremsstrahlung* pib =
nullptr;
151 G4hPairProduction* pip =
nullptr;
152 G4hBremsstrahlung* kb =
nullptr;
153 G4hPairProduction*
kp =
nullptr;
154 G4hBremsstrahlung* pb =
nullptr;
155 G4hPairProduction*
pp =
nullptr;
158 G4MuMultipleScattering* mumsc =
nullptr;
159 G4MuMultipleScattering* pimsc =
nullptr;
160 G4MuMultipleScattering* kmsc =
nullptr;
161 G4MuMultipleScattering* pmsc =
nullptr;
162 G4hMultipleScattering* hmsc =
nullptr;
165 G4double highEnergyLimit = 100*
MeV;
168 G4RegionStore::GetInstance()->GetRegion(
"HcalRegion",
false);
170 G4RegionStore::GetInstance()->GetRegion(
"HGCalRegion",
false);
172 aParticleIterator->reset();
173 while( (*aParticleIterator)() ){
174 G4ParticleDefinition* particle = aParticleIterator->value();
175 G4String particleName = particle->GetParticleName();
177 if (particleName ==
"gamma") {
179 ph->RegisterProcess(
new G4PhotoElectricEffect(), particle);
180 ph->RegisterProcess(
new G4ComptonScattering(), particle);
181 ph->RegisterProcess(
new G4GammaConversion(), particle);
183 }
else if (particleName ==
"e-") {
185 G4eIonisation* eioni =
new G4eIonisation();
186 eioni->SetStepFunction(0.8, 1.0*mm);
188 G4eMultipleScattering*
msc =
new G4eMultipleScattering;
189 msc->SetStepLimitType(fMinimal);
190 G4UrbanMscModel* msc1 =
new G4UrbanMscModel();
191 G4WentzelVIModel* msc2 =
new G4WentzelVIModel();
192 G4UrbanMscModel* msc3 =
new G4UrbanMscModel();
193 msc3->SetLocked(
true);
194 msc1->SetHighEnergyLimit(highEnergyLimit);
195 msc2->SetLowEnergyLimit(highEnergyLimit);
196 msc3->SetHighEnergyLimit(highEnergyLimit);
197 msc->AddEmModel(0, msc1);
198 msc->AddEmModel(0, msc2);
199 msc->AddEmModel(-1, msc3, aRegion);
200 if (bRegion) msc->AddEmModel(-1, msc3, bRegion);
202 G4eCoulombScatteringModel* ssm =
new G4eCoulombScatteringModel();
203 G4CoulombScattering*
ss =
new G4CoulombScattering();
204 ss->SetEmModel(ssm, 1);
205 ss->SetMinKinEnergy(highEnergyLimit);
206 ssm->SetLowEnergyLimit(highEnergyLimit);
207 ssm->SetActivationLowEnergyLimit(highEnergyLimit);
209 ph->RegisterProcess(msc, particle);
210 ph->RegisterProcess(eioni, particle);
211 ph->RegisterProcess(
new G4eBremsstrahlung(), particle);
212 ph->RegisterProcess(ss, particle);
214 }
else if (particleName ==
"e+") {
216 G4eIonisation* eioni =
new G4eIonisation();
217 eioni->SetStepFunction(0.8, 1.0*mm);
219 G4eMultipleScattering* msc =
new G4eMultipleScattering;
220 msc->SetStepLimitType(fMinimal);
221 G4UrbanMscModel* msc1 =
new G4UrbanMscModel();
222 G4WentzelVIModel* msc2 =
new G4WentzelVIModel();
223 G4UrbanMscModel* msc3 =
new G4UrbanMscModel();
224 msc1->SetHighEnergyLimit(highEnergyLimit);
225 msc2->SetLowEnergyLimit(highEnergyLimit);
226 msc3->SetHighEnergyLimit(highEnergyLimit);
227 msc3->SetLocked(
true);
228 msc->AddEmModel(0, msc1);
229 msc->AddEmModel(0, msc2);
230 msc->AddEmModel(-1, msc3, aRegion);
231 if (bRegion) msc->AddEmModel(-1, msc3, bRegion);
233 G4eCoulombScatteringModel* ssm =
new G4eCoulombScatteringModel();
234 G4CoulombScattering* ss =
new G4CoulombScattering();
235 ss->SetEmModel(ssm, 1);
236 ss->SetMinKinEnergy(highEnergyLimit);
237 ssm->SetLowEnergyLimit(highEnergyLimit);
238 ssm->SetActivationLowEnergyLimit(highEnergyLimit);
240 ph->RegisterProcess(msc, particle);
241 ph->RegisterProcess(eioni, particle);
242 ph->RegisterProcess(
new G4eBremsstrahlung(), particle);
243 ph->RegisterProcess(
new G4eplusAnnihilation(), particle);
244 ph->RegisterProcess(ss, particle);
246 }
else if (particleName ==
"mu+" ||
247 particleName ==
"mu-" ) {
250 mub =
new G4MuBremsstrahlung();
251 mup =
new G4MuPairProduction();
252 mumsc =
new G4MuMultipleScattering();
253 mumsc->AddEmModel(0,
new G4WentzelVIModel());
255 ph->RegisterProcess(mumsc, particle);
256 ph->RegisterProcess(
new G4MuIonisation(), particle);
257 ph->RegisterProcess(mub, particle);
258 ph->RegisterProcess(mup, particle);
259 ph->RegisterProcess(
new G4CoulombScattering(), particle);
261 }
else if (particleName ==
"alpha" ||
262 particleName ==
"He3" ) {
264 ph->RegisterProcess(
new G4hMultipleScattering(), particle);
265 ph->RegisterProcess(
new G4ionIonisation(), particle);
267 }
else if (particleName ==
"GenericIon") {
269 if(
nullptr == hmsc) {
270 hmsc =
new G4hMultipleScattering(
"ionmsc");
272 ph->RegisterProcess(hmsc, particle);
273 ph->RegisterProcess(
new G4ionIonisation(), particle);
275 }
else if (particleName ==
"pi+" ||
276 particleName ==
"pi-" ) {
279 pib =
new G4hBremsstrahlung();
280 pip =
new G4hPairProduction();
281 pimsc =
new G4MuMultipleScattering();
282 pimsc->AddEmModel(0,
new G4WentzelVIModel());
284 ph->RegisterProcess(pimsc, particle);
285 ph->RegisterProcess(
new G4hIonisation(), particle);
286 ph->RegisterProcess(pib, particle);
287 ph->RegisterProcess(pip, particle);
288 ph->RegisterProcess(
new G4CoulombScattering(), particle);
290 }
else if (particleName ==
"kaon+" ||
291 particleName ==
"kaon-" ) {
294 kb =
new G4hBremsstrahlung();
295 kp =
new G4hPairProduction();
296 kmsc =
new G4MuMultipleScattering();
297 kmsc->AddEmModel(0,
new G4WentzelVIModel());
299 ph->RegisterProcess(kmsc, particle);
300 ph->RegisterProcess(
new G4hIonisation(), particle);
301 ph->RegisterProcess(kb, particle);
302 ph->RegisterProcess(kp, particle);
303 ph->RegisterProcess(
new G4CoulombScattering(), particle);
305 }
else if (particleName ==
"proton" ||
306 particleName ==
"anti_proton") {
309 pb =
new G4hBremsstrahlung();
310 pp =
new G4hPairProduction();
311 pmsc =
new G4MuMultipleScattering();
312 pmsc->AddEmModel(0,
new G4WentzelVIModel());
314 ph->RegisterProcess(pmsc, particle);
315 ph->RegisterProcess(
new G4hIonisation(), particle);
316 ph->RegisterProcess(pb, particle);
317 ph->RegisterProcess(pp, particle);
318 ph->RegisterProcess(
new G4CoulombScattering(), particle);
320 }
else if (particleName ==
"B+" ||
321 particleName ==
"B-" ||
322 particleName ==
"D+" ||
323 particleName ==
"D-" ||
324 particleName ==
"Ds+" ||
325 particleName ==
"Ds-" ||
326 particleName ==
"anti_He3" ||
327 particleName ==
"anti_alpha" ||
328 particleName ==
"anti_deuteron" ||
329 particleName ==
"anti_lambda_c+" ||
330 particleName ==
"anti_omega-" ||
331 particleName ==
"anti_sigma_c+" ||
332 particleName ==
"anti_sigma_c++" ||
333 particleName ==
"anti_sigma+" ||
334 particleName ==
"anti_sigma-" ||
335 particleName ==
"anti_triton" ||
336 particleName ==
"anti_xi_c+" ||
337 particleName ==
"anti_xi-" ||
338 particleName ==
"deuteron" ||
339 particleName ==
"lambda_c+" ||
340 particleName ==
"omega-" ||
341 particleName ==
"sigma_c+" ||
342 particleName ==
"sigma_c++" ||
343 particleName ==
"sigma+" ||
344 particleName ==
"sigma-" ||
345 particleName ==
"tau+" ||
346 particleName ==
"tau-" ||
347 particleName ==
"triton" ||
348 particleName ==
"xi_c+" ||
349 particleName ==
"xi-" ) {
351 if(
nullptr == hmsc) {
352 hmsc =
new G4hMultipleScattering(
"ionmsc");
354 ph->RegisterProcess(hmsc, particle);
355 ph->RegisterProcess(
new G4hIonisation(), particle);
358 G4VAtomDeexcitation* de =
new G4UAtomicDeexcitation();
359 G4LossTableManager::Instance()->SetAtomDeexcitation(de);