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  : G4VPhysicsConstructor(name), verbose(ver), region(reg) {
75  G4EmParameters* param = G4EmParameters::Instance();
76  param->SetDefaults();
77  param->SetVerbose(verbose);
78  param->SetApplyCuts(true);
79  param->SetStepFunction(0.8, 1 * CLHEP::mm);
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  // Add standard EM Processes
135  G4PhysicsListHelper* ph = G4PhysicsListHelper::GetPhysicsListHelper();
136 
137  // muon & hadron bremsstrahlung and pair production
138  G4MuBremsstrahlung* mub = nullptr;
139  G4MuPairProduction* mup = nullptr;
140  G4hBremsstrahlung* pib = nullptr;
141  G4hPairProduction* pip = nullptr;
142  G4hBremsstrahlung* kb = nullptr;
143  G4hPairProduction* kp = nullptr;
144  G4hBremsstrahlung* pb = nullptr;
145  G4hPairProduction* pp = nullptr;
146 
147  // muon & hadron multiple scattering
148  G4MuMultipleScattering* mumsc = nullptr;
149  G4hMultipleScattering* pimsc = nullptr;
150  G4hMultipleScattering* kmsc = nullptr;
151  G4hMultipleScattering* pmsc = nullptr;
152  G4hMultipleScattering* hmsc = nullptr;
153 
154  // This EM builder takes default models of Geant4 10 EMV.
155  // Multiple scattering by Urban for all particles
156  // except e+e- for which the Urban93 model is used
157 
158  G4ParticleTable* table = G4ParticleTable::GetParticleTable();
159  EmParticleList emList;
160  for (const auto& particleName : emList.PartNames()) {
161  G4ParticleDefinition* particle = table->FindParticle(particleName);
162  if (verbose > 1)
163  G4cout << "### " << GetPhysicsName() << " instantiates for " << particleName << " at " << particle << G4endl;
164 
165  if (particleName == "gamma") {
166  ph->RegisterProcess(new G4PhotoElectricEffect(), particle);
167  ph->RegisterProcess(new G4ComptonScattering(), particle);
168  ph->RegisterProcess(new G4GammaConversion(), particle);
169 
170  } else if (particleName == "e-") {
171  G4eIonisation* eioni = new G4eIonisation();
172  G4eMultipleScattering* msc = new G4eMultipleScattering;
173  msc->SetEmModel(new UrbanMscModel93());
174 
175  G4eBremsstrahlung* ebrem = new G4eBremsstrahlung();
176 
177  ph->RegisterProcess(msc, particle);
178  ph->RegisterProcess(eioni, particle);
179  ph->RegisterProcess(ebrem, particle);
180 
181  } else if (particleName == "e+") {
182  G4eIonisation* eioni = new G4eIonisation();
183 
184  G4eMultipleScattering* msc = new G4eMultipleScattering;
185  msc->SetEmModel(new UrbanMscModel93());
186 
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+" || particleName == "mu-") {
195  if (nullptr == mub) {
196  mub = new G4MuBremsstrahlung();
197  mup = new G4MuPairProduction();
198  mumsc = new G4MuMultipleScattering();
199  }
200  ph->RegisterProcess(mumsc, particle);
201  ph->RegisterProcess(new G4MuIonisation(), particle);
202  ph->RegisterProcess(mub, particle);
203  ph->RegisterProcess(mup, particle);
204 
205  } else if (particleName == "alpha" || particleName == "He3") {
206  ph->RegisterProcess(new G4hMultipleScattering(), particle);
207  ph->RegisterProcess(new G4ionIonisation(), particle);
208 
209  } else if (particleName == "GenericIon") {
210  if (nullptr == hmsc) {
211  hmsc = new G4hMultipleScattering("ionmsc");
212  }
213  ph->RegisterProcess(hmsc, particle);
214  ph->RegisterProcess(new G4ionIonisation(), particle);
215 
216  } else if (particleName == "pi+" || particleName == "pi-") {
217  if (nullptr == pib) {
218  pib = new G4hBremsstrahlung();
219  pip = new G4hPairProduction();
220  pimsc = new G4hMultipleScattering();
221  }
222  ph->RegisterProcess(pimsc, particle);
223  ph->RegisterProcess(new G4hIonisation(), particle);
224  ph->RegisterProcess(pib, particle);
225  ph->RegisterProcess(pip, particle);
226 
227  } else if (particleName == "kaon+" || particleName == "kaon-") {
228  if (nullptr == kb) {
229  kb = new G4hBremsstrahlung();
230  kp = new G4hPairProduction();
231  kmsc = new G4hMultipleScattering();
232  }
233  ph->RegisterProcess(kmsc, particle);
234  ph->RegisterProcess(new G4hIonisation(), particle);
235  ph->RegisterProcess(kb, particle);
236  ph->RegisterProcess(kp, particle);
237 
238  } else if (particleName == "proton" || particleName == "anti_proton") {
239  if (nullptr == pb) {
240  pb = new G4hBremsstrahlung();
241  pp = new G4hPairProduction();
242  }
243  pmsc = new G4hMultipleScattering();
244 
245  ph->RegisterProcess(pmsc, particle);
246  ph->RegisterProcess(new G4hIonisation(), particle);
247  ph->RegisterProcess(pb, particle);
248  ph->RegisterProcess(pp, particle);
249 
250  } else if (particleName == "B+" || particleName == "B-" || particleName == "D+" || particleName == "D-" ||
251  particleName == "Ds+" || particleName == "Ds-" || particleName == "anti_lambda_c+" ||
252  particleName == "anti_omega-" || particleName == "anti_proton" || particleName == "anti_sigma_c+" ||
253  particleName == "anti_sigma_c++" || particleName == "anti_sigma+" || particleName == "anti_sigma-" ||
254  particleName == "anti_xi_c+" || particleName == "anti_xi-" || particleName == "deuteron" ||
255  particleName == "lambda_c+" || particleName == "omega-" || particleName == "sigma_c+" ||
256  particleName == "sigma_c++" || particleName == "sigma+" || particleName == "sigma-" ||
257  particleName == "tau+" || particleName == "tau-" || particleName == "triton" ||
258  particleName == "xi_c+" || particleName == "xi-") {
259  if (nullptr == hmsc) {
260  hmsc = new G4hMultipleScattering("ionmsc");
261  }
262  ph->RegisterProcess(hmsc, particle);
263  ph->RegisterProcess(new G4hIonisation(), particle);
264  }
265  }
266 }
const std::vector< G4String > & PartNames() const
int kp
susybsm::MuonSegmentCollection msc
Definition: classes.h:32
dbl * Gamma
Definition: mlp_gen.cc:38
CMSEmStandardPhysics95msc93(const G4String &name, G4int ver, const std::string &reg)