Geant4  9.6.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PhysicsListEMstd.cc
Go to the documentation of this file.
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: PhysicsListEMstd.cc,v 1.4 2009-11-20 03:36:51 kmura Exp $
27 // $Name: not supported by cvs2svn $
28 // ====================================================================
29 // PhysicsListEMstd.cc
30 //
31 // Physics list for electron/positron/gamma
32 // EM-standard package w/ default parameters
33 //
34 // ====================================================================
35 #include "PhysicsListEMstd.hh"
36 
37 #include "G4ProcessManager.hh"
38 #include "G4ParticleDefinition.hh"
39 
40 #include "G4Gamma.hh"
41 #include "G4Electron.hh"
42 #include "G4Positron.hh"
43 #include "G4NeutrinoE.hh"
44 #include "G4AntiNeutrinoE.hh"
45 
46 #include "G4ComptonScattering.hh"
47 #include "G4GammaConversion.hh"
48 #include "G4PhotoElectricEffect.hh"
49 #include "G4eMultipleScattering.hh"
50 #include "G4eIonisation.hh"
51 #include "G4eBremsstrahlung.hh"
52 #include "G4eplusAnnihilation.hh"
53 
54 // ====================================================================
55 //
56 // class description
57 //
58 // ====================================================================
59 
62  : G4VPhysicsConstructor("EM-std")
64 {
65 }
66 
67 
71 {
72 }
73 
74 
78 {
79 }
80 
81 
85 {
86  G4ProcessManager* pm;
87 
88  // ----------------------------------------------------------
89  // gamma physics
90  // ----------------------------------------------------------
91  pm= G4Gamma::Gamma()-> GetProcessManager();
92  pm-> AddDiscreteProcess(new G4PhotoElectricEffect);
93  pm-> AddDiscreteProcess(new G4ComptonScattering);
94  pm-> AddDiscreteProcess(new G4GammaConversion);
95 
96  // ----------------------------------------------------------
97  // electron physics
98  // ----------------------------------------------------------
100  G4eIonisation* eion= new G4eIonisation;
102 
104  pm-> AddProcess(msc, ordInActive, 1, 1);
105  pm-> AddProcess(eion, ordInActive, 2, 2);
106  pm-> AddProcess(ebrems, ordInActive, ordInActive, 3);
107 
108  // ----------------------------------------------------------
109  // positron physics
110  // ----------------------------------------------------------
111  msc= new G4eMultipleScattering;
112  eion= new G4eIonisation;
113  ebrems= new G4eBremsstrahlung;
114  G4eplusAnnihilation* annihilation= new G4eplusAnnihilation;
115 
116  pm= G4Positron::Positron()-> GetProcessManager();
117  pm-> AddProcess(msc, ordInActive, 1, 1);
118  pm-> AddProcess(eion, ordInActive, 2, 2);
119  pm-> AddProcess(ebrems, ordInActive, ordInActive, 3);
120  pm-> AddProcess(annihilation, 0, ordInActive, 4);
121 
122 }
123