source: trunk/source/physics_lists/builders/src/G4EmStandardPhysics_option1.cc@ 866

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

geant4.8.2 beta

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