127 theParticleIterator->reset();
128 while( (*theParticleIterator)() ){
129 G4ParticleDefinition* particle = theParticleIterator->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 G4GammaConversion*
conv =
new G4GammaConversion();
141 G4PairProductionRelModel*
mod =
new G4PairProductionRelModel();
142 mod->SetLowEnergyLimit(100*GeV);
143 conv->AddEmModel(0, mod);
144 pmanager->AddDiscreteProcess(conv);
146 }
else if (particleName ==
"e-") {
148 G4eIonisation* eioni =
new G4eIonisation();
149 eioni->SetStepFunction(0.8, 1.0*mm);
150 G4eMultipleScattering* msc =
new G4eMultipleScattering;
151 msc->SetStepLimitType(fMinimal);
152 msc->AddEmModel(0,
new CMSUrbanMscModel93());
154 G4eBremsstrahlung* ebrem =
new G4eBremsstrahlung();
155 ebrem->SetEmModel(
new G4SeltzerBergerModel95(), 1);
156 ebrem->SetEmModel(
new G4eBremsstrahlungRelModel95(), 2);
157 ebrem->EmModel(2)->SetLowEnergyLimit(GeV);
159 pmanager->AddProcess(msc, -1, 1, 1);
160 pmanager->AddProcess(eioni, -1, 2, 2);
161 pmanager->AddProcess(ebrem, -1,-3, 3);
163 }
else if (particleName ==
"e+") {
165 G4eIonisation* eioni =
new G4eIonisation();
166 eioni->SetStepFunction(0.8, 1.0*mm);
167 G4eMultipleScattering* msc =
new G4eMultipleScattering;
168 msc->SetStepLimitType(fMinimal);
169 msc->AddEmModel(0,
new CMSUrbanMscModel93());
171 G4eBremsstrahlung* ebrem =
new G4eBremsstrahlung();
172 ebrem->SetEmModel(
new G4SeltzerBergerModel95(), 1);
173 ebrem->SetEmModel(
new G4eBremsstrahlungRelModel95(), 2);
174 ebrem->EmModel(2)->SetLowEnergyLimit(GeV);
176 pmanager->AddProcess(msc, -1, 1, 1);
177 pmanager->AddProcess(eioni, -1, 2, 2);
178 pmanager->AddProcess(ebrem, -1,-3, 3);
179 pmanager->AddProcess(
new G4eplusAnnihilation, 0,-1, 4);
181 }
else if (particleName ==
"mu+" ||
182 particleName ==
"mu-" ) {
184 pmanager->AddProcess(
new G4hMultipleScattering, -1, 1, 1);
185 pmanager->AddProcess(
new G4MuIonisation, -1, 2, 2);
186 pmanager->AddProcess(
new G4MuBremsstrahlung, -1,-3, 3);
187 pmanager->AddProcess(
new G4MuPairProduction, -1,-4, 4);
189 }
else if (particleName ==
"alpha" ||
190 particleName ==
"He3" ||
191 particleName ==
"GenericIon") {
193 pmanager->AddProcess(
new G4hMultipleScattering, -1, 1, 1);
194 pmanager->AddProcess(
new G4ionIonisation, -1, 2, 2);
196 }
else if (particleName ==
"pi+" ||
197 particleName ==
"kaon+" ||
198 particleName ==
"kaon-" ||
199 particleName ==
"proton" ||
200 particleName ==
"pi-" ) {
202 pmanager->AddProcess(
new G4hMultipleScattering, -1, 1, 1);
203 pmanager->AddProcess(
new G4hIonisation, -1, 2, 2);
204 pmanager->AddProcess(
new G4hBremsstrahlung(), -1,-3, 3);
205 pmanager->AddProcess(
new G4hPairProduction(), -1,-4, 4);
207 }
else if (particleName ==
"B+" ||
208 particleName ==
"B-" ||
209 particleName ==
"D+" ||
210 particleName ==
"D-" ||
211 particleName ==
"Ds+" ||
212 particleName ==
"Ds-" ||
213 particleName ==
"anti_lambda_c+" ||
214 particleName ==
"anti_omega-" ||
215 particleName ==
"anti_proton" ||
216 particleName ==
"anti_sigma_c+" ||
217 particleName ==
"anti_sigma_c++" ||
218 particleName ==
"anti_sigma+" ||
219 particleName ==
"anti_sigma-" ||
220 particleName ==
"anti_xi_c+" ||
221 particleName ==
"anti_xi-" ||
222 particleName ==
"deuteron" ||
223 particleName ==
"lambda_c+" ||
224 particleName ==
"omega-" ||
225 particleName ==
"sigma_c+" ||
226 particleName ==
"sigma_c++" ||
227 particleName ==
"sigma+" ||
228 particleName ==
"sigma-" ||
229 particleName ==
"tau+" ||
230 particleName ==
"tau-" ||
231 particleName ==
"triton" ||
232 particleName ==
"xi_c+" ||
233 particleName ==
"xi-" ) {
235 pmanager->AddProcess(
new G4hMultipleScattering, -1, 1, 1);
236 pmanager->AddProcess(
new G4hIonisation, -1, 2, 2);
242 G4EmProcessOptions opt;
246 opt.SetApplyCuts(
true);
250 opt.SetMinEnergy(100.*eV);
251 opt.SetMaxEnergy(10.*TeV);
252 opt.SetDEDXBinning(77);
253 opt.SetLambdaBinning(77);
static HepMC::IO_HEPEVT conv
list mod
Load physics model.