134 G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
137 theParticleIterator->reset();
138 while( (*theParticleIterator)() ){
139 G4ParticleDefinition* particle = theParticleIterator->value();
140 G4String particleName = particle->GetParticleName();
142 G4cout <<
"### " << GetPhysicsName() <<
" instantiates for "
143 << particleName << G4endl;
145 if (particleName ==
"gamma") {
147 ph->RegisterProcess(
new G4PhotoElectricEffect(), particle);
148 ph->RegisterProcess(
new G4ComptonScattering(), particle);
149 G4GammaConversion*
conv =
new G4GammaConversion();
150 G4PairProductionRelModel*
mod =
new G4PairProductionRelModel();
151 mod->SetLowEnergyLimit(80*GeV);
152 conv->AddEmModel(0, mod);
153 ph->RegisterProcess(conv, particle);
155 }
else if (particleName ==
"e-") {
157 G4eIonisation* eioni =
new G4eIonisation();
158 eioni->SetStepFunction(0.8, 1.0*mm);
159 G4eMultipleScattering*
msc =
new G4eMultipleScattering();
160 msc->SetStepLimitType(fMinimal);
162 G4eBremsstrahlung* ebrem =
new G4eBremsstrahlung();
164 ph->RegisterProcess(msc, particle);
165 ph->RegisterProcess(eioni, particle);
166 ph->RegisterProcess(ebrem, particle);
168 }
else if (particleName ==
"e+") {
170 G4eIonisation* eioni =
new G4eIonisation();
171 eioni->SetStepFunction(0.8, 1.0*mm);
172 G4eMultipleScattering* msc =
new G4eMultipleScattering();
173 msc->SetStepLimitType(fMinimal);
175 G4eBremsstrahlung* ebrem =
new G4eBremsstrahlung();
177 ph->RegisterProcess(msc, particle);
178 ph->RegisterProcess(eioni, particle);
179 ph->RegisterProcess(ebrem, particle);
180 ph->RegisterProcess(
new G4eplusAnnihilation(), particle);
182 }
else if (particleName ==
"mu+" ||
183 particleName ==
"mu-" ) {
185 G4MuMultipleScattering* msc =
new G4MuMultipleScattering();
186 G4MuBremsstrahlung* mub =
new G4MuBremsstrahlung();
187 G4MuPairProduction* mup =
new G4MuPairProduction();
189 ph->RegisterProcess(msc, particle);
190 ph->RegisterProcess(
new G4MuIonisation(), particle);
191 ph->RegisterProcess(mub, particle);
192 ph->RegisterProcess(mup, particle);
194 }
else if (particleName ==
"alpha" ||
195 particleName ==
"He3" ) {
197 ph->RegisterProcess(
new G4hMultipleScattering(), particle);
198 ph->RegisterProcess(
new G4ionIonisation(), particle);
200 }
else if (particleName ==
"GenericIon") {
202 ph->RegisterProcess(
new G4hMultipleScattering(), particle);
203 ph->RegisterProcess(
new G4ionIonisation(), particle);
205 }
else if (particleName ==
"pi+" ||
206 particleName ==
"pi-" ) {
208 G4hBremsstrahlung* pib =
new G4hBremsstrahlung();
209 G4hPairProduction* pip =
new G4hPairProduction();
211 ph->RegisterProcess(
new G4hMultipleScattering(), particle);
212 ph->RegisterProcess(
new G4hIonisation(), particle);
213 ph->RegisterProcess(pib, particle);
214 ph->RegisterProcess(pip, particle);
216 }
else if (particleName ==
"kaon+" ||
217 particleName ==
"kaon-" ) {
219 G4hBremsstrahlung* kb =
new G4hBremsstrahlung();
220 G4hPairProduction*
kp =
new G4hPairProduction();
222 ph->RegisterProcess(
new G4hMultipleScattering(), particle);
223 ph->RegisterProcess(
new G4hIonisation(), particle);
224 ph->RegisterProcess(kb, particle);
225 ph->RegisterProcess(kp, particle);
227 }
else if (particleName ==
"proton" ) {
229 ph->RegisterProcess(
new G4hMultipleScattering(), particle);
230 ph->RegisterProcess(
new G4hIonisation(), particle);
231 ph->RegisterProcess(
new G4hBremsstrahlung(), particle);
232 ph->RegisterProcess(
new G4hPairProduction(), particle);
234 }
else if (particleName ==
"B+" ||
235 particleName ==
"B-" ||
236 particleName ==
"D+" ||
237 particleName ==
"D-" ||
238 particleName ==
"Ds+" ||
239 particleName ==
"Ds-" ||
240 particleName ==
"anti_He3" ||
241 particleName ==
"anti_alpha" ||
242 particleName ==
"anti_deuteron" ||
243 particleName ==
"anti_lambda_c+" ||
244 particleName ==
"anti_omega-" ||
245 particleName ==
"anti_proton" ||
246 particleName ==
"anti_sigma_c+" ||
247 particleName ==
"anti_sigma_c++" ||
248 particleName ==
"anti_sigma+" ||
249 particleName ==
"anti_sigma-" ||
250 particleName ==
"anti_triton" ||
251 particleName ==
"anti_xi_c+" ||
252 particleName ==
"anti_xi-" ||
253 particleName ==
"deuteron" ||
254 particleName ==
"lambda_c+" ||
255 particleName ==
"omega-" ||
256 particleName ==
"sigma_c+" ||
257 particleName ==
"sigma_c++" ||
258 particleName ==
"sigma+" ||
259 particleName ==
"sigma-" ||
260 particleName ==
"tau+" ||
261 particleName ==
"tau-" ||
262 particleName ==
"triton" ||
263 particleName ==
"xi_c+" ||
264 particleName ==
"xi-" ) {
266 ph->RegisterProcess(
new G4hMultipleScattering(), particle);
267 ph->RegisterProcess(
new G4hIonisation(), particle);
273 G4EmProcessOptions opt;
278 opt.SetApplyCuts(
true);
static HepMC::IO_HEPEVT conv
T mod(const T &a, const T &b)