130 G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
132 G4MuBremsstrahlung* mub =
nullptr;
133 G4MuPairProduction* mup =
nullptr;
134 G4hBremsstrahlung* pib =
nullptr;
135 G4hPairProduction* pip =
nullptr;
136 G4hBremsstrahlung* kb =
nullptr;
137 G4hPairProduction*
kp =
nullptr;
138 G4hBremsstrahlung* pb =
nullptr;
139 G4hPairProduction*
pp =
nullptr;
141 G4hMultipleScattering* hmsc =
new G4hMultipleScattering(
"ionmsc");
144 aParticleIterator->reset();
145 while( (*aParticleIterator)() ){
146 G4ParticleDefinition* particle = aParticleIterator->value();
147 G4String particleName = particle->GetParticleName();
149 G4cout <<
"### " << GetPhysicsName() <<
" instantiates for "
150 << particleName << G4endl;
152 if (particleName ==
"gamma") {
154 ph->RegisterProcess(
new G4PhotoElectricEffect(), particle);
155 ph->RegisterProcess(
new G4ComptonScattering(), particle);
156 ph->RegisterProcess(
new G4GammaConversion(), particle);
158 }
else if (particleName ==
"e-") {
160 G4eIonisation* eioni =
new G4eIonisation();
161 eioni->SetStepFunction(0.8, 1.0*mm);
162 G4eMultipleScattering*
msc =
new G4eMultipleScattering();
163 msc->SetStepLimitType(fMinimal);
165 G4eBremsstrahlung* ebrem =
new G4eBremsstrahlung();
167 ph->RegisterProcess(msc, particle);
168 ph->RegisterProcess(eioni, particle);
169 ph->RegisterProcess(ebrem, particle);
171 }
else if (particleName ==
"e+") {
173 G4eIonisation* eioni =
new G4eIonisation();
174 eioni->SetStepFunction(0.8, 1.0*mm);
175 G4eMultipleScattering* msc =
new G4eMultipleScattering();
176 msc->SetStepLimitType(fMinimal);
178 G4eBremsstrahlung* ebrem =
new G4eBremsstrahlung();
180 ph->RegisterProcess(msc, particle);
181 ph->RegisterProcess(eioni, particle);
182 ph->RegisterProcess(ebrem, particle);
183 ph->RegisterProcess(
new G4eplusAnnihilation(), particle);
185 }
else if (particleName ==
"mu+" ||
186 particleName ==
"mu-" ) {
189 mub =
new G4MuBremsstrahlung();
190 mup =
new G4MuPairProduction();
192 G4MuMultipleScattering* msc =
new G4MuMultipleScattering();
193 ph->RegisterProcess(msc, particle);
194 ph->RegisterProcess(
new G4MuIonisation(), particle);
195 ph->RegisterProcess(mub, particle);
196 ph->RegisterProcess(mup, particle);
198 }
else if (particleName ==
"alpha" ||
199 particleName ==
"He3" ) {
201 ph->RegisterProcess(
new G4hMultipleScattering(), particle);
202 ph->RegisterProcess(
new G4ionIonisation(), particle);
204 }
else if (particleName ==
"GenericIon") {
206 ph->RegisterProcess(
new G4hMultipleScattering(), particle);
207 ph->RegisterProcess(
new G4ionIonisation(), particle);
209 }
else if (particleName ==
"pi+" ||
210 particleName ==
"pi-" ) {
213 pib =
new G4hBremsstrahlung();
214 pip =
new G4hPairProduction();
216 ph->RegisterProcess(
new G4hMultipleScattering(), particle);
217 ph->RegisterProcess(
new G4hIonisation(), particle);
218 ph->RegisterProcess(pib, particle);
219 ph->RegisterProcess(pip, particle);
221 }
else if (particleName ==
"kaon+" ||
222 particleName ==
"kaon-" ) {
225 kb =
new G4hBremsstrahlung();
226 kp =
new G4hPairProduction();
228 ph->RegisterProcess(
new G4hMultipleScattering(), particle);
229 ph->RegisterProcess(
new G4hIonisation(), particle);
230 ph->RegisterProcess(kb, particle);
231 ph->RegisterProcess(kp, particle);
233 }
else if (particleName ==
"proton" ||
234 particleName ==
"anti_proton") {
237 pb =
new G4hBremsstrahlung();
238 pp =
new G4hPairProduction();
240 ph->RegisterProcess(
new G4hMultipleScattering(), particle);
241 ph->RegisterProcess(
new G4hIonisation(), particle);
242 ph->RegisterProcess(pb, particle);
243 ph->RegisterProcess(pp, particle);
245 }
else if (particleName ==
"B+" ||
246 particleName ==
"B-" ||
247 particleName ==
"D+" ||
248 particleName ==
"D-" ||
249 particleName ==
"Ds+" ||
250 particleName ==
"Ds-" ||
251 particleName ==
"anti_He3" ||
252 particleName ==
"anti_alpha" ||
253 particleName ==
"anti_deuteron" ||
254 particleName ==
"anti_lambda_c+" ||
255 particleName ==
"anti_omega-" ||
256 particleName ==
"anti_sigma_c+" ||
257 particleName ==
"anti_sigma_c++" ||
258 particleName ==
"anti_sigma+" ||
259 particleName ==
"anti_sigma-" ||
260 particleName ==
"anti_triton" ||
261 particleName ==
"anti_xi_c+" ||
262 particleName ==
"anti_xi-" ||
263 particleName ==
"deuteron" ||
264 particleName ==
"lambda_c+" ||
265 particleName ==
"omega-" ||
266 particleName ==
"sigma_c+" ||
267 particleName ==
"sigma_c++" ||
268 particleName ==
"sigma+" ||
269 particleName ==
"sigma-" ||
270 particleName ==
"tau+" ||
271 particleName ==
"tau-" ||
272 particleName ==
"triton" ||
273 particleName ==
"xi_c+" ||
274 particleName ==
"xi-" ) {
276 ph->RegisterProcess(hmsc, particle);
277 ph->RegisterProcess(
new G4hIonisation(), particle);
283 G4EmProcessOptions opt;
287 opt.SetApplyCuts(
true);