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