source: trunk/source/physics_lists/builders/src/G4EmStandardPhysics_option2.cc @ 1347

Last change on this file since 1347 was 1340, checked in by garnier, 14 years ago

update ti head

File size: 10.5 KB
RevLine 
[825]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//
[1340]26// $Id: G4EmStandardPhysics_option2.cc,v 1.27 2010/10/10 15:18:34 vnivanch Exp $
27// GEANT4 tag $Name: phys-lists-V09-03-34 $
[825]28//
29//---------------------------------------------------------------------------
30//
31// ClassName:   G4EmStandardPhysics_option2
32//
33// Author:      V.Ivanchenko 09.11.2005
34//
35// Modified:
36// 19.12.2005 V.Ivanchenko rename 71 -> 72
37// 15.06.2006 V.Ivanchenko use this class as a constructor of fast EM physics
38// 13.11.2006 V.Ivanchenko use G4hMultipleScattering
39// 14.11.2006 V.Ivanchenko use sub-cutoff option for all particles
40// 13.02.2007 V.Ivanchenko use default msc
41// 15.05.2007 V.Ivanchenko rename to _option2
[850]42// 13.03.2008 V.Ivanchenko use G4eMultipleScattering
43// 21.04.2008 V.Ivanchenko add long-lived D and B mesons; use spline
44// 28.05.2008 V.Ivanchenko linLossLimit=0.01; added hBrem and hPairProd processes
[825]45//
46//----------------------------------------------------------------------------
47//
48
49#include "G4EmStandardPhysics_option2.hh"
[850]50
[825]51#include "G4ParticleDefinition.hh"
52#include "G4ProcessManager.hh"
53#include "G4LossTableManager.hh"
54#include "G4EmProcessOptions.hh"
55
56#include "G4ComptonScattering.hh"
57#include "G4GammaConversion.hh"
58#include "G4PhotoElectricEffect.hh"
59
[850]60#include "G4eMultipleScattering.hh"
[825]61#include "G4hMultipleScattering.hh"
[850]62#include "G4MuMultipleScattering.hh"
63#include "G4CoulombScattering.hh"
[1203]64#include "G4UrbanMscModel93.hh"
65#include "G4WentzelVIModel.hh"
66//#include "G4GoudsmitSaundersonMscModel.hh"
[825]67
68#include "G4eIonisation.hh"
69#include "G4eBremsstrahlung.hh"
70#include "G4eplusAnnihilation.hh"
71
72#include "G4MuIonisation.hh"
73#include "G4MuBremsstrahlung.hh"
74#include "G4MuPairProduction.hh"
[850]75#include "G4hBremsstrahlung.hh"
76#include "G4hPairProduction.hh"
[825]77
78#include "G4hIonisation.hh"
79#include "G4ionIonisation.hh"
[1340]80#include "G4alphaIonisation.hh"
[1203]81//#include "G4IonParametrisedLossModel.hh"
[825]82
83#include "G4Gamma.hh"
84#include "G4Electron.hh"
85#include "G4Positron.hh"
86#include "G4MuonPlus.hh"
87#include "G4MuonMinus.hh"
88#include "G4PionPlus.hh"
89#include "G4PionMinus.hh"
90#include "G4KaonPlus.hh"
91#include "G4KaonMinus.hh"
92#include "G4Proton.hh"
93#include "G4AntiProton.hh"
94#include "G4Deuteron.hh"
95#include "G4Triton.hh"
96#include "G4He3.hh"
97#include "G4Alpha.hh"
98#include "G4GenericIon.hh"
99
100//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
101
[1315]102G4EmStandardPhysics_option2::G4EmStandardPhysics_option2(G4int ver)
103  : G4VPhysicsConstructor("G4EmStandard_opt2"), verbose(ver)
[825]104{
105  G4LossTableManager::Instance();
106}
107
108//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
109
[1315]110G4EmStandardPhysics_option2::G4EmStandardPhysics_option2(G4int ver, const G4String&)
111  : G4VPhysicsConstructor("G4EmStandard_opt2"), verbose(ver)
112{
113  G4LossTableManager::Instance();
114}
115
116//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
117
[825]118G4EmStandardPhysics_option2::~G4EmStandardPhysics_option2()
119{}
120
121//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
122
123void G4EmStandardPhysics_option2::ConstructParticle()
124{
125// gamma
126  G4Gamma::Gamma();
127
128// leptons
129  G4Electron::Electron();
130  G4Positron::Positron();
131  G4MuonPlus::MuonPlus();
132  G4MuonMinus::MuonMinus();
133
134// mesons
135  G4PionPlus::PionPlusDefinition();
136  G4PionMinus::PionMinusDefinition();
137  G4KaonPlus::KaonPlusDefinition();
138  G4KaonMinus::KaonMinusDefinition();
139
140// barions
141  G4Proton::Proton();
142  G4AntiProton::AntiProton();
143
144// ions
145  G4Deuteron::Deuteron();
146  G4Triton::Triton();
147  G4He3::He3();
148  G4Alpha::Alpha();
149  G4GenericIon::GenericIonDefinition();
150}
151
152//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
153
154void G4EmStandardPhysics_option2::ConstructProcess()
155{
156  // Add standard EM Processes
157
158  theParticleIterator->reset();
159  while( (*theParticleIterator)() ){
160    G4ParticleDefinition* particle = theParticleIterator->value();
161    G4ProcessManager* pmanager = particle->GetProcessManager();
162    G4String particleName = particle->GetParticleName();
163    if(verbose > 1)
164      G4cout << "### " << GetPhysicsName() << " instantiates for " 
165             << particleName << G4endl;
166
167    if (particleName == "gamma") {
168
169      pmanager->AddDiscreteProcess(new G4PhotoElectricEffect);
170      pmanager->AddDiscreteProcess(new G4ComptonScattering);
171      pmanager->AddDiscreteProcess(new G4GammaConversion);
172
173    } else if (particleName == "e-") {
174
[1203]175      G4eMultipleScattering* msc = new G4eMultipleScattering();
[1315]176      msc->AddEmModel(0, new G4WentzelVIModel());
[1337]177      msc->SetRangeFactor(0.04);
[1315]178      //msc->AddEmModel(0, new G4UrbanMscModel93());
[1203]179      //      msc->AddEmModel(0, new G4GoudsmitSaundersonMscModel());
180      pmanager->AddProcess(msc,                       -1, 1, 1);
[850]181      pmanager->AddProcess(new G4eIonisation,         -1, 2, 2);
182      pmanager->AddProcess(new G4eBremsstrahlung,     -1,-3, 3);
[1315]183      pmanager->AddDiscreteProcess(new G4CoulombScattering());
[825]184
185    } else if (particleName == "e+") {
186
[1203]187      G4eMultipleScattering* msc = new G4eMultipleScattering();
[1315]188      //msc->AddEmModel(0, new G4UrbanMscModel93());
189      msc->AddEmModel(0, new G4WentzelVIModel());
[1337]190      msc->SetRangeFactor(0.04);
[1203]191      // msc->AddEmModel(0, new G4GoudsmitSaundersonMscModel());
192      pmanager->AddProcess(msc,                       -1, 1, 1);
[850]193      pmanager->AddProcess(new G4eIonisation,         -1, 2, 2);
194      pmanager->AddProcess(new G4eBremsstrahlung,     -1,-3, 3);
195      pmanager->AddProcess(new G4eplusAnnihilation,    0,-1, 4);
[1315]196      pmanager->AddDiscreteProcess(new G4CoulombScattering());
[825]197
198    } else if (particleName == "mu+" ||
199               particleName == "mu-"    ) {
200
[1203]201      G4MuMultipleScattering* msc = new G4MuMultipleScattering();
202      msc->AddEmModel(0, new G4WentzelVIModel());
203      pmanager->AddProcess(msc,                     -1, 1, 1);
204      pmanager->AddProcess(new G4MuIonisation,      -1, 2, 2);
205      pmanager->AddProcess(new G4MuBremsstrahlung,  -1,-3, 3);
206      pmanager->AddProcess(new G4MuPairProduction,  -1,-4, 4);
[850]207      pmanager->AddDiscreteProcess(new G4CoulombScattering());
[825]208
[1203]209    } else if (particleName == "GenericIon") {
210
211      pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
212
213      G4ionIonisation* ionIoni = new G4ionIonisation();
214      //ionIoni->SetEmModel(new G4IonParametrisedLossModel());
215      //ionIoni->SetStepFunction(0.1, 20*um);
216      pmanager->AddProcess(ionIoni,                   -1, 2, 2);
217
[825]218    } else if (particleName == "alpha" ||
[1203]219               particleName == "He3") {
[825]220
221      pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
222      pmanager->AddProcess(new G4ionIonisation,       -1, 2, 2);
223
[850]224    } else if (particleName == "pi+" ||
225               particleName == "pi-" ||
[1203]226               particleName == "kaon+" ||
227               particleName == "kaon-" ||
[850]228               particleName == "proton" ) {
229
[1340]230      G4hMultipleScattering* msc = new G4hMultipleScattering();
231      msc->AddEmModel(0, new G4WentzelVIModel());
232      pmanager->AddProcess(msc,                       -1, 1, 1);
[850]233      pmanager->AddProcess(new G4hIonisation,         -1, 2, 2);
234      pmanager->AddProcess(new G4hBremsstrahlung,     -1,-3, 3);
235      pmanager->AddProcess(new G4hPairProduction,     -1,-4, 4);
236
237    } else if (particleName == "B+" ||
238               particleName == "B-" ||
239               particleName == "D+" ||
240               particleName == "D-" ||
241               particleName == "Ds+" ||
242               particleName == "Ds-" ||
[1340]243               particleName == "anti_He3" ||
244               particleName == "anti_alpha" ||
245               particleName == "anti_deuteron" ||
[850]246               particleName == "anti_lambda_c+" ||
247               particleName == "anti_omega-" ||
[825]248               particleName == "anti_proton" ||
[921]249               particleName == "anti_sigma_c+" ||
250               particleName == "anti_sigma_c++" ||
[825]251               particleName == "anti_sigma+" ||
252               particleName == "anti_sigma-" ||
[1340]253               particleName == "anti_triton" ||
[850]254               particleName == "anti_xi_c+" ||
[825]255               particleName == "anti_xi-" ||
256               particleName == "deuteron" ||
[850]257               particleName == "lambda_c+" ||
[825]258               particleName == "omega-" ||
[921]259               particleName == "sigma_c+" ||
260               particleName == "sigma_c++" ||
[825]261               particleName == "sigma+" ||
262               particleName == "sigma-" ||
263               particleName == "tau+" ||
264               particleName == "tau-" ||
265               particleName == "triton" ||
[850]266               particleName == "xi_c+" ||
[825]267               particleName == "xi-" ) {
268
269      pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
270      pmanager->AddProcess(new G4hIonisation,         -1, 2, 2);
271    }
272  }
[850]273   
274  // Em options
275  //   
[825]276  G4EmProcessOptions opt;
277  opt.SetVerbose(verbose);
[850]278  opt.SetApplyCuts(true);
279 
280  // Physics tables
281  //
[1203]282  //opt.SetMinEnergy(0.1*keV);
283  // opt.SetMaxEnergy(10*TeV);
284  //opt.SetDEDXBinning(77);
285  //opt.SetLambdaBinning(77);
[921]286  //opt.SetSplineFlag(true);
[850]287  opt.SetPolarAngleLimit(0.2);
[1203]288   
[850]289  // Ionization
290  //
291  //opt.SetSubCutoff(true); 
[825]292}
293
294//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
Note: See TracBrowser for help on using the repository browser.