CMS 3D CMS Logo

CMSEmStandardPhysics95msc93.cc
Go to the documentation of this file.
4 #include "G4EmParameters.hh"
5 #include "G4ParticleTable.hh"
6 
7 #include "G4ParticleDefinition.hh"
8 #include "G4ProcessManager.hh"
9 #include "G4LossTableManager.hh"
10 #include "G4RegionStore.hh"
11 
12 #include "G4ComptonScattering.hh"
13 #include "G4GammaConversion.hh"
14 #include "G4PhotoElectricEffect.hh"
15 #include "G4PairProductionRelModel.hh"
16 
17 #include "G4hMultipleScattering.hh"
18 #include "G4eMultipleScattering.hh"
19 #include "G4MuMultipleScattering.hh"
20 #include "G4MscStepLimitType.hh"
21 
22 #include "G4eIonisation.hh"
23 #include "G4eBremsstrahlung.hh"
24 #include "G4eplusAnnihilation.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 "G4BuilderType.hh"
71 #include "G4SystemOfUnits.hh"
72 
74  G4int ver,
75  const std::string& reg)
76 : G4VPhysicsConstructor(name), verbose(ver), region(reg) {
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  // Add standard EM Processes
138  G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
139 
140  // muon & hadron bremsstrahlung and pair production
141  G4MuBremsstrahlung* mub = nullptr;
142  G4MuPairProduction* mup = nullptr;
143  G4hBremsstrahlung* pib = nullptr;
144  G4hPairProduction* pip = nullptr;
145  G4hBremsstrahlung* kb = nullptr;
146  G4hPairProduction* kp = nullptr;
147  G4hBremsstrahlung* pb = nullptr;
148  G4hPairProduction* pp = nullptr;
149 
150  // muon & hadron multiple scattering
151  G4MuMultipleScattering* mumsc = nullptr;
152  G4hMultipleScattering* pimsc = nullptr;
153  G4hMultipleScattering* kmsc = nullptr;
154  G4hMultipleScattering* pmsc = nullptr;
155  G4hMultipleScattering* hmsc = nullptr;
156 
157  // This EM builder takes default models of Geant4 10 EMV.
158  // Multiple scattering by Urban for all particles
159  // except e+e- for which the Urban93 model is used
160 
161  G4ParticleTable* table = G4ParticleTable::GetParticleTable();
162  EmParticleList emList;
163  for(const auto& particleName : emList.PartNames()) {
164  G4ParticleDefinition* particle = table->FindParticle(particleName);
165  if(verbose > 1)
166  G4cout << "### " << GetPhysicsName() << " instantiates for "
167  << particleName << " at " << particle << G4endl;
168 
169  if (particleName == "gamma") {
170 
171  ph->RegisterProcess(new G4PhotoElectricEffect(), particle);
172  ph->RegisterProcess(new G4ComptonScattering(), particle);
173  ph->RegisterProcess(new G4GammaConversion(), particle);
174 
175  } else if (particleName == "e-") {
176 
177  G4eIonisation* eioni = new G4eIonisation();
178  G4eMultipleScattering* msc = new G4eMultipleScattering;
179  msc->SetEmModel(new UrbanMscModel93());
180 
181  G4eBremsstrahlung* ebrem = new G4eBremsstrahlung();
182 
183  ph->RegisterProcess(msc, particle);
184  ph->RegisterProcess(eioni, particle);
185  ph->RegisterProcess(ebrem, particle);
186 
187  } else if (particleName == "e+") {
188 
189  G4eIonisation* eioni = new G4eIonisation();
190 
191  G4eMultipleScattering* msc = new G4eMultipleScattering;
192  msc->SetEmModel(new UrbanMscModel93());
193 
194  G4eBremsstrahlung* ebrem = new G4eBremsstrahlung();
195 
196  ph->RegisterProcess(msc, particle);
197  ph->RegisterProcess(eioni, particle);
198  ph->RegisterProcess(ebrem, particle);
199  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
200 
201  } else if (particleName == "mu+" ||
202  particleName == "mu-" ) {
203 
204  if(nullptr == mub) {
205  mub = new G4MuBremsstrahlung();
206  mup = new G4MuPairProduction();
207  mumsc = new G4MuMultipleScattering();
208  }
209  ph->RegisterProcess(mumsc, particle);
210  ph->RegisterProcess(new G4MuIonisation(), particle);
211  ph->RegisterProcess(mub, particle);
212  ph->RegisterProcess(mup, particle);
213 
214  } else if (particleName == "alpha" ||
215  particleName == "He3" ) {
216 
217  ph->RegisterProcess(new G4hMultipleScattering(), particle);
218  ph->RegisterProcess(new G4ionIonisation(), particle);
219 
220  } else if (particleName == "GenericIon") {
221 
222  if(nullptr == hmsc) {
223  hmsc = new G4hMultipleScattering("ionmsc");
224  }
225  ph->RegisterProcess(hmsc, particle);
226  ph->RegisterProcess(new G4ionIonisation(), particle);
227 
228  } else if (particleName == "pi+" ||
229  particleName == "pi-" ) {
230 
231  if(nullptr == pib) {
232  pib = new G4hBremsstrahlung();
233  pip = new G4hPairProduction();
234  pimsc = new G4hMultipleScattering();
235  }
236  ph->RegisterProcess(pimsc, particle);
237  ph->RegisterProcess(new G4hIonisation(), particle);
238  ph->RegisterProcess(pib, particle);
239  ph->RegisterProcess(pip, particle);
240 
241  } else if (particleName == "kaon+" ||
242  particleName == "kaon-" ) {
243 
244  if(nullptr == kb) {
245  kb = new G4hBremsstrahlung();
246  kp = new G4hPairProduction();
247  kmsc = new G4hMultipleScattering();
248  }
249  ph->RegisterProcess(kmsc, particle);
250  ph->RegisterProcess(new G4hIonisation(), particle);
251  ph->RegisterProcess(kb, particle);
252  ph->RegisterProcess(kp, particle);
253 
254  } else if (particleName == "proton" ||
255  particleName == "anti_proton") {
256 
257  if(nullptr == pb) {
258  pb = new G4hBremsstrahlung();
259  pp = new G4hPairProduction();
260  }
261  pmsc = new G4hMultipleScattering();
262 
263  ph->RegisterProcess(pmsc, particle);
264  ph->RegisterProcess(new G4hIonisation(), particle);
265  ph->RegisterProcess(pb, particle);
266  ph->RegisterProcess(pp, particle);
267 
268  } else if (particleName == "B+" ||
269  particleName == "B-" ||
270  particleName == "D+" ||
271  particleName == "D-" ||
272  particleName == "Ds+" ||
273  particleName == "Ds-" ||
274  particleName == "anti_lambda_c+" ||
275  particleName == "anti_omega-" ||
276  particleName == "anti_proton" ||
277  particleName == "anti_sigma_c+" ||
278  particleName == "anti_sigma_c++" ||
279  particleName == "anti_sigma+" ||
280  particleName == "anti_sigma-" ||
281  particleName == "anti_xi_c+" ||
282  particleName == "anti_xi-" ||
283  particleName == "deuteron" ||
284  particleName == "lambda_c+" ||
285  particleName == "omega-" ||
286  particleName == "sigma_c+" ||
287  particleName == "sigma_c++" ||
288  particleName == "sigma+" ||
289  particleName == "sigma-" ||
290  particleName == "tau+" ||
291  particleName == "tau-" ||
292  particleName == "triton" ||
293  particleName == "xi_c+" ||
294  particleName == "xi-" ) {
295 
296  if(nullptr == hmsc) {
297  hmsc = new G4hMultipleScattering("ionmsc");
298  }
299  ph->RegisterProcess(hmsc, particle);
300  ph->RegisterProcess(new G4hIonisation(), particle);
301  }
302  }
303 }
const std::vector< G4String > & PartNames() const
susybsm::MuonSegmentCollection msc
Definition: classes.h:32
dbl * Gamma
Definition: mlp_gen.cc:38
CMSEmStandardPhysics95msc93(const G4String &name, G4int ver, const std::string &reg)