source: trunk/source/physics_lists/builders/src/G4QAtomicPhysics.cc@ 1225

Last change on this file since 1225 was 1203, checked in by garnier, 16 years ago

update CVS

File size: 7.6 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: G4QAtomicPhysics.cc,v 1.1 2009/11/20 10:24:28 mkossov Exp $
27// GEANT4 tag $Name: geant4-09-03-cand-03 $
28//
29//---------------------------------------------------------------------------
30//
31// ClassName: G4QAtomicPhysics
32//
33// Author: M. Kosov 20.11.2009 (similar to G4QAtomicPhysics)
34//
35// Modified:
36//
37//----------------------------------------------------------------------------
38//
39
40#include "G4QAtomicPhysics.hh"
41#include "G4ParticleDefinition.hh"
42#include "G4ProcessManager.hh"
43#include "G4LossTableManager.hh"
44#include "G4EmProcessOptions.hh"
45
46#include "G4ComptonScattering.hh"
47#include "G4GammaConversion.hh"
48#include "G4PhotoElectricEffect.hh"
49
50#include "G4eMultipleScattering.hh"
51#include "G4MuMultipleScattering.hh"
52#include "G4hMultipleScattering.hh"
53
54#include "G4eIonisation.hh"
55#include "G4eBremsstrahlung.hh"
56#include "G4eplusAnnihilation.hh"
57
58#include "G4MuIonisation.hh"
59#include "G4MuBremsstrahlung.hh"
60#include "G4MuPairProduction.hh"
61#include "G4hBremsstrahlung.hh"
62#include "G4hPairProduction.hh"
63
64#include "G4hIonisation.hh"
65#include "G4ionIonisation.hh"
66
67#include "G4Gamma.hh"
68#include "G4Electron.hh"
69#include "G4Positron.hh"
70#include "G4MuonPlus.hh"
71#include "G4MuonMinus.hh"
72#include "G4PionPlus.hh"
73#include "G4PionMinus.hh"
74#include "G4KaonPlus.hh"
75#include "G4KaonMinus.hh"
76#include "G4Proton.hh"
77#include "G4AntiProton.hh"
78#include "G4SigmaPlus.hh"
79#include "G4SigmaMinus.hh"
80#include "G4XiMinus.hh"
81#include "G4OmegaMinus.hh"
82#include "G4AntiSigmaPlus.hh"
83#include "G4AntiSigmaMinus.hh"
84#include "G4AntiXiMinus.hh"
85#include "G4AntiOmegaMinus.hh"
86#include "G4Deuteron.hh"
87#include "G4Triton.hh"
88#include "G4He3.hh"
89#include "G4Alpha.hh"
90#include "G4GenericIon.hh"
91
92G4QAtomicPhysics::G4QAtomicPhysics(G4int ver, const G4String& name)
93 : G4VPhysicsConstructor(name), verbose(ver)
94{
95 G4LossTableManager::Instance();
96}
97
98G4QAtomicPhysics::~G4QAtomicPhysics()
99{}
100
101void G4QAtomicPhysics::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 G4SigmaPlus::SigmaPlus();
122 G4SigmaMinus::SigmaMinus();
123 G4XiMinus::XiMinus();
124 G4OmegaMinus::OmegaMinus();
125 G4AntiSigmaPlus::AntiSigmaPlus();
126 G4AntiSigmaMinus::AntiSigmaMinus();
127 G4AntiXiMinus::AntiXiMinus();
128 G4AntiOmegaMinus::AntiOmegaMinus();
129
130// ions
131 G4Deuteron::Deuteron();
132 G4Triton::Triton();
133 G4He3::He3();
134 G4Alpha::Alpha();
135 G4GenericIon::GenericIonDefinition();
136}
137
138void G4QAtomicPhysics::ConstructProcess()
139{
140 theParticleIterator->reset();
141 while( (*theParticleIterator)() )
142 {
143 G4ParticleDefinition* particlePointer = theParticleIterator->value();
144 G4ProcessManager* pmanager = particlePointer->GetProcessManager();
145 G4String particle = particlePointer->GetParticleName();
146 if(verbose > 1) G4cout<<"###G4QAtomicPhysics::ConstructProcesses: try "
147 <<GetPhysicsName()<<" builder for "<<particle<<G4endl;
148 if ( particle == "gamma")
149 {
150
151 pmanager->AddDiscreteProcess(new G4PhotoElectricEffect);
152 pmanager->AddDiscreteProcess(new G4ComptonScattering);
153 pmanager->AddDiscreteProcess(new G4GammaConversion);
154 }
155 else if( particle == "e-")
156 {
157 pmanager->AddProcess(new G4eMultipleScattering(), -1, 1, 1);
158 pmanager->AddProcess(new G4eIonisation, -1, 2, 2);
159 pmanager->AddProcess(new G4eBremsstrahlung(), -1,-3, 3);
160 }
161 else if( particle == "e+")
162 {
163 pmanager->AddProcess(new G4eMultipleScattering(), -1, 1, 1);
164 pmanager->AddProcess(new G4eIonisation, -1, 2, 2);
165 pmanager->AddProcess(new G4eBremsstrahlung, -1,-3, 3);
166 pmanager->AddProcess(new G4eplusAnnihilation, 0,-1, 4);
167 }
168 else if( particle == "mu+" || particle == "mu-" )
169 {
170 pmanager->AddProcess(new G4MuMultipleScattering, -1, 1, 1);
171 pmanager->AddProcess(new G4MuIonisation, -1, 2, 2);
172 pmanager->AddProcess(new G4MuBremsstrahlung, -1,-3, 3);
173 pmanager->AddProcess(new G4MuPairProduction, -1,-4, 4);
174 }
175 else if( particle == "pi-" || particle == "pi+" ||
176 particle == "kaon-" || particle == "kaon+" ||
177 particle == "proton" || particle == "anti_proton" ||
178 particle == "tau-" || particle == "tau+" ||
179 particle == "deuteron" || particle == "triton" ||
180 particle == "xi-" || particle == "anti_xi-" ||
181 particle == "sigma+" || particle == "anti_sigma+" ||
182 particle == "sigma-" || particle == "anti_sigma-" ||
183 particle == "omega-" || particle == "anti_omega-" )
184 {
185 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
186 pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
187 pmanager->AddProcess(new G4hBremsstrahlung, -1,-3, 3);
188 pmanager->AddProcess(new G4hPairProduction, -1,-4, 4);
189 }
190 else if(particle == "alpha" || particle == "He3" ||particle == "GenericIon")
191 {
192 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
193 pmanager->AddProcess(new G4ionIonisation, -1, 2, 2);
194 }
195 else if (particle == "B+" || particle == "B-" ||
196 particle == "D+" || particle == "D-" ||
197 particle == "Ds+" || particle == "Ds-" ||
198 particle == "lambda_c+" || particle == "anti_lambda_c+" ||
199 particle == "sigma_c+" || particle == "anti_sigma_c+" ||
200 particle == "sigma_c++" || particle == "anti_sigma_c++" ||
201 particle == "xi_c+" || particle == "anti_xi_c+" )
202 {
203 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
204 pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
205 }
206 }
207 G4EmProcessOptions opt;
208 opt.SetVerbose(verbose);
209}
Note: See TracBrowser for help on using the repository browser.