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 
77 CMSEmStandardPhysicsLPM::CMSEmStandardPhysicsLPM(G4int ver) : G4VPhysicsConstructor("CMSEmStandard_emm"), verbose(ver) {
78  G4EmParameters* param = G4EmParameters::Instance();
79  param->SetDefaults();
80  param->SetVerbose(verbose);
81  param->SetApplyCuts(true);
82  param->SetStepFunction(0.8, 1 * CLHEP::mm);
83  param->SetMscRangeFactor(0.2);
84  param->SetMscStepLimitType(fMinimal);
85  SetPhysicsType(bElectromagnetic);
86 }
87 
89 
91  // gamma
93 
94  // leptons
96  G4Positron::Positron();
97  G4MuonPlus::MuonPlus();
98  G4MuonMinus::MuonMinus();
99  G4TauMinus::TauMinusDefinition();
100  G4TauPlus::TauPlusDefinition();
101 
102  // mesons
103  G4PionPlus::PionPlusDefinition();
104  G4PionMinus::PionMinusDefinition();
105  G4KaonPlus::KaonPlusDefinition();
106  G4KaonMinus::KaonMinusDefinition();
107  G4DMesonMinus::DMesonMinusDefinition();
108  G4DMesonPlus::DMesonPlusDefinition();
109  G4BMesonMinus::BMesonMinusDefinition();
110  G4BMesonPlus::BMesonPlusDefinition();
111 
112  // barions
113  G4Proton::Proton();
114  G4AntiProton::AntiProton();
115  G4SigmaMinus::SigmaMinusDefinition();
116  G4AntiSigmaMinus::AntiSigmaMinusDefinition();
117  G4SigmaPlus::SigmaPlusDefinition();
118  G4AntiSigmaPlus::AntiSigmaPlusDefinition();
119  G4XiMinus::XiMinusDefinition();
120  G4AntiXiMinus::AntiXiMinusDefinition();
121  G4OmegaMinus::OmegaMinusDefinition();
122  G4AntiOmegaMinus::AntiOmegaMinusDefinition();
123  G4LambdacPlus::LambdacPlusDefinition();
124  G4AntiLambdacPlus::AntiLambdacPlusDefinition();
125  G4XicPlus::XicPlusDefinition();
126  G4AntiXicPlus::AntiXicPlusDefinition();
127 
128  // ions
129  G4Deuteron::Deuteron();
130  G4Triton::Triton();
131  G4He3::He3();
132  G4Alpha::Alpha();
133  G4GenericIon::GenericIonDefinition();
134 }
135 
137  if (verbose > 0) {
138  G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
139  }
140 
141  // This EM builder takes default models of Geant4 10 EMV.
142  // Multiple scattering by Urban for all particles
143  // except e+e- below 100 MeV for which the Urban model is used
144 
145  G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
146 
147  // muon & hadron bremsstrahlung and pair production
148  G4MuBremsstrahlung* mub = nullptr;
149  G4MuPairProduction* mup = nullptr;
150  G4hBremsstrahlung* pib = nullptr;
151  G4hPairProduction* pip = nullptr;
152  G4hBremsstrahlung* kb = nullptr;
153  G4hPairProduction* kp = nullptr;
154  G4hBremsstrahlung* pb = nullptr;
155  G4hPairProduction* pp = nullptr;
156 
157  // muon & hadron multiple scattering
158  G4MuMultipleScattering* mumsc = nullptr;
159  G4hMultipleScattering* pimsc = nullptr;
160  G4hMultipleScattering* kmsc = nullptr;
161  G4hMultipleScattering* pmsc = nullptr;
162  G4hMultipleScattering* hmsc = nullptr;
163 
164  // muon and hadron single scattering
165  G4CoulombScattering* muss = nullptr;
166  G4CoulombScattering* piss = nullptr;
167  G4CoulombScattering* kss = nullptr;
168 
169  // high energy limit for e+- scattering models and bremsstrahlung
170  G4double highEnergyLimit = 100 * MeV;
171 
172  G4Region* aRegion = G4RegionStore::GetInstance()->GetRegion("HcalRegion", false);
173  G4Region* bRegion = G4RegionStore::GetInstance()->GetRegion("HGCalRegion", false);
174 
175  G4ParticleTable* table = G4ParticleTable::GetParticleTable();
176  EmParticleList emList;
177  for (const auto& particleName : emList.PartNames()) {
178  G4ParticleDefinition* particle = table->FindParticle(particleName);
179 
180  if (particleName == "gamma") {
181  ph->RegisterProcess(new G4PhotoElectricEffect(), particle);
182  ph->RegisterProcess(new G4ComptonScattering(), particle);
183  ph->RegisterProcess(new G4GammaConversion(), particle);
184 
185  } else if (particleName == "e-") {
186  G4eIonisation* eioni = new G4eIonisation();
187 
188  G4eMultipleScattering* msc = new G4eMultipleScattering;
189  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
190  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
191  G4UrbanMscModel* msc3 = new G4UrbanMscModel();
192  //--- VI: these line should be moved down
193  msc3->SetLocked(true);
194  //---
195  msc1->SetHighEnergyLimit(highEnergyLimit);
196  msc2->SetLowEnergyLimit(highEnergyLimit);
197  msc3->SetHighEnergyLimit(highEnergyLimit);
198  msc->SetEmModel(msc1);
199  msc->SetEmModel(msc2);
200  msc->AddEmModel(-1, msc3, aRegion);
201  if (bRegion)
202  msc->AddEmModel(-1, msc3, bRegion);
203 
204  G4eCoulombScatteringModel* ssm = new G4eCoulombScatteringModel();
205  G4CoulombScattering* ss = new G4CoulombScattering();
206  ss->SetEmModel(ssm);
207  ss->SetMinKinEnergy(highEnergyLimit);
208  ssm->SetLowEnergyLimit(highEnergyLimit);
209  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
210 
211  ph->RegisterProcess(msc, particle);
212  ph->RegisterProcess(eioni, particle);
213  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
214  ph->RegisterProcess(ss, particle);
215 
216  } else if (particleName == "e+") {
217  G4eIonisation* eioni = new G4eIonisation();
218 
219  G4eMultipleScattering* msc = new G4eMultipleScattering;
220  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
221  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
222  G4UrbanMscModel* msc3 = new G4UrbanMscModel();
223  msc1->SetHighEnergyLimit(highEnergyLimit);
224  msc2->SetLowEnergyLimit(highEnergyLimit);
225  msc3->SetHighEnergyLimit(highEnergyLimit);
226  msc3->SetLocked(true);
227  msc->SetEmModel(msc1);
228  msc->SetEmModel(msc2);
229  msc->AddEmModel(-1, msc3, aRegion);
230  if (bRegion)
231  msc->AddEmModel(-1, msc3, bRegion);
232 
233  G4eCoulombScatteringModel* ssm = new G4eCoulombScatteringModel();
234  G4CoulombScattering* ss = new G4CoulombScattering();
235  ss->SetEmModel(ssm);
236  ss->SetMinKinEnergy(highEnergyLimit);
237  ssm->SetLowEnergyLimit(highEnergyLimit);
238  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
239 
240  ph->RegisterProcess(msc, particle);
241  ph->RegisterProcess(eioni, particle);
242  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
243  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
244  ph->RegisterProcess(ss, particle);
245 
246  } else if (particleName == "mu+" || particleName == "mu-") {
247  if (nullptr == mub) {
248  mub = new G4MuBremsstrahlung();
249  mup = new G4MuPairProduction();
250  mumsc = new G4MuMultipleScattering();
251  mumsc->SetEmModel(new G4WentzelVIModel());
252  muss = new G4CoulombScattering();
253  }
254  ph->RegisterProcess(mumsc, particle);
255  ph->RegisterProcess(new G4MuIonisation(), particle);
256  ph->RegisterProcess(mub, particle);
257  ph->RegisterProcess(mup, particle);
258  ph->RegisterProcess(muss, particle);
259 
260  } else if (particleName == "alpha" || particleName == "He3") {
261  ph->RegisterProcess(new G4hMultipleScattering(), particle);
262  ph->RegisterProcess(new G4ionIonisation(), particle);
263 
264  } else if (particleName == "GenericIon") {
265  if (nullptr == hmsc) {
266  hmsc = new G4hMultipleScattering("ionmsc");
267  }
268  ph->RegisterProcess(hmsc, particle);
269  ph->RegisterProcess(new G4ionIonisation(), particle);
270 
271  } else if (particleName == "pi+" || particleName == "pi-") {
272  if (nullptr == pib) {
273  pib = new G4hBremsstrahlung();
274  pip = new G4hPairProduction();
275  pimsc = new G4hMultipleScattering();
276  pimsc->SetEmModel(new G4WentzelVIModel());
277  piss = new G4CoulombScattering();
278  }
279  ph->RegisterProcess(pimsc, particle);
280  ph->RegisterProcess(new G4hIonisation(), particle);
281  ph->RegisterProcess(pib, particle);
282  ph->RegisterProcess(pip, particle);
283  ph->RegisterProcess(piss, particle);
284 
285  } else if (particleName == "kaon+" || particleName == "kaon-") {
286  if (nullptr == kb) {
287  kb = new G4hBremsstrahlung();
288  kp = new G4hPairProduction();
289  kmsc = new G4hMultipleScattering();
290  kmsc->SetEmModel(new G4WentzelVIModel());
291  kss = new G4CoulombScattering();
292  }
293  ph->RegisterProcess(kmsc, particle);
294  ph->RegisterProcess(new G4hIonisation(), particle);
295  ph->RegisterProcess(kb, particle);
296  ph->RegisterProcess(kp, particle);
297  ph->RegisterProcess(kss, particle);
298 
299  } else if (particleName == "proton" || particleName == "anti_proton") {
300  if (nullptr == pb) {
301  pb = new G4hBremsstrahlung();
302  pp = new G4hPairProduction();
303  //--- VI: these lines should be moved out of the brackets
304  pmsc = new G4hMultipleScattering();
305  pmsc->SetEmModel(new G4WentzelVIModel());
306  //---
307  }
308 
309  ph->RegisterProcess(pmsc, particle);
310  ph->RegisterProcess(new G4hIonisation(), particle);
311  ph->RegisterProcess(pb, particle);
312  ph->RegisterProcess(pp, particle);
313  ph->RegisterProcess(new G4CoulombScattering(), particle);
314 
315  } else if (particleName == "B+" || particleName == "B-" || particleName == "D+" || particleName == "D-" ||
316  particleName == "Ds+" || particleName == "Ds-" || particleName == "anti_He3" ||
317  particleName == "anti_alpha" || particleName == "anti_deuteron" || particleName == "anti_lambda_c+" ||
318  particleName == "anti_omega-" || particleName == "anti_sigma_c+" || particleName == "anti_sigma_c++" ||
319  particleName == "anti_sigma+" || particleName == "anti_sigma-" || particleName == "anti_triton" ||
320  particleName == "anti_xi_c+" || particleName == "anti_xi-" || particleName == "deuteron" ||
321  particleName == "lambda_c+" || particleName == "omega-" || particleName == "sigma_c+" ||
322  particleName == "sigma_c++" || particleName == "sigma+" || particleName == "sigma-" ||
323  particleName == "tau+" || particleName == "tau-" || particleName == "triton" ||
324  particleName == "xi_c+" || particleName == "xi-") {
325  if (nullptr == hmsc) {
326  hmsc = new G4hMultipleScattering("ionmsc");
327  }
328  ph->RegisterProcess(hmsc, particle);
329  ph->RegisterProcess(new G4hIonisation(), particle);
330  }
331  }
332 }
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