CMS 3D CMS Logo

CMSEmStandardPhysics95.cc
Go to the documentation of this file.
3 #include "G4EmParameters.hh"
4 #include "G4ParticleTable.hh"
5 
6 #include "G4ParticleDefinition.hh"
7 #include "G4ProcessManager.hh"
8 #include "G4LossTableManager.hh"
9 #include "G4RegionStore.hh"
10 
11 #include "G4ComptonScattering.hh"
12 #include "G4GammaConversion.hh"
13 #include "G4GammaConversion.hh"
14 #include "G4PairProductionRelModel.hh"
15 #include "G4PhotoElectricEffect.hh"
16 
17 #include "G4hMultipleScattering.hh"
18 #include "G4eMultipleScattering.hh"
19 #include "G4MscStepLimitType.hh"
20 
21 #include "G4eIonisation.hh"
22 #include "G4eBremsstrahlung.hh"
23 #include "G4eplusAnnihilation.hh"
24 
25 #include "G4MuMultipleScattering.hh"
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 #include "G4BuilderType.hh"
70 
71 #include "G4SystemOfUnits.hh"
72 
74  G4VPhysicsConstructor(name), verbose(ver), region(reg) {
75  G4EmParameters* param = G4EmParameters::Instance();
76  param->SetDefaults();
77  param->SetVerbose(verbose);
78  param->SetApplyCuts(true);
79  param->SetMscRangeFactor(0.2);
80  param->SetMscStepLimitType(fMinimal);
81  SetPhysicsType(bElectromagnetic);
82 }
83 
85 
87  // gamma
89 
90  // leptons
92  G4Positron::Positron();
93  G4MuonPlus::MuonPlus();
94  G4MuonMinus::MuonMinus();
95  G4TauMinus::TauMinusDefinition();
96  G4TauPlus::TauPlusDefinition();
97 
98  // mesons
99  G4PionPlus::PionPlusDefinition();
100  G4PionMinus::PionMinusDefinition();
101  G4KaonPlus::KaonPlusDefinition();
102  G4KaonMinus::KaonMinusDefinition();
103  G4DMesonMinus::DMesonMinusDefinition();
104  G4DMesonPlus::DMesonPlusDefinition();
105  G4BMesonMinus::BMesonMinusDefinition();
106  G4BMesonPlus::BMesonPlusDefinition();
107 
108  // barions
109  G4Proton::Proton();
110  G4AntiProton::AntiProton();
111  G4SigmaMinus::SigmaMinusDefinition();
112  G4AntiSigmaMinus::AntiSigmaMinusDefinition();
113  G4SigmaPlus::SigmaPlusDefinition();
114  G4AntiSigmaPlus::AntiSigmaPlusDefinition();
115  G4XiMinus::XiMinusDefinition();
116  G4AntiXiMinus::AntiXiMinusDefinition();
117  G4OmegaMinus::OmegaMinusDefinition();
118  G4AntiOmegaMinus::AntiOmegaMinusDefinition();
119  G4LambdacPlus::LambdacPlusDefinition();
120  G4AntiLambdacPlus::AntiLambdacPlusDefinition();
121  G4XicPlus::XicPlusDefinition();
122  G4AntiXicPlus::AntiXicPlusDefinition();
123 
124  // ions
125  G4Deuteron::Deuteron();
126  G4Triton::Triton();
127  G4He3::He3();
128  G4Alpha::Alpha();
129  G4GenericIon::GenericIonDefinition();
130 }
131 
133 {
134  // This EM builder takes default models of Geant4 10 EMV.
135  // Multiple scattering by Urban for all particles
136 
137  G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
138 
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  G4hMultipleScattering* hmsc = nullptr;
149 
150  // Add standard EM Processes
151  G4ParticleTable* table = G4ParticleTable::GetParticleTable();
152  EmParticleList emList;
153  for(const auto& particleName : emList.PartNames()) {
154  G4ParticleDefinition* particle = table->FindParticle(particleName);
155  if(verbose > 1)
156  G4cout << "### " << GetPhysicsName() << " instantiates for "
157  << particleName << G4endl;
158 
159  if (particleName == "gamma") {
160 
161  ph->RegisterProcess(new G4PhotoElectricEffect(), particle);
162  ph->RegisterProcess(new G4ComptonScattering(), particle);
163  ph->RegisterProcess(new G4GammaConversion(), particle);
164 
165  } else if (particleName == "e-") {
166 
167  G4eIonisation* eioni = new G4eIonisation();
168  eioni->SetStepFunction(0.8, 1.0*mm);
169  G4eMultipleScattering* msc = new G4eMultipleScattering();
170  msc->SetStepLimitType(fMinimal);
171 
172  G4eBremsstrahlung* ebrem = new G4eBremsstrahlung();
173 
174  ph->RegisterProcess(msc, particle);
175  ph->RegisterProcess(eioni, particle);
176  ph->RegisterProcess(ebrem, particle);
177 
178  } else if (particleName == "e+") {
179 
180  G4eIonisation* eioni = new G4eIonisation();
181  eioni->SetStepFunction(0.8, 1.0*mm);
182  G4eMultipleScattering* msc = new G4eMultipleScattering();
183  msc->SetStepLimitType(fMinimal);
184 
185  G4eBremsstrahlung* ebrem = new G4eBremsstrahlung();
186 
187  ph->RegisterProcess(msc, particle);
188  ph->RegisterProcess(eioni, particle);
189  ph->RegisterProcess(ebrem, particle);
190  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
191 
192  } else if (particleName == "mu+" ||
193  particleName == "mu-" ) {
194 
195  if(nullptr == mub) {
196  mub = new G4MuBremsstrahlung();
197  mup = new G4MuPairProduction();
198  }
199  G4MuMultipleScattering* msc = new G4MuMultipleScattering();
200  ph->RegisterProcess(msc, particle);
201  ph->RegisterProcess(new G4MuIonisation(), particle);
202  ph->RegisterProcess(mub, particle);
203  ph->RegisterProcess(mup, particle);
204 
205  } else if (particleName == "alpha" ||
206  particleName == "He3" ) {
207 
208  ph->RegisterProcess(new G4hMultipleScattering(), particle);
209  ph->RegisterProcess(new G4ionIonisation(), particle);
210 
211  } else if (particleName == "GenericIon") {
212 
213  if(nullptr == hmsc) {
214  hmsc = new G4hMultipleScattering("ionmsc");
215  }
216  ph->RegisterProcess(hmsc, particle);
217  ph->RegisterProcess(new G4ionIonisation(), particle);
218 
219  } else if (particleName == "pi+" ||
220  particleName == "pi-" ) {
221 
222  if(nullptr == pib) {
223  pib = new G4hBremsstrahlung();
224  pip = new G4hPairProduction();
225  }
226  ph->RegisterProcess(new G4hMultipleScattering(), particle);
227  ph->RegisterProcess(new G4hIonisation(), particle);
228  ph->RegisterProcess(pib, particle);
229  ph->RegisterProcess(pip, particle);
230 
231  } else if (particleName == "kaon+" ||
232  particleName == "kaon-" ) {
233 
234  if(nullptr == kb) {
235  kb = new G4hBremsstrahlung();
236  kp = new G4hPairProduction();
237  }
238  ph->RegisterProcess(new G4hMultipleScattering(), particle);
239  ph->RegisterProcess(new G4hIonisation(), particle);
240  ph->RegisterProcess(kb, particle);
241  ph->RegisterProcess(kp, particle);
242 
243  } else if (particleName == "proton" ||
244  particleName == "anti_proton") {
245 
246  if(nullptr == pb) {
247  pb = new G4hBremsstrahlung();
248  pp = new G4hPairProduction();
249  }
250  ph->RegisterProcess(new G4hMultipleScattering(), particle);
251  ph->RegisterProcess(new G4hIonisation(), particle);
252  ph->RegisterProcess(pb, particle);
253  ph->RegisterProcess(pp, particle);
254 
255  } else if (particleName == "B+" ||
256  particleName == "B-" ||
257  particleName == "D+" ||
258  particleName == "D-" ||
259  particleName == "Ds+" ||
260  particleName == "Ds-" ||
261  particleName == "anti_He3" ||
262  particleName == "anti_alpha" ||
263  particleName == "anti_deuteron" ||
264  particleName == "anti_lambda_c+" ||
265  particleName == "anti_omega-" ||
266  particleName == "anti_sigma_c+" ||
267  particleName == "anti_sigma_c++" ||
268  particleName == "anti_sigma+" ||
269  particleName == "anti_sigma-" ||
270  particleName == "anti_triton" ||
271  particleName == "anti_xi_c+" ||
272  particleName == "anti_xi-" ||
273  particleName == "deuteron" ||
274  particleName == "lambda_c+" ||
275  particleName == "omega-" ||
276  particleName == "sigma_c+" ||
277  particleName == "sigma_c++" ||
278  particleName == "sigma+" ||
279  particleName == "sigma-" ||
280  particleName == "tau+" ||
281  particleName == "tau-" ||
282  particleName == "triton" ||
283  particleName == "xi_c+" ||
284  particleName == "xi-" ) {
285 
286  if(nullptr == hmsc) {
287  hmsc = new G4hMultipleScattering("ionmsc");
288  }
289  ph->RegisterProcess(hmsc, particle);
290  ph->RegisterProcess(new G4hIonisation(), particle);
291  }
292  }
293 }
const std::vector< G4String > & PartNames() const
int kp
susybsm::MuonSegmentCollection msc
Definition: classes.h:32
CMSEmStandardPhysics95(const G4String &name, G4int ver, std::string reg)
dbl * Gamma
Definition: mlp_gen.cc:38