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

Last change on this file since 1346 was 1340, checked in by garnier, 15 years ago

update ti head

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