CMS 3D CMS Logo

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