source: trunk/source/physics_lists/builders/src/G4EmStandardPhysics.cc@ 896

Last change on this file since 896 was 850, checked in by garnier, 17 years ago

geant4.8.2 beta

File size: 7.5 KB
Line 
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,v 1.13 2008/04/22 18:28:37 vnivanch Exp $
27// GEANT4 tag $Name: HEAD $
28//
29//---------------------------------------------------------------------------
30//
31// ClassName: G4EmStandardPhysics
32//
33// Author: V.Ivanchenko 09.11.2005
34//
35// Modified:
36// 05.12.2005 V.Ivanchenko add controlled verbosity
37// 13.11.2006 V.Ivanchenko use G4hMultipleScattering
38// 23.11.2006 V.Ivanchenko remove mscStepLimit option and improve cout
39// 13.02.2007 V.Ivanchenko use G4hMultipleScattering for muons
40// 13.02.2007 V.Ivanchenko set skin=0.0
41// 21.04.2008 V.Ivanchenko add long-lived D and B mesons
42//
43//----------------------------------------------------------------------------
44//
45
46#include "G4EmStandardPhysics.hh"
47#include "G4ParticleDefinition.hh"
48#include "G4ProcessManager.hh"
49#include "G4LossTableManager.hh"
50#include "G4EmProcessOptions.hh"
51
52#include "G4ComptonScattering.hh"
53#include "G4GammaConversion.hh"
54#include "G4PhotoElectricEffect.hh"
55
56#include "G4MultipleScattering.hh"
57#include "G4hMultipleScattering.hh"
58
59#include "G4eIonisation.hh"
60#include "G4eBremsstrahlung.hh"
61#include "G4eplusAnnihilation.hh"
62
63#include "G4MuIonisation.hh"
64#include "G4MuBremsstrahlung.hh"
65#include "G4MuPairProduction.hh"
66
67#include "G4hIonisation.hh"
68#include "G4ionIonisation.hh"
69
70#include "G4Gamma.hh"
71#include "G4Electron.hh"
72#include "G4Positron.hh"
73#include "G4MuonPlus.hh"
74#include "G4MuonMinus.hh"
75#include "G4PionPlus.hh"
76#include "G4PionMinus.hh"
77#include "G4KaonPlus.hh"
78#include "G4KaonMinus.hh"
79#include "G4Proton.hh"
80#include "G4AntiProton.hh"
81#include "G4Deuteron.hh"
82#include "G4Triton.hh"
83#include "G4He3.hh"
84#include "G4Alpha.hh"
85#include "G4GenericIon.hh"
86
87//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
88
89G4EmStandardPhysics::G4EmStandardPhysics(G4int ver, const G4String& name)
90 : G4VPhysicsConstructor(name), verbose(ver)
91{
92 G4LossTableManager::Instance();
93}
94
95//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
96
97G4EmStandardPhysics::~G4EmStandardPhysics()
98{}
99
100//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
101
102void G4EmStandardPhysics::ConstructParticle()
103{
104// gamma
105 G4Gamma::Gamma();
106
107// leptons
108 G4Electron::Electron();
109 G4Positron::Positron();
110 G4MuonPlus::MuonPlus();
111 G4MuonMinus::MuonMinus();
112
113// mesons
114 G4PionPlus::PionPlusDefinition();
115 G4PionMinus::PionMinusDefinition();
116 G4KaonPlus::KaonPlusDefinition();
117 G4KaonMinus::KaonMinusDefinition();
118
119// barions
120 G4Proton::Proton();
121 G4AntiProton::AntiProton();
122
123// ions
124 G4Deuteron::Deuteron();
125 G4Triton::Triton();
126 G4He3::He3();
127 G4Alpha::Alpha();
128 G4GenericIon::GenericIonDefinition();
129}
130
131//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
132
133void G4EmStandardPhysics::ConstructProcess()
134{
135 // Add standard EM Processes
136
137 theParticleIterator->reset();
138 while( (*theParticleIterator)() ){
139 G4ParticleDefinition* particle = theParticleIterator->value();
140 G4ProcessManager* pmanager = particle->GetProcessManager();
141 G4String particleName = particle->GetParticleName();
142 if(verbose > 1)
143 G4cout << "### " << GetPhysicsName() << " instantiates for "
144 << particleName << G4endl;
145
146 if (particleName == "gamma") {
147
148 pmanager->AddDiscreteProcess(new G4PhotoElectricEffect);
149 pmanager->AddDiscreteProcess(new G4ComptonScattering);
150 pmanager->AddDiscreteProcess(new G4GammaConversion);
151
152 } else if (particleName == "e-") {
153
154 pmanager->AddProcess(new G4MultipleScattering, -1, 1, 1);
155 pmanager->AddProcess(new G4eIonisation, -1, 2, 2);
156 pmanager->AddProcess(new G4eBremsstrahlung(), -1, 3, 3);
157
158 } else if (particleName == "e+") {
159
160 pmanager->AddProcess(new G4MultipleScattering, -1, 1, 1);
161 pmanager->AddProcess(new G4eIonisation, -1, 2, 2);
162 pmanager->AddProcess(new G4eBremsstrahlung, -1, 3, 3);
163 pmanager->AddProcess(new G4eplusAnnihilation, 0,-1, 4);
164
165 } else if (particleName == "mu+" ||
166 particleName == "mu-" ) {
167
168 pmanager->AddProcess(new G4hMultipleScattering,-1, 1, 1);
169 pmanager->AddProcess(new G4MuIonisation, -1, 2, 2);
170 pmanager->AddProcess(new G4MuBremsstrahlung, -1, 3, 3);
171 pmanager->AddProcess(new G4MuPairProduction, -1, 4, 4);
172
173 } else if (particleName == "alpha" ||
174 particleName == "He3" ||
175 particleName == "GenericIon") {
176
177 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
178 pmanager->AddProcess(new G4ionIonisation, -1, 2, 2);
179
180 } else if (particleName == "B+" ||
181 particleName == "B-" ||
182 particleName == "D+" ||
183 particleName == "D-" ||
184 particleName == "Ds+" ||
185 particleName == "Ds-" ||
186 particleName == "anti_lambda_c+" ||
187 particleName == "anti_omega-" ||
188 particleName == "anti_proton" ||
189 particleName == "anti_sigma+" ||
190 particleName == "anti_sigma-" ||
191 particleName == "anti_xi_c+" ||
192 particleName == "anti_xi-" ||
193 particleName == "deuteron" ||
194 particleName == "kaon+" ||
195 particleName == "kaon-" ||
196 particleName == "lambda_c+" ||
197 particleName == "omega-" ||
198 particleName == "pi+" ||
199 particleName == "pi-" ||
200 particleName == "proton" ||
201 particleName == "sigma+" ||
202 particleName == "sigma-" ||
203 particleName == "tau+" ||
204 particleName == "tau-" ||
205 particleName == "triton" ||
206 particleName == "xi_c+" ||
207 particleName == "xi-" ) {
208
209 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
210 pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
211 }
212 }
213 G4EmProcessOptions opt;
214 opt.SetVerbose(verbose);
215}
216
217//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
Note: See TracBrowser for help on using the repository browser.