6 #include "G4EmParameters.hh"
7 #include "G4ParticleTable.hh"
9 #include "G4ParticleDefinition.hh"
10 #include "G4LossTableManager.hh"
11 #include "G4EmParameters.hh"
13 #include "G4ComptonScattering.hh"
14 #include "G4GammaConversion.hh"
15 #include "G4PhotoElectricEffect.hh"
16 #include "G4LivermorePhotoElectricModel.hh"
17 #include "G4KleinNishinaModel.hh"
19 #include "G4hMultipleScattering.hh"
20 #include "G4eMultipleScattering.hh"
21 #include "G4MuMultipleScattering.hh"
22 #include "G4CoulombScattering.hh"
23 #include "G4eCoulombScatteringModel.hh"
24 #include "G4WentzelVIModel.hh"
25 #include "G4UrbanMscModel.hh"
26 #include "G4GoudsmitSaundersonMscModel.hh"
27 #include "G4MscStepLimitType.hh"
29 #include "G4eIonisation.hh"
30 #include "G4eBremsstrahlung.hh"
31 #include "G4eplusAnnihilation.hh"
32 #include "G4Generator2BS.hh"
33 #include "G4SeltzerBergerModel.hh"
35 #include "G4MuIonisation.hh"
36 #include "G4MuBremsstrahlung.hh"
37 #include "G4MuPairProduction.hh"
39 #include "G4MuBremsstrahlungModel.hh"
40 #include "G4MuPairProductionModel.hh"
41 #include "G4hBremsstrahlungModel.hh"
42 #include "G4hPairProductionModel.hh"
43 #include "G4ePairProduction.hh"
45 #include "G4hIonisation.hh"
46 #include "G4ionIonisation.hh"
47 #include "G4hBremsstrahlung.hh"
48 #include "G4hPairProduction.hh"
49 #include "G4UAtomicDeexcitation.hh"
51 #include "G4NuclearStopping.hh"
54 #include "G4Electron.hh"
55 #include "G4Positron.hh"
56 #include "G4MuonPlus.hh"
57 #include "G4MuonMinus.hh"
58 #include "G4TauMinus.hh"
59 #include "G4TauPlus.hh"
60 #include "G4PionPlus.hh"
61 #include "G4PionMinus.hh"
62 #include "G4KaonPlus.hh"
63 #include "G4KaonMinus.hh"
64 #include "G4BMesonMinus.hh"
65 #include "G4BMesonPlus.hh"
66 #include "G4DMesonMinus.hh"
67 #include "G4DMesonPlus.hh"
68 #include "G4Proton.hh"
69 #include "G4AntiProton.hh"
70 #include "G4SigmaMinus.hh"
71 #include "G4AntiSigmaMinus.hh"
72 #include "G4SigmaPlus.hh"
73 #include "G4AntiSigmaPlus.hh"
74 #include "G4XiMinus.hh"
75 #include "G4AntiXiMinus.hh"
76 #include "G4OmegaMinus.hh"
77 #include "G4AntiOmegaMinus.hh"
78 #include "G4LambdacPlus.hh"
79 #include "G4AntiLambdacPlus.hh"
80 #include "G4XicPlus.hh"
81 #include "G4AntiXicPlus.hh"
82 #include "G4Deuteron.hh"
83 #include "G4Triton.hh"
86 #include "G4GenericIon.hh"
88 #include "G4PhysicsListHelper.hh"
89 #include "G4BuilderType.hh"
90 #include "G4RegionStore.hh"
91 #include "G4Region.hh"
93 #include "G4SystemOfUnits.hh"
96 G4EmParameters* param = G4EmParameters::Instance();
99 param->SetApplyCuts(
true);
100 param->SetLowestElectronEnergy(100 * eV);
101 param->SetStepFunction(0.8, 1 * CLHEP::mm);
102 param->SetUseMottCorrection(
true);
103 param->SetMscRangeFactor(0.2);
104 param->SetMscStepLimitType(fMinimal);
105 param->SetFluo(
true);
106 SetPhysicsType(bElectromagnetic);
117 G4Positron::Positron();
118 G4MuonPlus::MuonPlus();
119 G4MuonMinus::MuonMinus();
120 G4TauMinus::TauMinusDefinition();
121 G4TauPlus::TauPlusDefinition();
124 G4PionPlus::PionPlusDefinition();
125 G4PionMinus::PionMinusDefinition();
126 G4KaonPlus::KaonPlusDefinition();
127 G4KaonMinus::KaonMinusDefinition();
128 G4DMesonMinus::DMesonMinusDefinition();
129 G4DMesonPlus::DMesonPlusDefinition();
130 G4BMesonMinus::BMesonMinusDefinition();
131 G4BMesonPlus::BMesonPlusDefinition();
135 G4AntiProton::AntiProton();
136 G4SigmaMinus::SigmaMinusDefinition();
137 G4AntiSigmaMinus::AntiSigmaMinusDefinition();
138 G4SigmaPlus::SigmaPlusDefinition();
139 G4AntiSigmaPlus::AntiSigmaPlusDefinition();
140 G4XiMinus::XiMinusDefinition();
141 G4AntiXiMinus::AntiXiMinusDefinition();
142 G4OmegaMinus::OmegaMinusDefinition();
143 G4AntiOmegaMinus::AntiOmegaMinusDefinition();
144 G4LambdacPlus::LambdacPlusDefinition();
145 G4AntiLambdacPlus::AntiLambdacPlusDefinition();
146 G4XicPlus::XicPlusDefinition();
147 G4AntiXicPlus::AntiXicPlusDefinition();
150 G4Deuteron::Deuteron();
154 G4GenericIon::GenericIonDefinition();
159 edm::LogVerbatim(
"PhysicsList") <<
"### " << GetPhysicsName() <<
" Construct Processes";
166 G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
169 G4MuBremsstrahlung* mub =
nullptr;
170 G4MuPairProduction* mup =
nullptr;
171 G4hBremsstrahlung* pib =
nullptr;
172 G4hPairProduction* pip =
nullptr;
173 G4hBremsstrahlung* kb =
nullptr;
174 G4hPairProduction*
kp =
nullptr;
175 G4hBremsstrahlung* pb =
nullptr;
176 G4hPairProduction*
pp =
nullptr;
177 G4ePairProduction* ee =
nullptr;
180 G4MuMultipleScattering* mumsc =
nullptr;
181 G4hMultipleScattering* pimsc =
nullptr;
182 G4hMultipleScattering* kmsc =
nullptr;
183 G4hMultipleScattering* hmsc =
nullptr;
186 G4CoulombScattering* muss =
nullptr;
187 G4CoulombScattering* piss =
nullptr;
188 G4CoulombScattering* kss =
nullptr;
191 G4double highEnergyLimit = 100 *
MeV;
194 G4NuclearStopping* pnuc =
nullptr;
196 G4Region* aRegion = G4RegionStore::GetInstance()->GetRegion(
"HcalRegion",
false);
197 G4Region* bRegion = G4RegionStore::GetInstance()->GetRegion(
"HGCalRegion",
false);
199 edm::LogVerbatim(
"PhysicsList") <<
"CMSEmStandardPhysicsLPM: HcalRegion " << aRegion <<
"; HGCalRegion " << bRegion;
202 G4ParticleTable*
table = G4ParticleTable::GetParticleTable();
208 G4PhotoElectricEffect* photo =
new G4PhotoElectricEffect();
209 photo->SetEmModel(
new G4LivermorePhotoElectricModel());
210 ph->RegisterProcess(photo, particle);
211 G4ComptonScattering* compt =
new G4ComptonScattering();
212 compt->SetEmModel(
new G4KleinNishinaModel());
213 ph->RegisterProcess(compt, particle);
214 ph->RegisterProcess(
new G4GammaConversion(), particle);
217 G4eIonisation* eioni =
new G4eIonisation();
219 G4eMultipleScattering* msc =
new G4eMultipleScattering;
220 G4UrbanMscModel* msc1 =
new G4UrbanMscModel();
221 G4WentzelVIModel* msc2 =
new G4WentzelVIModel();
222 G4GoudsmitSaundersonMscModel* msc3 =
new G4GoudsmitSaundersonMscModel();
223 msc3->SetStepLimitType(fUseSafetyPlus);
224 msc3->SetRangeFactor(0.08);
226 msc1->SetHighEnergyLimit(highEnergyLimit);
227 msc2->SetLowEnergyLimit(highEnergyLimit);
228 msc3->SetHighEnergyLimit(highEnergyLimit);
229 msc3->SetLocked(
true);
230 msc->SetEmModel(msc1);
231 msc->SetEmModel(msc2);
233 msc->AddEmModel(-1, msc3, aRegion);
235 msc->AddEmModel(-1, msc3, bRegion);
237 G4eCoulombScatteringModel* ssm =
new G4eCoulombScatteringModel();
238 G4CoulombScattering*
ss =
new G4CoulombScattering();
240 ss->SetMinKinEnergy(highEnergyLimit);
241 ssm->SetLowEnergyLimit(highEnergyLimit);
242 ssm->SetActivationLowEnergyLimit(highEnergyLimit);
245 G4eBremsstrahlung* brem =
new G4eBremsstrahlung();
246 G4SeltzerBergerModel* br1 =
new G4SeltzerBergerModel();
247 G4eBremsstrahlungRelModel* br2 =
new G4eBremsstrahlungRelModel();
248 br1->SetAngularDistribution(
new G4Generator2BS());
249 br2->SetAngularDistribution(
new G4Generator2BS());
250 brem->SetEmModel(br1);
251 brem->SetEmModel(br2);
252 br1->SetHighEnergyLimit(
GeV);
255 ee =
new G4ePairProduction();
258 ph->RegisterProcess(msc, particle);
259 ph->RegisterProcess(eioni, particle);
260 ph->RegisterProcess(brem, particle);
261 ph->RegisterProcess(ee, particle);
262 ph->RegisterProcess(
ss, particle);
265 G4eIonisation* eioni =
new G4eIonisation();
267 G4eMultipleScattering* msc =
new G4eMultipleScattering;
268 G4UrbanMscModel* msc1 =
new G4UrbanMscModel();
269 G4WentzelVIModel* msc2 =
new G4WentzelVIModel();
270 G4GoudsmitSaundersonMscModel* msc3 =
new G4GoudsmitSaundersonMscModel();
271 msc3->SetStepLimitType(fUseSafetyPlus);
272 msc3->SetRangeFactor(0.08);
274 msc1->SetHighEnergyLimit(highEnergyLimit);
275 msc2->SetLowEnergyLimit(highEnergyLimit);
276 msc3->SetHighEnergyLimit(highEnergyLimit);
277 msc3->SetLocked(
true);
278 msc->SetEmModel(msc1);
279 msc->SetEmModel(msc2);
281 msc->AddEmModel(-1, msc3, aRegion);
283 msc->AddEmModel(-1, msc3, bRegion);
285 G4eCoulombScatteringModel* ssm =
new G4eCoulombScatteringModel();
286 G4CoulombScattering*
ss =
new G4CoulombScattering();
288 ss->SetMinKinEnergy(highEnergyLimit);
289 ssm->SetLowEnergyLimit(highEnergyLimit);
290 ssm->SetActivationLowEnergyLimit(highEnergyLimit);
293 G4eBremsstrahlung* brem =
new G4eBremsstrahlung();
294 G4SeltzerBergerModel* br1 =
new G4SeltzerBergerModel();
295 G4eBremsstrahlungRelModel* br2 =
new G4eBremsstrahlungRelModel();
296 br1->SetAngularDistribution(
new G4Generator2BS());
297 br2->SetAngularDistribution(
new G4Generator2BS());
298 brem->SetEmModel(br1);
299 brem->SetEmModel(br2);
300 br1->SetHighEnergyLimit(
GeV);
303 ee =
new G4ePairProduction();
306 ph->RegisterProcess(msc, particle);
307 ph->RegisterProcess(eioni, particle);
308 ph->RegisterProcess(brem, particle);
309 ph->RegisterProcess(
new G4eplusAnnihilation(), particle);
310 ph->RegisterProcess(ee, particle);
311 ph->RegisterProcess(
ss, particle);
314 if (
nullptr == mub) {
315 mub =
new G4MuBremsstrahlung();
316 mup =
new G4MuPairProduction();
317 mumsc =
new G4MuMultipleScattering();
318 mumsc->SetEmModel(
new G4WentzelVIModel());
319 muss =
new G4CoulombScattering();
321 ph->RegisterProcess(mumsc, particle);
322 ph->RegisterProcess(
new G4MuIonisation(), particle);
323 ph->RegisterProcess(mub, particle);
324 ph->RegisterProcess(mup, particle);
325 ph->RegisterProcess(muss, particle);
329 pnuc =
new G4NuclearStopping();
332 ph->RegisterProcess(
new G4hMultipleScattering(), particle);
333 ph->RegisterProcess(
new G4ionIonisation(), particle);
334 ph->RegisterProcess(pnuc, particle);
337 if (
nullptr == hmsc) {
338 hmsc =
new G4hMultipleScattering(
"ionmsc");
341 pnuc =
new G4NuclearStopping();
343 ph->RegisterProcess(hmsc, particle);
344 ph->RegisterProcess(
new G4ionIonisation(), particle);
345 ph->RegisterProcess(pnuc, particle);
348 if (
nullptr == pib) {
349 pib =
new G4hBremsstrahlung();
350 pip =
new G4hPairProduction();
351 pimsc =
new G4hMultipleScattering();
352 pimsc->SetEmModel(
new G4WentzelVIModel());
353 piss =
new G4CoulombScattering();
355 ph->RegisterProcess(pimsc, particle);
356 ph->RegisterProcess(
new G4hIonisation(), particle);
357 ph->RegisterProcess(pib, particle);
358 ph->RegisterProcess(pip, particle);
359 ph->RegisterProcess(piss, particle);
363 kb =
new G4hBremsstrahlung();
364 kp =
new G4hPairProduction();
365 kmsc =
new G4hMultipleScattering();
366 kmsc->SetEmModel(
new G4WentzelVIModel());
367 kss =
new G4CoulombScattering();
369 ph->RegisterProcess(kmsc, particle);
370 ph->RegisterProcess(
new G4hIonisation(), particle);
371 ph->RegisterProcess(kb, particle);
372 ph->RegisterProcess(
kp, particle);
373 ph->RegisterProcess(kss, particle);
377 pb =
new G4hBremsstrahlung();
378 pp =
new G4hPairProduction();
381 pnuc =
new G4NuclearStopping();
384 G4hMultipleScattering* pmsc =
new G4hMultipleScattering();
385 pmsc->SetEmModel(
new G4WentzelVIModel());
386 G4hIonisation* hIoni =
new G4hIonisation();
387 G4CoulombScattering*
pss =
new G4CoulombScattering();
389 ph->RegisterProcess(pmsc, particle);
390 ph->RegisterProcess(hIoni, particle);
391 ph->RegisterProcess(pb, particle);
392 ph->RegisterProcess(
pp, particle);
393 ph->RegisterProcess(
pss, particle);
395 }
else if (particle->GetPDGCharge() != 0.0) {
396 if (
nullptr == hmsc) {
397 hmsc =
new G4hMultipleScattering(
"ionmsc");
399 ph->RegisterProcess(hmsc, particle);
400 ph->RegisterProcess(
new G4hIonisation(), particle);
404 pnuc->SetMaxKinEnergy(
MeV);
408 G4VAtomDeexcitation* de =
new G4UAtomicDeexcitation();
409 G4LossTableManager::Instance()->SetAtomDeexcitation(de);