139 G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
141 G4MuBremsstrahlung* mub =
new G4MuBremsstrahlung();
142 G4MuPairProduction* mup =
new G4MuPairProduction();
143 G4hBremsstrahlung* pib =
new G4hBremsstrahlung();
144 G4hPairProduction* pip =
new G4hPairProduction();
145 G4hBremsstrahlung* kb =
new G4hBremsstrahlung();
146 G4hPairProduction* kp =
new G4hPairProduction();
147 G4hBremsstrahlung* pb =
new G4hBremsstrahlung();
148 G4hPairProduction*
pp =
new G4hPairProduction();
150 G4hMultipleScattering* hmsc =
new G4hMultipleScattering(
"ionmsc");
153 aParticleIterator->reset();
154 while( (*aParticleIterator)() ){
155 G4ParticleDefinition* particle = aParticleIterator->value();
156 G4String particleName = particle->GetParticleName();
158 G4cout <<
"### " << GetPhysicsName() <<
" instantiates for "
159 << particleName << G4endl;
161 if (particleName ==
"gamma") {
163 ph->RegisterProcess(
new G4PhotoElectricEffect(), particle);
164 ph->RegisterProcess(
new G4ComptonScattering(), particle);
165 ph->RegisterProcess(
new G4GammaConversion(), particle);
167 }
else if (particleName ==
"e-") {
169 G4eIonisation* eioni =
new G4eIonisation();
170 eioni->SetStepFunction(0.8, 1.0*mm);
171 G4eMultipleScattering*
msc =
new G4eMultipleScattering();
172 msc->SetStepLimitType(fMinimal);
174 G4eBremsstrahlung* ebrem =
new G4eBremsstrahlung();
176 ph->RegisterProcess(msc, particle);
177 ph->RegisterProcess(eioni, particle);
178 ph->RegisterProcess(ebrem, particle);
180 }
else if (particleName ==
"e+") {
182 G4eIonisation* eioni =
new G4eIonisation();
183 eioni->SetStepFunction(0.8, 1.0*mm);
184 G4eMultipleScattering* msc =
new G4eMultipleScattering();
185 msc->SetStepLimitType(fMinimal);
187 G4eBremsstrahlung* ebrem =
new G4eBremsstrahlung();
189 ph->RegisterProcess(msc, particle);
190 ph->RegisterProcess(eioni, particle);
191 ph->RegisterProcess(ebrem, particle);
192 ph->RegisterProcess(
new G4eplusAnnihilation(), particle);
194 }
else if (particleName ==
"mu+" ||
195 particleName ==
"mu-" ) {
197 G4MuMultipleScattering* msc =
new G4MuMultipleScattering();
198 ph->RegisterProcess(msc, particle);
199 ph->RegisterProcess(
new G4MuIonisation(), particle);
200 ph->RegisterProcess(mub, particle);
201 ph->RegisterProcess(mup, particle);
203 }
else if (particleName ==
"alpha" ||
204 particleName ==
"He3" ) {
206 ph->RegisterProcess(
new G4hMultipleScattering(), particle);
207 ph->RegisterProcess(
new G4ionIonisation(), particle);
209 }
else if (particleName ==
"GenericIon") {
211 ph->RegisterProcess(
new G4hMultipleScattering(), particle);
212 ph->RegisterProcess(
new G4ionIonisation(), particle);
214 }
else if (particleName ==
"pi+" ||
215 particleName ==
"pi-" ) {
217 ph->RegisterProcess(
new G4hMultipleScattering(), particle);
218 ph->RegisterProcess(
new G4hIonisation(), particle);
219 ph->RegisterProcess(pib, particle);
220 ph->RegisterProcess(pip, particle);
222 }
else if (particleName ==
"kaon+" ||
223 particleName ==
"kaon-" ) {
225 ph->RegisterProcess(
new G4hMultipleScattering(), particle);
226 ph->RegisterProcess(
new G4hIonisation(), particle);
227 ph->RegisterProcess(kb, particle);
228 ph->RegisterProcess(kp, particle);
230 }
else if (particleName ==
"proton" ||
231 particleName ==
"anti_proton") {
233 ph->RegisterProcess(
new G4hMultipleScattering(), particle);
234 ph->RegisterProcess(
new G4hIonisation(), particle);
235 ph->RegisterProcess(pb, particle);
236 ph->RegisterProcess(pp, particle);
238 }
else if (particleName ==
"B+" ||
239 particleName ==
"B-" ||
240 particleName ==
"D+" ||
241 particleName ==
"D-" ||
242 particleName ==
"Ds+" ||
243 particleName ==
"Ds-" ||
244 particleName ==
"anti_He3" ||
245 particleName ==
"anti_alpha" ||
246 particleName ==
"anti_deuteron" ||
247 particleName ==
"anti_lambda_c+" ||
248 particleName ==
"anti_omega-" ||
249 particleName ==
"anti_sigma_c+" ||
250 particleName ==
"anti_sigma_c++" ||
251 particleName ==
"anti_sigma+" ||
252 particleName ==
"anti_sigma-" ||
253 particleName ==
"anti_triton" ||
254 particleName ==
"anti_xi_c+" ||
255 particleName ==
"anti_xi-" ||
256 particleName ==
"deuteron" ||
257 particleName ==
"lambda_c+" ||
258 particleName ==
"omega-" ||
259 particleName ==
"sigma_c+" ||
260 particleName ==
"sigma_c++" ||
261 particleName ==
"sigma+" ||
262 particleName ==
"sigma-" ||
263 particleName ==
"tau+" ||
264 particleName ==
"tau-" ||
265 particleName ==
"triton" ||
266 particleName ==
"xi_c+" ||
267 particleName ==
"xi-" ) {
269 ph->RegisterProcess(hmsc, particle);
270 ph->RegisterProcess(
new G4hIonisation(), particle);
276 G4EmProcessOptions opt;
281 opt.SetApplyCuts(
true);