121 G4RegionStore* regStore = G4RegionStore::GetInstance();
122 reg = regStore->GetRegion(
region,
true);
125 theParticleIterator->reset();
126 while( (*theParticleIterator)() ){
127 G4ParticleDefinition* particle = theParticleIterator->value();
128 G4ProcessManager* pmanager = particle->GetProcessManager();
129 G4String particleName = particle->GetParticleName();
131 G4cout <<
"### " << GetPhysicsName() <<
" instantiates for "
132 << particleName <<
" at " << particle << G4endl;
134 if (particleName ==
"gamma") {
136 pmanager->AddDiscreteProcess(
new G4PhotoElectricEffect);
137 pmanager->AddDiscreteProcess(
new G4ComptonScattering);
138 pmanager->AddDiscreteProcess(
new G4GammaConversion);
140 }
else if (particleName ==
"e-") {
144 G4eMultipleScattering*
msc =
new G4eMultipleScattering;
145 msc->SetStepLimitType(fMinimal);
147 G4UrbanMscModel93* msc_el =
new G4UrbanMscModel93();
148 msc_el->SetRangeFactor(0.04);
149 msc->AddEmModel(0,msc_el,reg);
151 pmanager->AddProcess(msc, -1, 1, 1);
152 pmanager->AddProcess(
new G4hhIonisation, -1, 2, 2);
153 pmanager->AddProcess(
new G4eBremsstrahlung, -1,-3, 3);
155 }
else if (particleName ==
"e+") {
159 G4eMultipleScattering* msc =
new G4eMultipleScattering;
160 msc->SetStepLimitType(fMinimal);
162 G4UrbanMscModel93* msc_pos =
new G4UrbanMscModel93();
163 msc_pos->SetRangeFactor(0.04);
164 msc->AddEmModel(0,msc_pos,reg);
166 pmanager->AddProcess(msc, -1, 1, 1);
167 pmanager->AddProcess(
new G4hhIonisation, -1, 2, 2);
168 pmanager->AddProcess(
new G4eBremsstrahlung, -1,-3, 3);
169 pmanager->AddProcess(
new G4eplusAnnihilation, 0,-1, 4);
171 }
else if (particleName ==
"mu+" ||
172 particleName ==
"mu-" ) {
174 pmanager->AddProcess(
new G4hMultipleScattering, -1, 1, 1);
175 pmanager->AddProcess(
new G4hhIonisation, -1, 2, 2);
176 pmanager->AddProcess(
new G4MuBremsstrahlung, -1,-3, 3);
177 pmanager->AddProcess(
new G4MuPairProduction, -1,-4, 4);
179 }
else if (particleName ==
"alpha" ||
180 particleName ==
"He3" ||
181 particleName ==
"GenericIon") {
183 pmanager->AddProcess(
new G4hMultipleScattering, -1, 1, 1);
184 pmanager->AddProcess(
new G4hhIonisation, -1, 2, 2);
186 }
else if (particleName ==
"pi+" ||
187 particleName ==
"kaon+" ||
188 particleName ==
"kaon-" ||
189 particleName ==
"proton" ||
190 particleName ==
"pi-" ) {
192 pmanager->AddProcess(
new G4hMultipleScattering, -1, 1, 1);
193 pmanager->AddProcess(
new G4hhIonisation, -1, 2, 2);
194 pmanager->AddProcess(
new G4hBremsstrahlung(), -1,-3, 3);
195 pmanager->AddProcess(
new G4hPairProduction(), -1,-4, 4);
197 }
else if (particleName ==
"B+" ||
198 particleName ==
"B-" ||
199 particleName ==
"D+" ||
200 particleName ==
"D-" ||
201 particleName ==
"Ds+" ||
202 particleName ==
"Ds-" ||
203 particleName ==
"anti_lambda_c+" ||
204 particleName ==
"anti_omega-" ||
205 particleName ==
"anti_proton" ||
206 particleName ==
"anti_sigma_c+" ||
207 particleName ==
"anti_sigma_c++" ||
208 particleName ==
"anti_sigma+" ||
209 particleName ==
"anti_sigma-" ||
210 particleName ==
"anti_xi_c+" ||
211 particleName ==
"anti_xi-" ||
212 particleName ==
"deuteron" ||
213 particleName ==
"lambda_c+" ||
214 particleName ==
"omega-" ||
215 particleName ==
"sigma_c+" ||
216 particleName ==
"sigma_c++" ||
217 particleName ==
"sigma+" ||
218 particleName ==
"sigma-" ||
219 particleName ==
"tau+" ||
220 particleName ==
"tau-" ||
221 particleName ==
"triton" ||
222 particleName ==
"xi_c+" ||
223 particleName ==
"xi-" ) {
225 pmanager->AddProcess(
new G4hMultipleScattering, -1, 1, 1);
226 pmanager->AddProcess(
new G4hhIonisation, -1, 2, 2);
232 G4EmProcessOptions opt;
236 opt.SetApplyCuts(
true);
240 opt.SetMinEnergy(100.*eV);
241 opt.SetMaxEnergy(10.*TeV);
242 opt.SetDEDXBinning(77);
243 opt.SetLambdaBinning(77);