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

Last change on this file since 1320 was 1315, checked in by garnier, 15 years ago

update geant4-09-04-beta-cand-01 interfaces-V09-03-09 vis-V09-03-08

File size: 8.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.21 2010/06/02 17:21:29 vnivanch Exp $
27// GEANT4 tag $Name: geant4-09-04-beta-cand-01 $
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 "G4eMultipleScattering.hh"
57#include "G4MuMultipleScattering.hh"
58#include "G4hMultipleScattering.hh"
59
60#include "G4eIonisation.hh"
61#include "G4eBremsstrahlung.hh"
62#include "G4eplusAnnihilation.hh"
63
64#include "G4MuIonisation.hh"
65#include "G4MuBremsstrahlung.hh"
66#include "G4MuPairProduction.hh"
67#include "G4hBremsstrahlung.hh"
68#include "G4hPairProduction.hh"
69
70#include "G4hIonisation.hh"
71#include "G4ionIonisation.hh"
72
73#include "G4Gamma.hh"
74#include "G4Electron.hh"
75#include "G4Positron.hh"
76#include "G4MuonPlus.hh"
77#include "G4MuonMinus.hh"
78#include "G4PionPlus.hh"
79#include "G4PionMinus.hh"
80#include "G4KaonPlus.hh"
81#include "G4KaonMinus.hh"
82#include "G4Proton.hh"
83#include "G4AntiProton.hh"
84#include "G4Deuteron.hh"
85#include "G4Triton.hh"
86#include "G4He3.hh"
87#include "G4Alpha.hh"
88#include "G4GenericIon.hh"
89
90//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
91
92G4EmStandardPhysics::G4EmStandardPhysics(G4int ver)
93 : G4VPhysicsConstructor("G4EmStandard"), verbose(ver)
94{
95 G4LossTableManager::Instance();
96}
97
98//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
99
100G4EmStandardPhysics::G4EmStandardPhysics(G4int ver, const G4String&)
101 : G4VPhysicsConstructor("G4EmStandard"), verbose(ver)
102{
103 G4LossTableManager::Instance();
104}
105
106//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
107
108G4EmStandardPhysics::~G4EmStandardPhysics()
109{}
110
111//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
112
113void G4EmStandardPhysics::ConstructParticle()
114{
115// gamma
116 G4Gamma::Gamma();
117
118// leptons
119 G4Electron::Electron();
120 G4Positron::Positron();
121 G4MuonPlus::MuonPlus();
122 G4MuonMinus::MuonMinus();
123
124// mesons
125 G4PionPlus::PionPlusDefinition();
126 G4PionMinus::PionMinusDefinition();
127 G4KaonPlus::KaonPlusDefinition();
128 G4KaonMinus::KaonMinusDefinition();
129
130// barions
131 G4Proton::Proton();
132 G4AntiProton::AntiProton();
133
134// ions
135 G4Deuteron::Deuteron();
136 G4Triton::Triton();
137 G4He3::He3();
138 G4Alpha::Alpha();
139 G4GenericIon::GenericIonDefinition();
140}
141
142//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
143
144void G4EmStandardPhysics::ConstructProcess()
145{
146 // Add standard EM Processes
147
148 theParticleIterator->reset();
149 while( (*theParticleIterator)() ){
150 G4ParticleDefinition* particle = theParticleIterator->value();
151 G4ProcessManager* pmanager = particle->GetProcessManager();
152 G4String particleName = particle->GetParticleName();
153 if(verbose > 1)
154 G4cout << "### " << GetPhysicsName() << " instantiates for "
155 << particleName << G4endl;
156
157 if (particleName == "gamma") {
158
159 pmanager->AddDiscreteProcess(new G4PhotoElectricEffect);
160 pmanager->AddDiscreteProcess(new G4ComptonScattering);
161 pmanager->AddDiscreteProcess(new G4GammaConversion);
162
163 } else if (particleName == "e-") {
164
165 pmanager->AddProcess(new G4eMultipleScattering(), -1, 1, 1);
166 pmanager->AddProcess(new G4eIonisation, -1, 2, 2);
167 pmanager->AddProcess(new G4eBremsstrahlung(), -1,-3, 3);
168
169 } else if (particleName == "e+") {
170
171 pmanager->AddProcess(new G4eMultipleScattering(), -1, 1, 1);
172 pmanager->AddProcess(new G4eIonisation, -1, 2, 2);
173 pmanager->AddProcess(new G4eBremsstrahlung, -1,-3, 3);
174 pmanager->AddProcess(new G4eplusAnnihilation, 0,-1, 4);
175
176 } else if (particleName == "mu+" ||
177 particleName == "mu-" ) {
178
179 pmanager->AddProcess(new G4MuMultipleScattering,-1, 1, 1);
180 pmanager->AddProcess(new G4MuIonisation, -1, 2, 2);
181 pmanager->AddProcess(new G4MuBremsstrahlung, -1,-3, 3);
182 pmanager->AddProcess(new G4MuPairProduction, -1,-4, 4);
183
184 } else if (particleName == "alpha" ||
185 particleName == "He3") {
186
187 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
188 pmanager->AddProcess(new G4ionIonisation, -1, 2, 2);
189
190 } else if (particleName == "GenericIon") {
191
192 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
193 pmanager->AddProcess(new G4ionIonisation, -1, 2, 2);
194
195 } else if (particleName == "pi+" ||
196 particleName == "pi-" ||
197 particleName == "kaon+" ||
198 particleName == "kaon-" ||
199 particleName == "proton" ) {
200
201 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
202 pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
203 pmanager->AddProcess(new G4hBremsstrahlung, -1,-3, 3);
204 pmanager->AddProcess(new G4hPairProduction, -1,-4, 4);
205
206 } else if (particleName == "B+" ||
207 particleName == "B-" ||
208 particleName == "D+" ||
209 particleName == "D-" ||
210 particleName == "Ds+" ||
211 particleName == "Ds-" ||
212 particleName == "anti_lambda_c+" ||
213 particleName == "anti_omega-" ||
214 particleName == "anti_proton" ||
215 particleName == "anti_sigma_c+" ||
216 particleName == "anti_sigma_c++" ||
217 particleName == "anti_sigma+" ||
218 particleName == "anti_sigma-" ||
219 particleName == "anti_xi_c+" ||
220 particleName == "anti_xi-" ||
221 particleName == "deuteron" ||
222 particleName == "lambda_c+" ||
223 particleName == "omega-" ||
224 particleName == "sigma_c+" ||
225 particleName == "sigma_c++" ||
226 particleName == "sigma+" ||
227 particleName == "sigma-" ||
228 particleName == "tau+" ||
229 particleName == "tau-" ||
230 particleName == "triton" ||
231 particleName == "xi_c+" ||
232 particleName == "xi-" ) {
233
234 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
235 pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
236 }
237 }
238 G4EmProcessOptions opt;
239 opt.SetVerbose(verbose);
240}
241
242//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
Note: See TracBrowser for help on using the repository browser.