126 G4RegionStore* regStore = G4RegionStore::GetInstance();
127 reg = regStore->GetRegion(
region,
true);
130 theParticleIterator->reset();
131 while( (*theParticleIterator)() ){
132 G4ParticleDefinition* particle = theParticleIterator->value();
133 G4ProcessManager* pmanager = particle->GetProcessManager();
134 G4String particleName = particle->GetParticleName();
136 G4cout <<
"### " << GetPhysicsName() <<
" instantiates for "
137 << particleName << G4endl;
139 if (particleName ==
"gamma") {
141 pmanager->AddDiscreteProcess(
new G4PhotoElectricEffect);
142 pmanager->AddDiscreteProcess(
new G4ComptonScattering);
143 pmanager->AddDiscreteProcess(
new G4GammaConversion);
145 }
else if (particleName ==
"e-") {
147 G4eIonisation* eioni =
new G4eIonisation();
148 eioni->SetStepFunction(0.8, 1.0*mm);
149 G4eMultipleScattering* msc =
new G4eMultipleScattering;
150 msc->SetStepLimitType(fMinimal);
152 G4UrbanMscModel93* msc_el =
new G4UrbanMscModel93();
153 msc_el->SetRangeFactor(0.04);
154 msc->AddEmModel(0,msc_el,reg);
156 pmanager->AddProcess(msc, -1, 1, 1);
157 pmanager->AddProcess(eioni, -1, 2, 2);
158 pmanager->AddProcess(
new G4eBremsstrahlung, -1,-3, 3);
160 pmanager->AddProcess(
new G4SynchrotronRadiation, -1,-1,4);
162 pmanager->AddProcess(
new G4SynchrotronRadiationInMat, -1,-1,4);
164 }
else if (particleName ==
"e+") {
166 G4eIonisation* eioni =
new G4eIonisation();
167 eioni->SetStepFunction(0.8, 1.0*mm);
168 G4eMultipleScattering* msc =
new G4eMultipleScattering;
169 msc->SetStepLimitType(fMinimal);
171 G4UrbanMscModel93* msc_pos =
new G4UrbanMscModel93();
172 msc_pos->SetRangeFactor(0.04);
173 msc->AddEmModel(0,msc_pos,reg);
175 pmanager->AddProcess(msc, -1, 1, 1);
176 pmanager->AddProcess(eioni, -1, 2, 2);
177 pmanager->AddProcess(
new G4eBremsstrahlung, -1,-3, 3);
179 pmanager->AddProcess(
new G4SynchrotronRadiation, -1,-1,5);
181 pmanager->AddProcess(
new G4SynchrotronRadiationInMat, -1,-1,5);
182 pmanager->AddProcess(
new G4eplusAnnihilation, 0,-1, 4);
184 }
else if (particleName ==
"mu+" ||
185 particleName ==
"mu-" ) {
187 pmanager->AddProcess(
new G4hMultipleScattering, -1, 1, 1);
188 pmanager->AddProcess(
new G4MuIonisation, -1, 2, 2);
189 pmanager->AddProcess(
new G4MuBremsstrahlung, -1,-3, 3);
190 pmanager->AddProcess(
new G4MuPairProduction, -1,-4, 4);
192 }
else if (particleName ==
"alpha" ||
193 particleName ==
"He3" ||
194 particleName ==
"GenericIon") {
196 pmanager->AddProcess(
new G4hMultipleScattering, -1, 1, 1);
197 pmanager->AddProcess(
new G4ionIonisation, -1, 2, 2);
199 }
else if (particleName ==
"pi+" ||
200 particleName ==
"kaon+" ||
201 particleName ==
"kaon-" ||
202 particleName ==
"proton" ||
203 particleName ==
"pi-" ) {
205 pmanager->AddProcess(
new G4hMultipleScattering, -1, 1, 1);
206 pmanager->AddProcess(
new G4hIonisation, -1, 2, 2);
207 pmanager->AddProcess(
new G4hBremsstrahlung(), -1,-3, 3);
208 pmanager->AddProcess(
new G4hPairProduction(), -1,-4, 4);
210 }
else if (particleName ==
"B+" ||
211 particleName ==
"B-" ||
212 particleName ==
"D+" ||
213 particleName ==
"D-" ||
214 particleName ==
"Ds+" ||
215 particleName ==
"Ds-" ||
216 particleName ==
"anti_lambda_c+" ||
217 particleName ==
"anti_omega-" ||
218 particleName ==
"anti_proton" ||
219 particleName ==
"anti_sigma_c+" ||
220 particleName ==
"anti_sigma_c++" ||
221 particleName ==
"anti_sigma+" ||
222 particleName ==
"anti_sigma-" ||
223 particleName ==
"anti_xi_c+" ||
224 particleName ==
"anti_xi-" ||
225 particleName ==
"deuteron" ||
226 particleName ==
"lambda_c+" ||
227 particleName ==
"omega-" ||
228 particleName ==
"sigma_c+" ||
229 particleName ==
"sigma_c++" ||
230 particleName ==
"sigma+" ||
231 particleName ==
"sigma-" ||
232 particleName ==
"tau+" ||
233 particleName ==
"tau-" ||
234 particleName ==
"triton" ||
235 particleName ==
"xi_c+" ||
236 particleName ==
"xi-" ) {
238 pmanager->AddProcess(
new G4hMultipleScattering, -1, 1, 1);
239 pmanager->AddProcess(
new G4hIonisation, -1, 2, 2);
245 G4EmProcessOptions opt;
249 opt.SetApplyCuts(
true);
253 opt.SetMinEnergy(100.*eV);
254 opt.SetMaxEnergy(10.*TeV);
255 opt.SetDEDXBinning(77);
256 opt.SetLambdaBinning(77);