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

Last change on this file since 831 was 825, checked in by garnier, 17 years ago

import all except CVS

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