CMS 3D CMS Logo

CMSEmStandardPhysics.cc
Go to the documentation of this file.
4 #include "G4EmParameters.hh"
5 #include "G4ParticleTable.hh"
6 
7 #include "G4ParticleDefinition.hh"
8 #include "G4LossTableManager.hh"
9 
10 #include "G4ComptonScattering.hh"
11 #include "G4GammaConversion.hh"
12 #include "G4PhotoElectricEffect.hh"
13 
14 #include "G4hMultipleScattering.hh"
15 #include "G4eMultipleScattering.hh"
16 #include "G4MuMultipleScattering.hh"
17 #include "G4CoulombScattering.hh"
18 #include "G4eCoulombScatteringModel.hh"
19 #include "G4WentzelVIModel.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 
73 #include "G4SystemOfUnits.hh"
74 
76  G4VPhysicsConstructor("CMSEmStandard_opt1"), verbose(ver) {
77  G4EmParameters* param = G4EmParameters::Instance();
78  param->SetDefaults();
79  param->SetVerbose(verbose);
80  param->SetApplyCuts(true);
81  param->SetStepFunction(0.8, 1*CLHEP::mm);
82  param->SetMscRangeFactor(0.2);
83  param->SetMscStepLimitType(fMinimal);
84  SetPhysicsType(bElectromagnetic);
85 }
86 
88 
90  // gamma
92 
93  // leptons
95  G4Positron::Positron();
96  G4MuonPlus::MuonPlus();
97  G4MuonMinus::MuonMinus();
98  G4TauMinus::TauMinusDefinition();
99  G4TauPlus::TauPlusDefinition();
100 
101  // mesons
102  G4PionPlus::PionPlusDefinition();
103  G4PionMinus::PionMinusDefinition();
104  G4KaonPlus::KaonPlusDefinition();
105  G4KaonMinus::KaonMinusDefinition();
106  G4DMesonMinus::DMesonMinusDefinition();
107  G4DMesonPlus::DMesonPlusDefinition();
108  G4BMesonMinus::BMesonMinusDefinition();
109  G4BMesonPlus::BMesonPlusDefinition();
110 
111  // barions
112  G4Proton::Proton();
113  G4AntiProton::AntiProton();
114  G4SigmaMinus::SigmaMinusDefinition();
115  G4AntiSigmaMinus::AntiSigmaMinusDefinition();
116  G4SigmaPlus::SigmaPlusDefinition();
117  G4AntiSigmaPlus::AntiSigmaPlusDefinition();
118  G4XiMinus::XiMinusDefinition();
119  G4AntiXiMinus::AntiXiMinusDefinition();
120  G4OmegaMinus::OmegaMinusDefinition();
121  G4AntiOmegaMinus::AntiOmegaMinusDefinition();
122  G4LambdacPlus::LambdacPlusDefinition();
123  G4AntiLambdacPlus::AntiLambdacPlusDefinition();
124  G4XicPlus::XicPlusDefinition();
125  G4AntiXicPlus::AntiXicPlusDefinition();
126 
127  // ions
128  G4Deuteron::Deuteron();
129  G4Triton::Triton();
130  G4He3::He3();
131  G4Alpha::Alpha();
132  G4GenericIon::GenericIonDefinition();
133 }
134 
136 
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 Urban93 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  G4CoulombScattering* pss = nullptr;
169 
170  // high energy limit for e+- scattering models and bremsstrahlung
171  G4double highEnergyLimit = 100*MeV;
172 
173  G4ParticleTable* table = G4ParticleTable::GetParticleTable();
174  EmParticleList emList;
175  for(const auto& particleName : emList.PartNames()) {
176  G4ParticleDefinition* particle = table->FindParticle(particleName);
177 
178  if (particleName == "gamma") {
179 
180  ph->RegisterProcess(new G4PhotoElectricEffect(), particle);
181  ph->RegisterProcess(new G4ComptonScattering(), particle);
182  ph->RegisterProcess(new G4GammaConversion(), particle);
183 
184  } else if (particleName == "e-") {
185 
186  G4eIonisation* eioni = new G4eIonisation();
187 
188  G4eMultipleScattering* msc = new G4eMultipleScattering;
189  UrbanMscModel93* msc1 = new UrbanMscModel93();
190  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
191  msc1->SetHighEnergyLimit(highEnergyLimit);
192  msc2->SetLowEnergyLimit(highEnergyLimit);
193  msc->SetEmModel(msc1);
194  msc->SetEmModel(msc2);
195 
196  G4eCoulombScatteringModel* ssm = new G4eCoulombScatteringModel();
197  G4CoulombScattering* ss = new G4CoulombScattering();
198  ss->SetEmModel(ssm);
199  ss->SetMinKinEnergy(highEnergyLimit);
200  ssm->SetLowEnergyLimit(highEnergyLimit);
201  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
202 
203  ph->RegisterProcess(msc, particle);
204  ph->RegisterProcess(eioni, particle);
205  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
206  ph->RegisterProcess(ss, particle);
207 
208  } else if (particleName == "e+") {
209 
210  G4eIonisation* eioni = new G4eIonisation();
211 
212  G4eMultipleScattering* msc = new G4eMultipleScattering;
213  UrbanMscModel93* msc1 = new UrbanMscModel93();
214  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
215  msc1->SetHighEnergyLimit(highEnergyLimit);
216  msc2->SetLowEnergyLimit(highEnergyLimit);
217  msc->SetEmModel(msc1);
218  msc->SetEmModel(msc2);
219 
220  G4eCoulombScatteringModel* ssm = new G4eCoulombScatteringModel();
221  G4CoulombScattering* ss = new G4CoulombScattering();
222  ss->SetEmModel(ssm);
223  ss->SetMinKinEnergy(highEnergyLimit);
224  ssm->SetLowEnergyLimit(highEnergyLimit);
225  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
226 
227  ph->RegisterProcess(msc, particle);
228  ph->RegisterProcess(eioni, particle);
229  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
230  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
231  ph->RegisterProcess(ss, particle);
232 
233  } else if (particleName == "mu+" ||
234  particleName == "mu-" ) {
235 
236  if(nullptr == mub) {
237  mub = new G4MuBremsstrahlung();
238  mup = new G4MuPairProduction();
239  mumsc = new G4MuMultipleScattering();
240  mumsc->SetEmModel(new G4WentzelVIModel());
241  muss = new G4CoulombScattering();
242  }
243  ph->RegisterProcess(mumsc, particle);
244  ph->RegisterProcess(new G4MuIonisation(), particle);
245  ph->RegisterProcess(mub, particle);
246  ph->RegisterProcess(mup, particle);
247  ph->RegisterProcess(muss, particle);
248 
249  } else if (particleName == "alpha" ||
250  particleName == "He3" ) {
251 
252  ph->RegisterProcess(new G4hMultipleScattering(), particle);
253  ph->RegisterProcess(new G4ionIonisation(), particle);
254 
255  } else if (particleName == "GenericIon") {
256 
257  if(nullptr == hmsc) {
258  hmsc = new G4hMultipleScattering("ionmsc");
259  }
260  ph->RegisterProcess(hmsc, particle);
261  ph->RegisterProcess(new G4ionIonisation(), particle);
262 
263  } else if (particleName == "pi+" ||
264  particleName == "pi-" ) {
265 
266  if(nullptr == pib) {
267  pib = new G4hBremsstrahlung();
268  pip = new G4hPairProduction();
269  pimsc = new G4hMultipleScattering();
270  pimsc->SetEmModel(new G4WentzelVIModel());
271  piss = new G4CoulombScattering();
272  }
273  ph->RegisterProcess(pimsc, particle);
274  ph->RegisterProcess(new G4hIonisation(), particle);
275  ph->RegisterProcess(pib, particle);
276  ph->RegisterProcess(pip, particle);
277  ph->RegisterProcess(piss, particle);
278 
279  } else if (particleName == "kaon+" ||
280  particleName == "kaon-" ) {
281 
282  if(nullptr == kb) {
283  kb = new G4hBremsstrahlung();
284  kp = new G4hPairProduction();
285  kmsc = new G4hMultipleScattering();
286  kmsc->SetEmModel(new G4WentzelVIModel());
287  kss = new G4CoulombScattering();
288  }
289  ph->RegisterProcess(kmsc, particle);
290  ph->RegisterProcess(new G4hIonisation(), particle);
291  ph->RegisterProcess(kb, particle);
292  ph->RegisterProcess(kp, particle);
293  ph->RegisterProcess(kss, particle);
294 
295  } else if (particleName == "proton" ||
296  particleName == "anti_proton") {
297 
298  if(nullptr == pb) {
299  pb = new G4hBremsstrahlung();
300  pp = new G4hPairProduction();
301  pmsc = new G4hMultipleScattering();
302  }
303  pmsc->SetEmModel(new G4WentzelVIModel());
304  pss = new G4CoulombScattering();
305 
306  ph->RegisterProcess(pmsc, particle);
307  ph->RegisterProcess(new G4hIonisation(), particle);
308  ph->RegisterProcess(pb, particle);
309  ph->RegisterProcess(pp, particle);
310  ph->RegisterProcess(pss, particle);
311 
312  } else if (particleName == "B+" ||
313  particleName == "B-" ||
314  particleName == "D+" ||
315  particleName == "D-" ||
316  particleName == "Ds+" ||
317  particleName == "Ds-" ||
318  particleName == "anti_He3" ||
319  particleName == "anti_alpha" ||
320  particleName == "anti_deuteron" ||
321  particleName == "anti_lambda_c+" ||
322  particleName == "anti_omega-" ||
323  particleName == "anti_sigma_c+" ||
324  particleName == "anti_sigma_c++" ||
325  particleName == "anti_sigma+" ||
326  particleName == "anti_sigma-" ||
327  particleName == "anti_triton" ||
328  particleName == "anti_xi_c+" ||
329  particleName == "anti_xi-" ||
330  particleName == "deuteron" ||
331  particleName == "lambda_c+" ||
332  particleName == "omega-" ||
333  particleName == "sigma_c+" ||
334  particleName == "sigma_c++" ||
335  particleName == "sigma+" ||
336  particleName == "sigma-" ||
337  particleName == "tau+" ||
338  particleName == "tau-" ||
339  particleName == "triton" ||
340  particleName == "xi_c+" ||
341  particleName == "xi-" ) {
342 
343  if(nullptr == hmsc) {
344  hmsc = new G4hMultipleScattering("ionmsc");
345  }
346  ph->RegisterProcess(hmsc, particle);
347  ph->RegisterProcess(new G4hIonisation(), particle);
348  }
349  }
350 }
const std::vector< G4String > & PartNames() const
std::pair< ALIstring, ALIstring > pss
Definition: Fit.h:27
void ConstructParticle() override
int kp
susybsm::MuonSegmentCollection msc
Definition: classes.h:32
const double MeV
void ConstructProcess() override
dbl * Gamma
Definition: mlp_gen.cc:38