source: trunk/source/physics_lists/builders/src/G4EmLivermorePolarizedPhysics.cc@ 1306

Last change on this file since 1306 was 1228, checked in by garnier, 16 years ago

update geant4.9.3 tag

File size: 12.4 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: G4EmLivermorePolarizedPhysics.cc,v 1.6 2009/11/24 12:53:22 vnivanch Exp $
27// GEANT4 tag $Name: geant4-09-03 $
28
29#include "G4EmLivermorePolarizedPhysics.hh"
30
31#include "G4ParticleDefinition.hh"
32#include "G4ProcessManager.hh"
33
34// *** Processes and models
35
36// gamma
37
38#include "G4PhotoElectricEffect.hh"
39#include "G4LivermorePhotoElectricModel.hh"
40
41#include "G4ComptonScattering.hh"
42#include "G4LivermorePolarizedComptonModel.hh"
43
44#include "G4GammaConversion.hh"
45#include "G4LivermoreGammaConversionModel.hh"
46
47#include "G4RayleighScattering.hh"
48#include "G4LivermorePolarizedRayleighModel.hh"
49
50// e-
51
52#include "G4eMultipleScattering.hh"
53#include "G4UniversalFluctuation.hh"
54
55#include "G4eIonisation.hh"
56#include "G4LivermoreIonisationModel.hh"
57
58#include "G4eBremsstrahlung.hh"
59#include "G4LivermoreBremsstrahlungModel.hh"
60
61// e+
62
63#include "G4eplusAnnihilation.hh"
64
65// mu
66
67#include "G4MuMultipleScattering.hh"
68#include "G4MuIonisation.hh"
69#include "G4MuBremsstrahlung.hh"
70#include "G4MuPairProduction.hh"
71
72// hadrons
73
74#include "G4hMultipleScattering.hh"
75#include "G4MscStepLimitType.hh"
76
77#include "G4hBremsstrahlung.hh"
78#include "G4hPairProduction.hh"
79
80#include "G4hIonisation.hh"
81#include "G4ionIonisation.hh"
82#include "G4IonParametrisedLossModel.hh"
83#include "G4NuclearStopping.hh"
84
85// msc models
86#include "G4UrbanMscModel93.hh"
87#include "G4WentzelVIModel.hh"
88#include "G4CoulombScattering.hh"
89
90//
91
92#include "G4LossTableManager.hh"
93#include "G4EmProcessOptions.hh"
94
95// particles
96
97#include "G4Gamma.hh"
98#include "G4Electron.hh"
99#include "G4Positron.hh"
100#include "G4MuonPlus.hh"
101#include "G4MuonMinus.hh"
102#include "G4PionPlus.hh"
103#include "G4PionMinus.hh"
104#include "G4KaonPlus.hh"
105#include "G4KaonMinus.hh"
106#include "G4Proton.hh"
107#include "G4AntiProton.hh"
108#include "G4Deuteron.hh"
109#include "G4Triton.hh"
110#include "G4He3.hh"
111#include "G4Alpha.hh"
112#include "G4GenericIon.hh"
113
114//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
115
116G4EmLivermorePolarizedPhysics::G4EmLivermorePolarizedPhysics(
117 G4int ver, const G4String& name)
118 : G4VPhysicsConstructor(name), verbose(ver)
119{
120 G4LossTableManager::Instance();
121}
122
123//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
124
125G4EmLivermorePolarizedPhysics::~G4EmLivermorePolarizedPhysics()
126{}
127
128//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
129
130void G4EmLivermorePolarizedPhysics::ConstructParticle()
131{
132// gamma
133 G4Gamma::Gamma();
134
135// leptons
136 G4Electron::Electron();
137 G4Positron::Positron();
138 G4MuonPlus::MuonPlus();
139 G4MuonMinus::MuonMinus();
140
141// mesons
142 G4PionPlus::PionPlusDefinition();
143 G4PionMinus::PionMinusDefinition();
144 G4KaonPlus::KaonPlusDefinition();
145 G4KaonMinus::KaonMinusDefinition();
146
147// baryons
148 G4Proton::Proton();
149 G4AntiProton::AntiProton();
150
151// ions
152 G4Deuteron::Deuteron();
153 G4Triton::Triton();
154 G4He3::He3();
155 G4Alpha::Alpha();
156 G4GenericIon::GenericIonDefinition();
157}
158
159//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
160
161void G4EmLivermorePolarizedPhysics::ConstructProcess()
162{
163 // Add Livermore EM Processes
164
165 theParticleIterator->reset();
166
167 while( (*theParticleIterator)() ){
168
169 G4ParticleDefinition* particle = theParticleIterator->value();
170 G4ProcessManager* pmanager = particle->GetProcessManager();
171 G4String particleName = particle->GetParticleName();
172
173 if(verbose > 1)
174 G4cout << "### " << GetPhysicsName() << " instantiates for "
175 << particleName << G4endl;
176
177 //Applicability range for Livermore models
178 //for higher energies, the Standard models are used
179 G4double LivermoreHighEnergyLimit = GeV;
180
181 if (particleName == "gamma") {
182
183 G4PhotoElectricEffect* thePhotoElectricEffect = new G4PhotoElectricEffect();
184 G4LivermorePhotoElectricModel* theLivermorePhotoElectricModel = new G4LivermorePhotoElectricModel();
185 theLivermorePhotoElectricModel->SetHighEnergyLimit(LivermoreHighEnergyLimit);
186 thePhotoElectricEffect->AddEmModel(0, theLivermorePhotoElectricModel);
187 pmanager->AddDiscreteProcess(thePhotoElectricEffect);
188
189 G4ComptonScattering* theComptonScattering = new G4ComptonScattering();
190 G4LivermorePolarizedComptonModel* theLivermoreComptonModel = new G4LivermorePolarizedComptonModel();
191 theLivermoreComptonModel->SetHighEnergyLimit(LivermoreHighEnergyLimit);
192 theComptonScattering->AddEmModel(0, theLivermoreComptonModel);
193 pmanager->AddDiscreteProcess(theComptonScattering);
194
195 G4GammaConversion* theGammaConversion = new G4GammaConversion();
196 G4LivermoreGammaConversionModel* theLivermoreGammaConversionModel = new G4LivermoreGammaConversionModel();
197 theLivermoreGammaConversionModel->SetHighEnergyLimit(LivermoreHighEnergyLimit);
198 theGammaConversion->AddEmModel(0, theLivermoreGammaConversionModel);
199 pmanager->AddDiscreteProcess(theGammaConversion);
200
201 G4RayleighScattering* theRayleigh = new G4RayleighScattering();
202 G4LivermorePolarizedRayleighModel* theRayleighModel = new G4LivermorePolarizedRayleighModel();
203 theRayleighModel->SetHighEnergyLimit(LivermoreHighEnergyLimit);
204 theRayleigh->AddEmModel(0, theRayleighModel);
205 pmanager->AddDiscreteProcess(theRayleigh);
206
207 } else if (particleName == "e-") {
208
209 G4eMultipleScattering* msc = new G4eMultipleScattering();
210 msc->AddEmModel(0, new G4UrbanMscModel93());
211 msc->SetStepLimitType(fUseDistanceToBoundary);
212 pmanager->AddProcess(msc, -1, 1, 1);
213
214 // Ionisation
215 G4eIonisation* eIoni = new G4eIonisation();
216 G4LivermoreIonisationModel* theIoniLivermore = new
217 G4LivermoreIonisationModel();
218 theIoniLivermore->SetHighEnergyLimit(LivermoreHighEnergyLimit);
219 eIoni->AddEmModel(0, theIoniLivermore, new G4UniversalFluctuation() );
220 eIoni->SetStepFunction(0.2, 100*um); //
221 pmanager->AddProcess(eIoni, -1, 2, 2);
222
223 // Bremsstrahlung
224 G4eBremsstrahlung* eBrem = new G4eBremsstrahlung();
225 G4LivermoreBremsstrahlungModel* theBremLivermore = new
226 G4LivermoreBremsstrahlungModel();
227 theBremLivermore->SetHighEnergyLimit(LivermoreHighEnergyLimit);
228 eBrem->AddEmModel(0, theBremLivermore);
229 pmanager->AddProcess(eBrem, -1,-3, 3);
230
231 } else if (particleName == "e+") {
232
233 // Identical to G4EmStandardPhysics_option3
234
235 G4eMultipleScattering* msc = new G4eMultipleScattering();
236 msc->AddEmModel(0, new G4UrbanMscModel93());
237 msc->SetStepLimitType(fUseDistanceToBoundary);
238 pmanager->AddProcess(msc, -1, 1, 1);
239
240 G4eIonisation* eIoni = new G4eIonisation();
241 eIoni->SetStepFunction(0.2, 100*um);
242 pmanager->AddProcess(eIoni, -1, 2, 2);
243
244 pmanager->AddProcess(new G4eBremsstrahlung, -1,-3, 3);
245
246 pmanager->AddProcess(new G4eplusAnnihilation,0,-1, 4);
247
248 } else if (particleName == "mu+" ||
249 particleName == "mu-" ) {
250
251 // Identical to G4EmStandardPhysics_option3
252
253 G4MuMultipleScattering* msc = new G4MuMultipleScattering();
254 msc->AddEmModel(0, new G4WentzelVIModel());
255 pmanager->AddProcess(msc, -1, 1, 1);
256
257 G4MuIonisation* muIoni = new G4MuIonisation();
258 muIoni->SetStepFunction(0.2, 50*um);
259 pmanager->AddProcess(muIoni, -1, 2, 2);
260
261 pmanager->AddProcess(new G4MuBremsstrahlung, -1,-3, 3);
262 pmanager->AddProcess(new G4MuPairProduction, -1,-4, 4);
263 pmanager->AddDiscreteProcess(new G4CoulombScattering());
264
265 } else if (particleName == "GenericIon") {
266
267 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
268
269 G4ionIonisation* ionIoni = new G4ionIonisation();
270 ionIoni->SetEmModel(new G4IonParametrisedLossModel());
271 ionIoni->SetStepFunction(0.1, 10*um);
272 pmanager->AddProcess(ionIoni, -1, 2, 2);
273 pmanager->AddProcess(new G4NuclearStopping(), -1, 3,-1);
274
275 } else if (particleName == "alpha" ||
276 particleName == "He3" ) {
277
278 // Identical to G4EmStandardPhysics_option3
279
280 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
281
282 G4ionIonisation* ionIoni = new G4ionIonisation();
283 ionIoni->SetStepFunction(0.1, 20*um);
284 pmanager->AddProcess(ionIoni, -1, 2, 2);
285 pmanager->AddProcess(new G4NuclearStopping(), -1, 3,-1);
286
287 } else if (particleName == "pi+" ||
288 particleName == "pi-" ||
289 particleName == "proton" ) {
290
291 // Identical to G4EmStandardPhysics_option3
292
293 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
294
295 G4hIonisation* hIoni = new G4hIonisation();
296 hIoni->SetStepFunction(0.2, 50*um);
297 pmanager->AddProcess(hIoni, -1, 2, 2);
298
299 pmanager->AddProcess(new G4hBremsstrahlung, -1,-3, 3);
300
301 pmanager->AddProcess(new G4hPairProduction, -1,-4, 4);
302
303 } else if (particleName == "B+" ||
304 particleName == "B-" ||
305 particleName == "D+" ||
306 particleName == "D-" ||
307 particleName == "Ds+" ||
308 particleName == "Ds-" ||
309 particleName == "anti_lambda_c+" ||
310 particleName == "anti_omega-" ||
311 particleName == "anti_proton" ||
312 particleName == "anti_sigma_c+" ||
313 particleName == "anti_sigma_c++" ||
314 particleName == "anti_sigma+" ||
315 particleName == "anti_sigma-" ||
316 particleName == "anti_xi_c+" ||
317 particleName == "anti_xi-" ||
318 particleName == "deuteron" ||
319 particleName == "kaon+" ||
320 particleName == "kaon-" ||
321 particleName == "lambda_c+" ||
322 particleName == "omega-" ||
323 particleName == "sigma_c+" ||
324 particleName == "sigma_c++" ||
325 particleName == "sigma+" ||
326 particleName == "sigma-" ||
327 particleName == "tau+" ||
328 particleName == "tau-" ||
329 particleName == "triton" ||
330 particleName == "xi_c+" ||
331 particleName == "xi-" ) {
332
333 // Identical to G4EmStandardPhysics_option3
334
335 pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
336
337 pmanager->AddProcess(new G4hIonisation, -1, 2, 2);
338
339 }
340 }
341
342 // Em options
343 //
344 G4EmProcessOptions opt;
345 opt.SetVerbose(verbose);
346
347 // Multiple Coulomb scattering
348 //
349 //opt.SetMscStepLimitation(fUseDistanceToBoundary);
350 //opt.SetMscRangeFactor(0.02);
351
352 // Physics tables
353 //
354
355 opt.SetMinEnergy(100*eV);
356 opt.SetMaxEnergy(10*TeV);
357 opt.SetDEDXBinning(220);
358 opt.SetLambdaBinning(220);
359
360 //opt.SetSplineFlag(true);
361 opt.SetPolarAngleLimit(0.2);
362
363 // Ionization
364 //
365 //opt.SetSubCutoff(true);
366}
367
368//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
Note: See TracBrowser for help on using the repository browser.