130 G4MuBremsstrahlung* mub =
new G4MuBremsstrahlung();
131 G4MuPairProduction* mup =
new G4MuPairProduction();
132 G4hBremsstrahlung* pib =
new G4hBremsstrahlung();
133 G4hPairProduction* pip =
new G4hPairProduction();
134 G4hBremsstrahlung* kb =
new G4hBremsstrahlung();
135 G4hPairProduction*
kp =
new G4hPairProduction();
136 G4hBremsstrahlung* pb =
new G4hBremsstrahlung();
137 G4hPairProduction*
pp =
new G4hPairProduction();
139 G4hMultipleScattering* hmsc =
new G4hMultipleScattering(
"ionmsc");
146 aParticleIterator->reset();
147 while( (*aParticleIterator)() ){
148 G4ParticleDefinition* particle = aParticleIterator->value();
149 G4ProcessManager* pmanager = particle->GetProcessManager();
150 G4String particleName = particle->GetParticleName();
152 G4cout <<
"### " << GetPhysicsName() <<
" instantiates for "
153 << particleName <<
" at " << particle << G4endl;
155 if (particleName ==
"gamma") {
157 pmanager->AddDiscreteProcess(
new G4PhotoElectricEffect);
158 pmanager->AddDiscreteProcess(
new G4ComptonScattering);
159 pmanager->AddDiscreteProcess(
new G4GammaConversion());
161 }
else if (particleName ==
"e-") {
163 G4eIonisation* eioni =
new G4eIonisation();
164 eioni->SetStepFunction(0.8, 1.0*mm);
165 G4eMultipleScattering*
msc =
new G4eMultipleScattering;
166 msc->SetStepLimitType(fMinimal);
169 G4eBremsstrahlung* ebrem =
new G4eBremsstrahlung();
171 pmanager->AddProcess(msc, -1, 1, 1);
172 pmanager->AddProcess(eioni, -1, 2, 2);
173 pmanager->AddProcess(ebrem, -1,-3, 3);
175 }
else if (particleName ==
"e+") {
177 G4eIonisation* eioni =
new G4eIonisation();
178 eioni->SetStepFunction(0.8, 1.0*mm);
179 G4eMultipleScattering* msc =
new G4eMultipleScattering;
180 msc->SetStepLimitType(fMinimal);
183 G4eBremsstrahlung* ebrem =
new G4eBremsstrahlung();
185 pmanager->AddProcess(msc, -1, 1, 1);
186 pmanager->AddProcess(eioni, -1, 2, 2);
187 pmanager->AddProcess(ebrem, -1,-3, 3);
188 pmanager->AddProcess(
new G4eplusAnnihilation, 0,-1, 4);
190 }
else if (particleName ==
"mu+" ||
191 particleName ==
"mu-" ) {
193 G4MuMultipleScattering* mumsc =
new G4MuMultipleScattering();
194 mumsc->AddEmModel(0,
new G4WentzelVIModel());
195 pmanager->AddProcess(mumsc, -1, 1, 1);
196 pmanager->AddProcess(
new G4MuIonisation, -1, 2, 2);
197 pmanager->AddProcess(mub, -1,-3, 3);
198 pmanager->AddProcess(mup, -1,-4, 4);
199 pmanager->AddProcess(
new G4CoulombScattering, -1,-4, 5);
201 }
else if (particleName ==
"alpha" ||
202 particleName ==
"He3" ||
203 particleName ==
"GenericIon") {
205 pmanager->AddProcess(hmsc, -1, 1, 1);
206 pmanager->AddProcess(
new G4ionIonisation, -1, 2, 2);
208 }
else if (particleName ==
"pi+" ||
209 particleName ==
"pi-" ) {
211 pmanager->AddProcess(
new G4hMultipleScattering, -1, 1, 1);
212 pmanager->AddProcess(
new G4hIonisation, -1, 2, 2);
213 pmanager->AddProcess(pib, -1,-3, 3);
214 pmanager->AddProcess(pip, -1,-4, 4);
216 }
else if (particleName ==
"kaon+" ||
217 particleName ==
"kaon-" ) {
219 pmanager->AddProcess(
new G4hMultipleScattering, -1, 1, 1);
220 pmanager->AddProcess(
new G4hIonisation, -1, 2, 2);
221 pmanager->AddProcess(kb, -1,-3, 3);
222 pmanager->AddProcess(kp, -1,-4, 4);
224 }
else if (particleName ==
"proton" ||
225 particleName ==
"anti_proton" ) {
227 pmanager->AddProcess(
new G4hMultipleScattering, -1, 1, 1);
228 pmanager->AddProcess(
new G4hIonisation, -1, 2, 2);
229 pmanager->AddProcess(pb, -1,-3, 3);
230 pmanager->AddProcess(pp, -1,-4, 4);
232 }
else if (particleName ==
"B+" ||
233 particleName ==
"B-" ||
234 particleName ==
"D+" ||
235 particleName ==
"D-" ||
236 particleName ==
"Ds+" ||
237 particleName ==
"Ds-" ||
238 particleName ==
"anti_lambda_c+" ||
239 particleName ==
"anti_omega-" ||
240 particleName ==
"anti_sigma_c+" ||
241 particleName ==
"anti_sigma_c++" ||
242 particleName ==
"anti_sigma+" ||
243 particleName ==
"anti_sigma-" ||
244 particleName ==
"anti_xi_c+" ||
245 particleName ==
"anti_xi-" ||
246 particleName ==
"deuteron" ||
247 particleName ==
"lambda_c+" ||
248 particleName ==
"omega-" ||
249 particleName ==
"sigma_c+" ||
250 particleName ==
"sigma_c++" ||
251 particleName ==
"sigma+" ||
252 particleName ==
"sigma-" ||
253 particleName ==
"tau+" ||
254 particleName ==
"tau-" ||
255 particleName ==
"triton" ||
256 particleName ==
"xi_c+" ||
257 particleName ==
"xi-" ) {
259 pmanager->AddProcess(hmsc, -1, 1, 1);
260 pmanager->AddProcess(
new G4hIonisation, -1, 2, 2);
266 G4EmProcessOptions opt;
274 opt.SetApplyCuts(
true);