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