Geant4  v4-10.4-release
 모두 클래스 네임스페이스들 파일들 함수 변수 타입정의 열거형 타입 열거형 멤버 Friends 매크로 그룹들 페이지들
G4EmStandardPhysics.cc
이 파일의 문서화 페이지로 가기
1 //
2 // ********************************************************************
3 // * License and Disclaimer *
4 // * *
5 // * The Geant4 software is copyright of the Copyright Holders of *
6 // * the Geant4 Collaboration. It is provided under the terms and *
7 // * conditions of the Geant4 Software License, included in the file *
8 // * LICENSE and available at http://cern.ch/geant4/license . These *
9 // * include a list of copyright holders. *
10 // * *
11 // * Neither the authors of this software system, nor their employing *
12 // * institutes,nor the agencies providing financial support for this *
13 // * work make any representation or warranty, express or implied, *
14 // * regarding this software system or assume any liability for its *
15 // * use. Please see the license in the file LICENSE and URL above *
16 // * for the full disclaimer and the limitation of liability. *
17 // * *
18 // * This code implementation is the result of the scientific and *
19 // * technical work of the GEANT4 collaboration. *
20 // * By using, copying, modifying or distributing the software (or *
21 // * any work based on the software) you agree to acknowledge its *
22 // * use in resulting scientific publications, and indicate your *
23 // * acceptance of all terms of the Geant4 Software license. *
24 // ********************************************************************
25 //
26 // $Id: G4EmStandardPhysics.cc 109122 2018-03-28 13:08:57Z gcosmo $
27 //
28 //---------------------------------------------------------------------------
29 //
30 // ClassName: G4EmStandardPhysics
31 //
32 // Author: V.Ivanchenko 09.11.2005
33 //
34 // Modified:
35 // 05.12.2005 V.Ivanchenko add controlled verbosity
36 // 13.11.2006 V.Ivanchenko use G4hMultipleScattering
37 // 23.11.2006 V.Ivanchenko remove mscStepLimit option and improve cout
38 // 13.02.2007 V.Ivanchenko use G4hMultipleScattering for muons
39 // 13.02.2007 V.Ivanchenko set skin=0.0
40 // 21.04.2008 V.Ivanchenko add long-lived D and B mesons
41 //
42 //----------------------------------------------------------------------------
43 //
44 
45 #include "G4EmStandardPhysics.hh"
46 #include "G4SystemOfUnits.hh"
47 #include "G4ParticleDefinition.hh"
48 #include "G4EmParameters.hh"
49 #include "G4LossTableManager.hh"
50 
51 #include "G4ComptonScattering.hh"
52 #include "G4GammaConversion.hh"
53 #include "G4PhotoElectricEffect.hh"
54 #include "G4RayleighScattering.hh"
56 
57 #include "G4eMultipleScattering.hh"
59 #include "G4hMultipleScattering.hh"
60 #include "G4CoulombScattering.hh"
62 #include "G4WentzelVIModel.hh"
63 #include "G4UrbanMscModel.hh"
64 
69 
70 #include "G4eIonisation.hh"
71 #include "G4eBremsstrahlung.hh"
72 #include "G4eplusAnnihilation.hh"
73 #include "G4UAtomicDeexcitation.hh"
74 
75 #include "G4MuIonisation.hh"
76 #include "G4MuBremsstrahlung.hh"
77 #include "G4MuPairProduction.hh"
78 #include "G4hBremsstrahlung.hh"
79 #include "G4hPairProduction.hh"
80 
81 #include "G4hIonisation.hh"
82 #include "G4ionIonisation.hh"
83 #include "G4alphaIonisation.hh"
84 
85 #include "G4ParticleTable.hh"
86 #include "G4Gamma.hh"
87 #include "G4Electron.hh"
88 #include "G4Positron.hh"
89 #include "G4MuonPlus.hh"
90 #include "G4MuonMinus.hh"
91 #include "G4PionPlus.hh"
92 #include "G4PionMinus.hh"
93 #include "G4KaonPlus.hh"
94 #include "G4KaonMinus.hh"
95 #include "G4Proton.hh"
96 #include "G4AntiProton.hh"
97 #include "G4Deuteron.hh"
98 #include "G4Triton.hh"
99 #include "G4He3.hh"
100 #include "G4Alpha.hh"
101 #include "G4GenericIon.hh"
102 
103 #include "G4PhysicsListHelper.hh"
104 #include "G4BuilderType.hh"
105 #include "G4EmModelActivator.hh"
106 
107 // factory
109 //
111 
112 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
113 
115  : G4VPhysicsConstructor("G4EmStandard"), verbose(ver)
116 {
118  param->SetDefaults();
119  param->SetVerbose(verbose);
121 }
122 
123 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
124 
126 {}
127 
128 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
129 
131 {
132  // gamma
133  G4Gamma::Gamma();
134 
135  // leptons
140 
141  // mesons
146 
147  // barions
150 
151  // ions
154  G4He3::He3();
155  G4Alpha::Alpha();
157 }
158 
159 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
160 
162 {
163  if(verbose > 1) {
164  G4cout << "### " << GetPhysicsName() << " Construct Processes " << G4endl;
165  }
167 
168  // muon & hadron bremsstrahlung and pair production
177 
178  // muon & hadron multiple scattering
180  mumsc->SetEmModel(new G4WentzelVIModel());
182 
184  pimsc->SetEmModel(new G4WentzelVIModel());
186 
188  kmsc->SetEmModel(new G4WentzelVIModel());
190 
191  G4hMultipleScattering* hmsc = new G4hMultipleScattering("ionmsc");
192 
193  // high energy limit for e+- scattering models
194  G4double highEnergyLimit = G4EmParameters::Instance()->MscEnergyLimit();
195 
196  // Add standard EM Processes
198  for(const auto& particleName : partList.PartNames()) {
199  G4ParticleDefinition* particle = table->FindParticle(particleName);
200  if (!particle) { continue; }
201  if (particleName == "gamma") {
202 
205  ph->RegisterProcess(pee, particle);
206 
207  ph->RegisterProcess(new G4ComptonScattering(), particle);
208  ph->RegisterProcess(new G4GammaConversion(), particle);
209  ph->RegisterProcess(new G4RayleighScattering(), particle);
210 
211  } else if (particleName == "e-") {
212 
214  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
215  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
216  msc1->SetHighEnergyLimit(highEnergyLimit);
217  msc2->SetLowEnergyLimit(highEnergyLimit);
218  msc->SetEmModel(msc1);
219  msc->SetEmModel(msc2);
220 
223  ss->SetEmModel(ssm);
224  ss->SetMinKinEnergy(highEnergyLimit);
225  ssm->SetLowEnergyLimit(highEnergyLimit);
226  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
227 
228  ph->RegisterProcess(msc, particle);
229  ph->RegisterProcess(new G4eIonisation(), particle);
230  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
231  ph->RegisterProcess(ss, particle);
232 
233  } else if (particleName == "e+") {
234 
236  G4UrbanMscModel* msc1 = new G4UrbanMscModel();
237  G4WentzelVIModel* msc2 = new G4WentzelVIModel();
238  msc1->SetHighEnergyLimit(highEnergyLimit);
239  msc2->SetLowEnergyLimit(highEnergyLimit);
240  msc->SetEmModel(msc1);
241  msc->SetEmModel(msc2);
242 
245  ss->SetEmModel(ssm);
246  ss->SetMinKinEnergy(highEnergyLimit);
247  ssm->SetLowEnergyLimit(highEnergyLimit);
248  ssm->SetActivationLowEnergyLimit(highEnergyLimit);
249 
250  ph->RegisterProcess(msc, particle);
251  ph->RegisterProcess(new G4eIonisation(), particle);
252  ph->RegisterProcess(new G4eBremsstrahlung(), particle);
253  ph->RegisterProcess(new G4eplusAnnihilation(), particle);
254  ph->RegisterProcess(ss, particle);
255 
256  } else if (particleName == "mu+" ||
257  particleName == "mu-" ) {
258 
259  ph->RegisterProcess(mumsc, particle);
260  ph->RegisterProcess(new G4MuIonisation(), particle);
261  ph->RegisterProcess(mub, particle);
262  ph->RegisterProcess(mup, particle);
263  ph->RegisterProcess(muss, particle);
264 
265  } else if (particleName == "alpha" ||
266  particleName == "He3") {
267 
268  ph->RegisterProcess(new G4hMultipleScattering(), particle);
269  ph->RegisterProcess(new G4ionIonisation(), particle);
270 
271  } else if (particleName == "GenericIon") {
272 
273  ph->RegisterProcess(hmsc, particle);
274  ph->RegisterProcess(new G4ionIonisation(), particle);
275 
276  } else if (particleName == "pi+" ||
277  particleName == "pi-" ) {
278 
279  ph->RegisterProcess(pimsc, particle);
280  ph->RegisterProcess(new G4hIonisation(), particle);
281  ph->RegisterProcess(pib, particle);
282  ph->RegisterProcess(pip, particle);
283  ph->RegisterProcess(piss, particle);
284 
285  } else if (particleName == "kaon+" ||
286  particleName == "kaon-" ) {
287 
288  ph->RegisterProcess(kmsc, particle);
289  ph->RegisterProcess(new G4hIonisation(), particle);
290  ph->RegisterProcess(kb, particle);
291  ph->RegisterProcess(kp, particle);
292  ph->RegisterProcess(kss, particle);
293 
294  } else if (particleName == "proton" ||
295  particleName == "anti_proton") {
296 
298  pmsc->SetEmModel(new G4WentzelVIModel());
299 
300  ph->RegisterProcess(pmsc, particle);
301  ph->RegisterProcess(new G4hIonisation(), particle);
302  ph->RegisterProcess(pb, particle);
303  ph->RegisterProcess(pp, particle);
304  ph->RegisterProcess(new G4CoulombScattering(), particle);
305 
306  } else if (particleName == "B+" ||
307  particleName == "B-" ||
308  particleName == "D+" ||
309  particleName == "D-" ||
310  particleName == "Ds+" ||
311  particleName == "Ds-" ||
312  particleName == "anti_He3" ||
313  particleName == "anti_alpha" ||
314  particleName == "anti_deuteron" ||
315  particleName == "anti_lambda_c+" ||
316  particleName == "anti_omega-" ||
317  particleName == "anti_sigma_c+" ||
318  particleName == "anti_sigma_c++" ||
319  particleName == "anti_sigma+" ||
320  particleName == "anti_sigma-" ||
321  particleName == "anti_triton" ||
322  particleName == "anti_xi_c+" ||
323  particleName == "anti_xi-" ||
324  particleName == "deuteron" ||
325  particleName == "lambda_c+" ||
326  particleName == "omega-" ||
327  particleName == "sigma_c+" ||
328  particleName == "sigma_c++" ||
329  particleName == "sigma+" ||
330  particleName == "sigma-" ||
331  particleName == "tau+" ||
332  particleName == "tau-" ||
333  particleName == "triton" ||
334  particleName == "xi_c+" ||
335  particleName == "xi-" ) {
336 
337  ph->RegisterProcess(hmsc, particle);
338  ph->RegisterProcess(new G4hIonisation(), particle);
339  }
340  }
341 
342  // Deexcitation
343  //
346 
348 }
349 
350 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
G4ParticleDefinition * FindParticle(G4int PDGEncoding)
#define G4_DECLARE_PHYSCONSTR_FACTORY(physics_constructor)
static G4He3 * He3()
Definition: G4He3.cc:94
const std::vector< G4String > & PartNames() const
static G4ParticleTable * GetParticleTable()
void SetHighEnergyLimit(G4double)
Definition: G4VEmModel.hh:707
virtual void ConstructParticle()
void SetMinKinEnergy(G4double e)
#define G4endl
Definition: G4ios.hh:61
static G4AntiProton * AntiProton()
Definition: G4AntiProton.cc:93
void SetVerbose(G4int val)
static G4MuonMinus * MuonMinus()
Definition: G4MuonMinus.cc:100
static G4Proton * Proton()
Definition: G4Proton.cc:93
static G4PionPlus * PionPlusDefinition()
Definition: G4PionPlus.cc:93
static G4Deuteron * Deuteron()
Definition: G4Deuteron.cc:94
static G4Gamma * Gamma()
Definition: G4Gamma.cc:86
double G4double
Definition: G4Types.hh:76
void SetActivationLowEnergyLimit(G4double)
Definition: G4VEmModel.hh:728
void SetEmModel(G4VEmModel *, G4int index=0)
const G4String & GetPhysicsName() const
G4EmStandardPhysics(G4int ver=0, const G4String &name="")
static G4Alpha * Alpha()
Definition: G4Alpha.cc:89
static G4Positron * Positron()
Definition: G4Positron.cc:94
static G4PionMinus * PionMinusDefinition()
Definition: G4PionMinus.cc:93
static G4Electron * Electron()
Definition: G4Electron.cc:94
G4bool RegisterProcess(G4VProcess *process, G4ParticleDefinition *particle)
static G4KaonMinus * KaonMinusDefinition()
Definition: G4KaonMinus.cc:108
static G4GenericIon * GenericIonDefinition()
Definition: G4GenericIon.cc:88
static G4PhysicsListHelper * GetPhysicsListHelper()
int G4int
Definition: G4Types.hh:78
static G4Triton * Triton()
Definition: G4Triton.cc:95
void SetEmModel(G4VMscModel *, size_t index=0)
void SetLowEnergyLimit(G4double)
Definition: G4VEmModel.hh:714
virtual void ConstructProcess()
static G4MuonPlus * MuonPlus()
Definition: G4MuonPlus.cc:99
G4GLOB_DLL std::ostream G4cout
G4EmParticleList partList
static G4LossTableManager * Instance()
void SetAtomDeexcitation(G4VAtomDeexcitation *)
static G4KaonPlus * KaonPlusDefinition()
Definition: G4KaonPlus.cc:108
G4double MscEnergyLimit() const
static G4EmParameters * Instance()