CMS 3D CMS Logo

CMSEmStandardPhysicsLPM.cc
Go to the documentation of this file.
3 #include "G4EmParameters.hh"
4 #include "G4ParticleTable.hh"
5 
6 #include "G4ParticleDefinition.hh"
7 #include "G4LossTableManager.hh"
8 
9 #include "G4ComptonScattering.hh"
10 #include "G4GammaConversion.hh"
11 #include "G4PhotoElectricEffect.hh"
12 
13 #include "G4hMultipleScattering.hh"
14 #include "G4eMultipleScattering.hh"
15 #include "G4MuMultipleScattering.hh"
16 #include "G4CoulombScattering.hh"
17 #include "G4eCoulombScatteringModel.hh"
18 #include "G4WentzelVIModel.hh"
19 #include "G4UrbanMscModel.hh"
20 
21 #include "G4eIonisation.hh"
22 #include "G4eBremsstrahlung.hh"
23 #include "G4eplusAnnihilation.hh"
24 #include "G4UAtomicDeexcitation.hh"
25 
26 #include "G4MuIonisation.hh"
27 #include "G4MuBremsstrahlung.hh"
28 #include "G4MuPairProduction.hh"
29 
30 #include "G4hIonisation.hh"
31 #include "G4ionIonisation.hh"
32 #include "G4hBremsstrahlung.hh"
33 #include "G4hPairProduction.hh"
34 
35 #include "G4Gamma.hh"
36 #include "G4Electron.hh"
37 #include "G4Positron.hh"
38 #include "G4MuonPlus.hh"
39 #include "G4MuonMinus.hh"
40 #include "G4TauMinus.hh"
41 #include "G4TauPlus.hh"
42 #include "G4PionPlus.hh"
43 #include "G4PionMinus.hh"
44 #include "G4KaonPlus.hh"
45 #include "G4KaonMinus.hh"
46 #include "G4BMesonMinus.hh"
47 #include "G4BMesonPlus.hh"
48 #include "G4DMesonMinus.hh"
49 #include "G4DMesonPlus.hh"
50 #include "G4Proton.hh"
51 #include "G4AntiProton.hh"
52 #include "G4SigmaMinus.hh"
53 #include "G4AntiSigmaMinus.hh"
54 #include "G4SigmaPlus.hh"
55 #include "G4AntiSigmaPlus.hh"
56 #include "G4XiMinus.hh"
57 #include "G4AntiXiMinus.hh"
58 #include "G4OmegaMinus.hh"
59 #include "G4AntiOmegaMinus.hh"
60 #include "G4LambdacPlus.hh"
61 #include "G4AntiLambdacPlus.hh"
62 #include "G4XicPlus.hh"
63 #include "G4AntiXicPlus.hh"
64 #include "G4Deuteron.hh"
65 #include "G4Triton.hh"
66 #include "G4He3.hh"
67 #include "G4Alpha.hh"
68 #include "G4GenericIon.hh"
69 
70 #include "G4PhysicsListHelper.hh"
71 #include "G4BuilderType.hh"
72 #include "G4RegionStore.hh"
73 #include "G4Region.hh"
74 
75 #include "G4SystemOfUnits.hh"
76 
78  G4VPhysicsConstructor("CMSEmStandard_emm"), verbose(ver) {
79  G4EmParameters* param = G4EmParameters::Instance();
80  param->SetDefaults();
81  param->SetVerbose(verbose);
82  param->SetApplyCuts(true);
83  param->SetStepFunction(0.8, 1*CLHEP::mm);
84  param->SetMscRangeFactor(0.2);
85  param->SetMscStepLimitType(fMinimal);
86  SetPhysicsType(bElectromagnetic);
87 }
88 
90 
92  // gamma
94 
95  // leptons
97  G4Positron::Positron();
98  G4MuonPlus::MuonPlus();
99  G4MuonMinus::MuonMinus();
100  G4TauMinus::TauMinusDefinition();
101  G4TauPlus::TauPlusDefinition();
102 
103  // mesons
104  G4PionPlus::PionPlusDefinition();
105  G4PionMinus::PionMinusDefinition();
106  G4KaonPlus::KaonPlusDefinition();
107  G4KaonMinus::KaonMinusDefinition();
108  G4DMesonMinus::DMesonMinusDefinition();
109  G4DMesonPlus::DMesonPlusDefinition();
110  G4BMesonMinus::BMesonMinusDefinition();
111  G4BMesonPlus::BMesonPlusDefinition();
112 
113  // barions
114  G4Proton::Proton();
115  G4AntiProton::AntiProton();
116  G4SigmaMinus::SigmaMinusDefinition();
117  G4AntiSigmaMinus::AntiSigmaMinusDefinition();
118  G4SigmaPlus::SigmaPlusDefinition();
119  G4AntiSigmaPlus::AntiSigmaPlusDefinition();
120  G4XiMinus::XiMinusDefinition();
121  G4AntiXiMinus::AntiXiMinusDefinition();
122  G4OmegaMinus::OmegaMinusDefinition();
123  G4AntiOmegaMinus::AntiOmegaMinusDefinition();
124  G4LambdacPlus::LambdacPlusDefinition();
125  G4AntiLambdacPlus::AntiLambdacPlusDefinition();
126  G4XicPlus::XicPlusDefinition();
127  G4AntiXicPlus::AntiXicPlusDefinition();
128 
129  // ions
130  G4Deuteron::Deuteron();
131  G4Triton::Triton();
132  G4He3::He3();
133  G4Alpha::Alpha();
134  G4GenericIon::GenericIonDefinition();
135 }
136 
138 
139  if(verbose > 0) {
140  G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
141  }
142 
143  // This EM builder takes default models of Geant4 10 EMV.
144  // Multiple scattering by Urban for all particles
145  // except e+e- below 100 MeV for which the Urban model is used
146 
147  G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
148 
149  // muon & hadron bremsstrahlung and pair production
150  G4MuBremsstrahlung* mub = nullptr;
151  G4MuPairProduction* mup = nullptr;
152  G4hBremsstrahlung* pib = nullptr;
153  G4hPairProduction* pip = nullptr;
154  G4hBremsstrahlung* kb = nullptr;
155  G4hPairProduction* kp = nullptr;
156  G4hBremsstrahlung* pb = nullptr;
157  G4hPairProduction* pp = nullptr;
158 
159  // muon & hadron multiple scattering
160  G4MuMultipleScattering* mumsc = nullptr;
161  G4hMultipleScattering* pimsc = nullptr;
162  G4hMultipleScattering* kmsc = nullptr;
163  G4hMultipleScattering* pmsc = nullptr;
164  G4hMultipleScattering* hmsc = nullptr;
165 
166  // muon and hadron single scattering
167  G4CoulombScattering* muss = nullptr;
168  G4CoulombScattering* piss = nullptr;
169  G4CoulombScattering* kss = nullptr;
170 
171  // high energy limit for e+- scattering models and bremsstrahlung
172  G4double highEnergyLimit = 100*MeV;
173 
174  G4Region* aRegion =
175  G4RegionStore::GetInstance()->GetRegion("HcalRegion",false);
176  G4Region* bRegion =
177  G4RegionStore::GetInstance()->GetRegion("HGCalRegion",false);
178 
179  G4ParticleTable* table = G4ParticleTable::GetParticleTable();
180  EmParticleList emList;
181  for(const auto& particleName : emList.PartNames()) {
182  G4ParticleDefinition* particle = table->FindParticle(particleName);
183 
184  if (particleName == "gamma") {
185 
186  ph->RegisterProcess(new G4PhotoElectricEffect(), particle);
187  ph->RegisterProcess(new G4ComptonScattering(), particle);
188  ph->RegisterProcess(new G4GammaConversion(), particle);
189 
190  } else if (particleName == "e-") {
191 
192  G4eIonisation* eioni = new G4eIonisation();
193 
194  G4eMultipleScattering* msc = new G4eMultipleScattering;
195  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
196  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
197  G4UrbanMscModel* msc3 = new G4UrbanMscModel();
198  msc3->SetLocked(true);
199  msc1->SetHighEnergyLimit(highEnergyLimit);
200  msc2->SetLowEnergyLimit(highEnergyLimit);
201  msc3->SetHighEnergyLimit(highEnergyLimit);
202  msc->SetEmModel(msc1);
203  msc->SetEmModel(msc2);
204  msc->AddEmModel(-1, msc3, aRegion);
205  if (bRegion) msc->AddEmModel(-1, msc3, bRegion);
206 
207  G4eCoulombScatteringModel* ssm = new G4eCoulombScatteringModel();
208  G4CoulombScattering* ss = new G4CoulombScattering();
209  ss->SetEmModel(ssm);
210  ss->SetMinKinEnergy(highEnergyLimit);
211  ssm->SetLowEnergyLimit(highEnergyLimit);
212  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
213 
214  ph->RegisterProcess(msc, particle);
215  ph->RegisterProcess(eioni, particle);
216  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
217  ph->RegisterProcess(ss, particle);
218 
219  } else if (particleName == "e+") {
220 
221  G4eIonisation* eioni = new G4eIonisation();
222 
223  G4eMultipleScattering* msc = new G4eMultipleScattering;
224  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
225  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
226  G4UrbanMscModel* msc3 = new G4UrbanMscModel();
227  msc1->SetHighEnergyLimit(highEnergyLimit);
228  msc2->SetLowEnergyLimit(highEnergyLimit);
229  msc3->SetHighEnergyLimit(highEnergyLimit);
230  msc3->SetLocked(true);
231  msc->SetEmModel(msc1);
232  msc->SetEmModel(msc2);
233  msc->AddEmModel(-1, msc3, aRegion);
234  if (bRegion) msc->AddEmModel(-1, msc3, bRegion);
235 
236  G4eCoulombScatteringModel* ssm = new G4eCoulombScatteringModel();
237  G4CoulombScattering* ss = new G4CoulombScattering();
238  ss->SetEmModel(ssm);
239  ss->SetMinKinEnergy(highEnergyLimit);
240  ssm->SetLowEnergyLimit(highEnergyLimit);
241  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
242 
243  ph->RegisterProcess(msc, particle);
244  ph->RegisterProcess(eioni, particle);
245  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
246  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
247  ph->RegisterProcess(ss, particle);
248 
249  } else if (particleName == "mu+" ||
250  particleName == "mu-" ) {
251 
252  if(nullptr == mub) {
253  mub = new G4MuBremsstrahlung();
254  mup = new G4MuPairProduction();
255  mumsc = new G4MuMultipleScattering();
256  mumsc->SetEmModel(new G4WentzelVIModel());
257  muss = new G4CoulombScattering();
258  }
259  ph->RegisterProcess(mumsc, particle);
260  ph->RegisterProcess(new G4MuIonisation(), particle);
261  ph->RegisterProcess(mub, particle);
262  ph->RegisterProcess(mup, particle);
263  ph->RegisterProcess(muss, particle);
264 
265  } else if (particleName == "alpha" ||
266  particleName == "He3" ) {
267 
268  ph->RegisterProcess(new G4hMultipleScattering(), particle);
269  ph->RegisterProcess(new G4ionIonisation(), particle);
270 
271  } else if (particleName == "GenericIon") {
272 
273  if(nullptr == hmsc) {
274  hmsc = new G4hMultipleScattering("ionmsc");
275  }
276  ph->RegisterProcess(hmsc, particle);
277  ph->RegisterProcess(new G4ionIonisation(), particle);
278 
279  } else if (particleName == "pi+" ||
280  particleName == "pi-" ) {
281 
282  if(nullptr == pib) {
283  pib = new G4hBremsstrahlung();
284  pip = new G4hPairProduction();
285  pimsc = new G4hMultipleScattering();
286  pimsc->SetEmModel(new G4WentzelVIModel());
287  piss = new G4CoulombScattering();
288  }
289  ph->RegisterProcess(pimsc, particle);
290  ph->RegisterProcess(new G4hIonisation(), particle);
291  ph->RegisterProcess(pib, particle);
292  ph->RegisterProcess(pip, particle);
293  ph->RegisterProcess(piss, particle);
294 
295  } else if (particleName == "kaon+" ||
296  particleName == "kaon-" ) {
297 
298  if(nullptr == kb) {
299  kb = new G4hBremsstrahlung();
300  kp = new G4hPairProduction();
301  kmsc = new G4hMultipleScattering();
302  kmsc->SetEmModel(new G4WentzelVIModel());
303  kss = new G4CoulombScattering();
304  }
305  ph->RegisterProcess(kmsc, particle);
306  ph->RegisterProcess(new G4hIonisation(), particle);
307  ph->RegisterProcess(kb, particle);
308  ph->RegisterProcess(kp, particle);
309  ph->RegisterProcess(kss, particle);
310 
311  } else if (particleName == "proton" ||
312  particleName == "anti_proton") {
313 
314  if(nullptr == pb) {
315  pb = new G4hBremsstrahlung();
316  pp = new G4hPairProduction();
317  //--- VI: these lines should be moved out of the brackets
318  pmsc = new G4hMultipleScattering();
319  pmsc->SetEmModel(new G4WentzelVIModel());
320  //---
321  }
322 
323  ph->RegisterProcess(pmsc, particle);
324  ph->RegisterProcess(new G4hIonisation(), particle);
325  ph->RegisterProcess(pb, particle);
326  ph->RegisterProcess(pp, particle);
327  ph->RegisterProcess(new G4CoulombScattering(), particle);
328 
329  } else if (particleName == "B+" ||
330  particleName == "B-" ||
331  particleName == "D+" ||
332  particleName == "D-" ||
333  particleName == "Ds+" ||
334  particleName == "Ds-" ||
335  particleName == "anti_He3" ||
336  particleName == "anti_alpha" ||
337  particleName == "anti_deuteron" ||
338  particleName == "anti_lambda_c+" ||
339  particleName == "anti_omega-" ||
340  particleName == "anti_sigma_c+" ||
341  particleName == "anti_sigma_c++" ||
342  particleName == "anti_sigma+" ||
343  particleName == "anti_sigma-" ||
344  particleName == "anti_triton" ||
345  particleName == "anti_xi_c+" ||
346  particleName == "anti_xi-" ||
347  particleName == "deuteron" ||
348  particleName == "lambda_c+" ||
349  particleName == "omega-" ||
350  particleName == "sigma_c+" ||
351  particleName == "sigma_c++" ||
352  particleName == "sigma+" ||
353  particleName == "sigma-" ||
354  particleName == "tau+" ||
355  particleName == "tau-" ||
356  particleName == "triton" ||
357  particleName == "xi_c+" ||
358  particleName == "xi-" ) {
359 
360  if(nullptr == hmsc) {
361  hmsc = new G4hMultipleScattering("ionmsc");
362  }
363  ph->RegisterProcess(hmsc, particle);
364  ph->RegisterProcess(new G4hIonisation(), particle);
365  }
366  }
367 }
const std::vector< G4String > & PartNames() const
int kp
susybsm::MuonSegmentCollection msc
Definition: classes.h:32
const double MeV
dbl * Gamma
Definition: mlp_gen.cc:38