124 theParticleIterator->reset();
125 while( (*theParticleIterator)() ){
126 G4ParticleDefinition* particle = theParticleIterator->value();
127 G4ProcessManager* pmanager = particle->GetProcessManager();
128 G4String particleName = particle->GetParticleName();
130 G4cout <<
"### " << GetPhysicsName() <<
" instantiates for "
131 << particleName <<
" at " << particle << G4endl;
133 if (particleName ==
"gamma") {
135 pmanager->AddDiscreteProcess(
new G4PhotoElectricEffect);
136 pmanager->AddDiscreteProcess(
new G4ComptonScattering);
137 G4GammaConversion*
conv =
new G4GammaConversion();
138 G4PairProductionRelModel*
mod =
new G4PairProductionRelModel();
139 mod->SetLowEnergyLimit(80*GeV);
140 conv->AddEmModel(0, mod);
141 pmanager->AddDiscreteProcess(conv);
143 }
else if (particleName ==
"e-") {
145 G4eIonisation* eioni =
new G4eIonisation();
146 eioni->SetStepFunction(0.8, 1.0*mm);
147 G4eMultipleScattering* msc =
new G4eMultipleScattering;
148 msc->SetStepLimitType(fMinimal);
149 msc->AddEmModel(0,
new G4UrbanMscModel93());
151 G4eBremsstrahlung* ebrem =
new G4eBremsstrahlung();
153 pmanager->AddProcess(msc, -1, 1, 1);
154 pmanager->AddProcess(eioni, -1, 2, 2);
155 pmanager->AddProcess(ebrem, -1,-3, 3);
157 }
else if (particleName ==
"e+") {
159 G4eIonisation* eioni =
new G4eIonisation();
160 eioni->SetStepFunction(0.8, 1.0*mm);
161 G4eMultipleScattering* msc =
new G4eMultipleScattering;
162 msc->SetStepLimitType(fMinimal);
163 msc->AddEmModel(0,
new G4UrbanMscModel93());
165 G4eBremsstrahlung* ebrem =
new G4eBremsstrahlung();
167 pmanager->AddProcess(msc, -1, 1, 1);
168 pmanager->AddProcess(eioni, -1, 2, 2);
169 pmanager->AddProcess(ebrem, -1,-3, 3);
170 pmanager->AddProcess(
new G4eplusAnnihilation, 0,-1, 4);
172 }
else if (particleName ==
"mu+" ||
173 particleName ==
"mu-" ) {
175 pmanager->AddProcess(
new G4hMultipleScattering, -1, 1, 1);
176 pmanager->AddProcess(
new G4MuIonisation, -1, 2, 2);
177 pmanager->AddProcess(
new G4MuBremsstrahlung, -1,-3, 3);
178 pmanager->AddProcess(
new G4MuPairProduction, -1,-4, 4);
180 }
else if (particleName ==
"alpha" ||
181 particleName ==
"He3" ||
182 particleName ==
"GenericIon") {
184 pmanager->AddProcess(
new G4hMultipleScattering, -1, 1, 1);
185 pmanager->AddProcess(
new G4ionIonisation, -1, 2, 2);
187 }
else if (particleName ==
"pi+" ||
188 particleName ==
"kaon+" ||
189 particleName ==
"kaon-" ||
190 particleName ==
"proton" ||
191 particleName ==
"pi-" ) {
193 pmanager->AddProcess(
new G4hMultipleScattering, -1, 1, 1);
194 pmanager->AddProcess(
new G4hIonisation, -1, 2, 2);
195 pmanager->AddProcess(
new G4hBremsstrahlung(), -1,-3, 3);
196 pmanager->AddProcess(
new G4hPairProduction(), -1,-4, 4);
198 }
else if (particleName ==
"B+" ||
199 particleName ==
"B-" ||
200 particleName ==
"D+" ||
201 particleName ==
"D-" ||
202 particleName ==
"Ds+" ||
203 particleName ==
"Ds-" ||
204 particleName ==
"anti_lambda_c+" ||
205 particleName ==
"anti_omega-" ||
206 particleName ==
"anti_proton" ||
207 particleName ==
"anti_sigma_c+" ||
208 particleName ==
"anti_sigma_c++" ||
209 particleName ==
"anti_sigma+" ||
210 particleName ==
"anti_sigma-" ||
211 particleName ==
"anti_xi_c+" ||
212 particleName ==
"anti_xi-" ||
213 particleName ==
"deuteron" ||
214 particleName ==
"lambda_c+" ||
215 particleName ==
"omega-" ||
216 particleName ==
"sigma_c+" ||
217 particleName ==
"sigma_c++" ||
218 particleName ==
"sigma+" ||
219 particleName ==
"sigma-" ||
220 particleName ==
"tau+" ||
221 particleName ==
"tau-" ||
222 particleName ==
"triton" ||
223 particleName ==
"xi_c+" ||
224 particleName ==
"xi-" ) {
226 pmanager->AddProcess(
new G4hMultipleScattering, -1, 1, 1);
227 pmanager->AddProcess(
new G4hIonisation, -1, 2, 2);
233 G4EmProcessOptions opt;
238 opt.SetApplyCuts(
true);
242 opt.SetMinEnergy(100.*eV);
243 opt.SetMaxEnergy(10.*TeV);
244 opt.SetDEDXBinning(77);
245 opt.SetLambdaBinning(77);
static HepMC::IO_HEPEVT conv
T mod(const T &a, const T &b)