123 G4RegionStore* regStore = G4RegionStore::GetInstance();
124 reg = regStore->GetRegion(
region,
true);
127 aParticleIterator->reset();
128 while( (*aParticleIterator)() ){
129 G4ParticleDefinition* particle = aParticleIterator->value();
130 G4ProcessManager* pmanager = particle->GetProcessManager();
131 G4String particleName = particle->GetParticleName();
133 G4cout <<
"### " << GetPhysicsName() <<
" instantiates for "
134 << particleName <<
" at " << particle << G4endl;
136 if (particleName ==
"gamma") {
138 pmanager->AddDiscreteProcess(
new G4PhotoElectricEffect);
139 pmanager->AddDiscreteProcess(
new G4ComptonScattering);
140 pmanager->AddDiscreteProcess(
new G4GammaConversion);
142 }
else if (particleName ==
"e-") {
146 G4eMultipleScattering*
msc =
new G4eMultipleScattering;
147 msc->SetStepLimitType(fMinimal);
150 msc_el->SetRangeFactor(0.04);
151 msc->AddEmModel(0,msc_el,reg);
153 pmanager->AddProcess(msc, -1, 1, 1);
154 pmanager->AddProcess(
new G4hhIonisation, -1, 2, 2);
155 pmanager->AddProcess(
new G4eBremsstrahlung, -1,-3, 3);
157 }
else if (particleName ==
"e+") {
161 G4eMultipleScattering* msc =
new G4eMultipleScattering;
162 msc->SetStepLimitType(fMinimal);
165 msc_pos->SetRangeFactor(0.04);
166 msc->AddEmModel(0,msc_pos,reg);
168 pmanager->AddProcess(msc, -1, 1, 1);
169 pmanager->AddProcess(
new G4hhIonisation, -1, 2, 2);
170 pmanager->AddProcess(
new G4eBremsstrahlung, -1,-3, 3);
171 pmanager->AddProcess(
new G4eplusAnnihilation, 0,-1, 4);
173 }
else if (particleName ==
"mu+" ||
174 particleName ==
"mu-" ) {
176 pmanager->AddProcess(
new G4hMultipleScattering, -1, 1, 1);
177 pmanager->AddProcess(
new G4hhIonisation, -1, 2, 2);
178 pmanager->AddProcess(
new G4MuBremsstrahlung, -1,-3, 3);
179 pmanager->AddProcess(
new G4MuPairProduction, -1,-4, 4);
181 }
else if (particleName ==
"alpha" ||
182 particleName ==
"He3" ||
183 particleName ==
"GenericIon") {
185 pmanager->AddProcess(
new G4hMultipleScattering, -1, 1, 1);
186 pmanager->AddProcess(
new G4hhIonisation, -1, 2, 2);
188 }
else if (particleName ==
"pi+" ||
189 particleName ==
"kaon+" ||
190 particleName ==
"kaon-" ||
191 particleName ==
"proton" ||
192 particleName ==
"pi-" ) {
194 pmanager->AddProcess(
new G4hMultipleScattering, -1, 1, 1);
195 pmanager->AddProcess(
new G4hhIonisation, -1, 2, 2);
196 pmanager->AddProcess(
new G4hBremsstrahlung(), -1,-3, 3);
197 pmanager->AddProcess(
new G4hPairProduction(), -1,-4, 4);
199 }
else if (particleName ==
"B+" ||
200 particleName ==
"B-" ||
201 particleName ==
"D+" ||
202 particleName ==
"D-" ||
203 particleName ==
"Ds+" ||
204 particleName ==
"Ds-" ||
205 particleName ==
"anti_lambda_c+" ||
206 particleName ==
"anti_omega-" ||
207 particleName ==
"anti_proton" ||
208 particleName ==
"anti_sigma_c+" ||
209 particleName ==
"anti_sigma_c++" ||
210 particleName ==
"anti_sigma+" ||
211 particleName ==
"anti_sigma-" ||
212 particleName ==
"anti_xi_c+" ||
213 particleName ==
"anti_xi-" ||
214 particleName ==
"deuteron" ||
215 particleName ==
"lambda_c+" ||
216 particleName ==
"omega-" ||
217 particleName ==
"sigma_c+" ||
218 particleName ==
"sigma_c++" ||
219 particleName ==
"sigma+" ||
220 particleName ==
"sigma-" ||
221 particleName ==
"tau+" ||
222 particleName ==
"tau-" ||
223 particleName ==
"triton" ||
224 particleName ==
"xi_c+" ||
225 particleName ==
"xi-" ) {
227 pmanager->AddProcess(
new G4hMultipleScattering, -1, 1, 1);
228 pmanager->AddProcess(
new G4hhIonisation, -1, 2, 2);
234 G4EmProcessOptions opt;
238 opt.SetApplyCuts(
true);