CMS 3D CMS Logo

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