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

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

update ti head

File size: 9.3 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.19 2010/10/10 15:18:34 vnivanch Exp $
27// GEANT4 tag $Name: phys-lists-V09-03-34 $
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 "G4eMultipleScattering.hh"
59#include "G4MuMultipleScattering.hh"
60#include "G4hMultipleScattering.hh"
61//#include "G4MscStepLimitType.hh"
62#include "G4WentzelVIModel.hh"
63
64#include "G4eIonisation.hh"
65#include "G4eBremsstrahlung.hh"
66#include "G4eplusAnnihilation.hh"
67
68#include "G4MuIonisation.hh"
69#include "G4MuBremsstrahlung.hh"
70#include "G4MuPairProduction.hh"
71#include "G4hBremsstrahlung.hh"
72#include "G4hPairProduction.hh"
73
74#include "G4hIonisation.hh"
75#include "G4ionIonisation.hh"
76#include "G4alphaIonisation.hh"
77
78#include "G4Gamma.hh"
79#include "G4Electron.hh"
80#include "G4Positron.hh"
81#include "G4MuonPlus.hh"
82#include "G4MuonMinus.hh"
83#include "G4PionPlus.hh"
84#include "G4PionMinus.hh"
85#include "G4KaonPlus.hh"
86#include "G4KaonMinus.hh"
87#include "G4Proton.hh"
88#include "G4AntiProton.hh"
89#include "G4Deuteron.hh"
90#include "G4Triton.hh"
91#include "G4He3.hh"
92#include "G4Alpha.hh"
93#include "G4GenericIon.hh"
94
95//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
96
97G4EmStandardPhysics_option1::G4EmStandardPhysics_option1(G4int ver)
98  : G4VPhysicsConstructor("G4EmStandard_opt1"), verbose(ver)
99{
100  G4LossTableManager::Instance();
101}
102
103//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
104
105G4EmStandardPhysics_option1::G4EmStandardPhysics_option1(G4int ver, const G4String&)
106  : G4VPhysicsConstructor("G4EmStandard_opt1"), verbose(ver)
107{
108  G4LossTableManager::Instance();
109}
110
111//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
112
113G4EmStandardPhysics_option1::~G4EmStandardPhysics_option1()
114{}
115
116//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
117
118void G4EmStandardPhysics_option1::ConstructParticle()
119{
120// gamma
121  G4Gamma::Gamma();
122
123// leptons
124  G4Electron::Electron();
125  G4Positron::Positron();
126  G4MuonPlus::MuonPlus();
127  G4MuonMinus::MuonMinus();
128
129// mesons
130  G4PionPlus::PionPlusDefinition();
131  G4PionMinus::PionMinusDefinition();
132  G4KaonPlus::KaonPlusDefinition();
133  G4KaonMinus::KaonMinusDefinition();
134
135// barions
136  G4Proton::Proton();
137  G4AntiProton::AntiProton();
138
139// ions
140  G4Deuteron::Deuteron();
141  G4Triton::Triton();
142  G4He3::He3();
143  G4Alpha::Alpha();
144  G4GenericIon::GenericIonDefinition();
145}
146
147//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
148
149void G4EmStandardPhysics_option1::ConstructProcess()
150{
151  // Add standard EM Processes
152
153  theParticleIterator->reset();
154  while( (*theParticleIterator)() ){
155    G4ParticleDefinition* particle = theParticleIterator->value();
156    G4ProcessManager* pmanager = particle->GetProcessManager();
157    G4String particleName = particle->GetParticleName();
158    if(verbose > 1)
159      G4cout << "### " << GetPhysicsName() << " instantiates for " 
160             << particleName << G4endl;
161
162    if (particleName == "gamma") {
163
164      pmanager->AddDiscreteProcess(new G4PhotoElectricEffect);
165      pmanager->AddDiscreteProcess(new G4ComptonScattering);
166      pmanager->AddDiscreteProcess(new G4GammaConversion);
167
168    } else if (particleName == "e-") {
169
170      G4eIonisation* eioni = new G4eIonisation();
171      eioni->SetStepFunction(0.8, 1.0*mm);
172      G4eMultipleScattering* msc = new G4eMultipleScattering;
173      msc->SetStepLimitType(fMinimal);
174      pmanager->AddProcess(msc,                   -1, 1, 1);
175      pmanager->AddProcess(eioni,                 -1, 2, 2);
176      pmanager->AddProcess(new G4eBremsstrahlung, -1,-3, 3);
177
178    } else if (particleName == "e+") {
179
180      G4eIonisation* eioni = new G4eIonisation();
181      eioni->SetStepFunction(0.8, 1.0*mm);
182      G4eMultipleScattering* msc = new G4eMultipleScattering;
183      msc->SetStepLimitType(fMinimal);
184      pmanager->AddProcess(msc,                     -1, 1, 1);
185      pmanager->AddProcess(eioni,                   -1, 2, 2);
186      pmanager->AddProcess(new G4eBremsstrahlung,   -1,-3, 3);
187      pmanager->AddProcess(new G4eplusAnnihilation,  0,-1, 4);
188
189    } else if (particleName == "mu+" ||
190               particleName == "mu-"    ) {
191
192      pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
193      pmanager->AddProcess(new G4MuIonisation,        -1, 2, 2);
194      pmanager->AddProcess(new G4MuBremsstrahlung,    -1,-3, 3);
195      pmanager->AddProcess(new G4MuPairProduction,    -1,-4, 4);
196
197    } else if (particleName == "alpha" ||
198               particleName == "He3") {
199
200      pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
201      pmanager->AddProcess(new G4ionIonisation,       -1, 2, 2);
202
203    } else if (particleName == "GenericIon") {
204
205      pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
206      pmanager->AddProcess(new G4ionIonisation,       -1, 2, 2);
207
208    } else if (particleName == "pi+" ||
209               particleName == "pi-" ||
210               particleName == "kaon+" ||
211               particleName == "kaon-" ||
212               particleName == "proton" ) {
213
214      pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
215      pmanager->AddProcess(new G4hIonisation,         -1, 2, 2);
216      pmanager->AddProcess(new G4hBremsstrahlung,     -1,-3, 3);
217      pmanager->AddProcess(new G4hPairProduction,     -1,-4, 4);
218
219    } else if (particleName == "B+" ||
220               particleName == "B-" ||
221               particleName == "D+" ||
222               particleName == "D-" ||
223               particleName == "Ds+" ||
224               particleName == "Ds-" ||
225               particleName == "anti_He3" ||
226               particleName == "anti_alpha" ||
227               particleName == "anti_deuteron" ||
228               particleName == "anti_lambda_c+" ||
229               particleName == "anti_omega-" ||
230               particleName == "anti_proton" ||
231               particleName == "anti_sigma_c+" ||
232               particleName == "anti_sigma_c++" ||
233               particleName == "anti_sigma+" ||
234               particleName == "anti_sigma-" ||
235               particleName == "anti_triton" ||
236               particleName == "anti_xi_c+" ||
237               particleName == "anti_xi-" ||
238               particleName == "deuteron" ||
239               particleName == "lambda_c+" ||
240               particleName == "omega-" ||
241               particleName == "sigma_c+" ||
242               particleName == "sigma_c++" ||
243               particleName == "sigma+" ||
244               particleName == "sigma-" ||
245               particleName == "tau+" ||
246               particleName == "tau-" ||
247               particleName == "triton" ||
248               particleName == "xi_c+" ||
249               particleName == "xi-" ) {
250
251      pmanager->AddProcess(new G4hMultipleScattering, -1, 1, 1);
252      pmanager->AddProcess(new G4hIonisation,         -1, 2, 2);
253    }
254  }
255  G4EmProcessOptions opt;
256  opt.SetVerbose(verbose);
257  opt.SetApplyCuts(true);
258}
259
260//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
Note: See TracBrowser for help on using the repository browser.