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 | #include "LXeEMPhysics.hh" |
---|
27 | |
---|
28 | #include "globals.hh" |
---|
29 | #include "G4ios.hh" |
---|
30 | #include <iomanip> |
---|
31 | |
---|
32 | |
---|
33 | LXeEMPhysics::LXeEMPhysics(const G4String& name) |
---|
34 | : G4VPhysicsConstructor(name) |
---|
35 | { |
---|
36 | } |
---|
37 | |
---|
38 | LXeEMPhysics::~LXeEMPhysics() |
---|
39 | { |
---|
40 | } |
---|
41 | |
---|
42 | #include "G4ParticleDefinition.hh" |
---|
43 | #include "G4ParticleTable.hh" |
---|
44 | |
---|
45 | #include "G4Gamma.hh" |
---|
46 | |
---|
47 | #include "G4Electron.hh" |
---|
48 | #include "G4Positron.hh" |
---|
49 | |
---|
50 | #include "G4NeutrinoE.hh" |
---|
51 | #include "G4AntiNeutrinoE.hh" |
---|
52 | |
---|
53 | void LXeEMPhysics::ConstructParticle() |
---|
54 | { |
---|
55 | // gamma |
---|
56 | G4Gamma::GammaDefinition(); |
---|
57 | |
---|
58 | // electron |
---|
59 | G4Electron::ElectronDefinition(); |
---|
60 | G4Positron::PositronDefinition(); |
---|
61 | G4NeutrinoE::NeutrinoEDefinition(); |
---|
62 | G4AntiNeutrinoE::AntiNeutrinoEDefinition(); |
---|
63 | } |
---|
64 | |
---|
65 | |
---|
66 | #include "G4ProcessManager.hh" |
---|
67 | |
---|
68 | |
---|
69 | void LXeEMPhysics::ConstructProcess() |
---|
70 | { |
---|
71 | thePhotoEffect = new G4PhotoElectricEffect(); |
---|
72 | theComptonEffect = new G4ComptonScattering(); |
---|
73 | thePairProduction = new G4GammaConversion(); |
---|
74 | |
---|
75 | // Electron physics |
---|
76 | theElectronMultipleScattering = new G4MultipleScattering(); |
---|
77 | theElectronIonisation = new G4eIonisation(); |
---|
78 | theElectronBremsStrahlung = new G4eBremsstrahlung(); |
---|
79 | |
---|
80 | //Positron physics |
---|
81 | thePositronMultipleScattering = new G4MultipleScattering(); |
---|
82 | thePositronIonisation = new G4eIonisation(); |
---|
83 | thePositronBremsStrahlung = new G4eBremsstrahlung(); |
---|
84 | theAnnihilation = new G4eplusAnnihilation(); |
---|
85 | |
---|
86 | |
---|
87 | G4ProcessManager * pManager = 0; |
---|
88 | |
---|
89 | // Gamma Physics |
---|
90 | pManager = G4Gamma::Gamma()->GetProcessManager(); |
---|
91 | pManager->AddDiscreteProcess(thePhotoEffect); |
---|
92 | pManager->AddDiscreteProcess(theComptonEffect); |
---|
93 | pManager->AddDiscreteProcess(thePairProduction); |
---|
94 | |
---|
95 | // Electron Physics |
---|
96 | pManager = G4Electron::Electron()->GetProcessManager(); |
---|
97 | |
---|
98 | pManager->AddProcess(theElectronMultipleScattering, -1, 1, 1); |
---|
99 | pManager->AddProcess(theElectronIonisation, -1, 2, 2); |
---|
100 | pManager->AddProcess(theElectronBremsStrahlung, -1, 3, 3); |
---|
101 | |
---|
102 | |
---|
103 | //Positron Physics |
---|
104 | pManager = G4Positron::Positron()->GetProcessManager(); |
---|
105 | |
---|
106 | pManager->AddProcess(thePositronMultipleScattering, -1, 1, 1); |
---|
107 | pManager->AddProcess(thePositronIonisation, -1, 2, 2); |
---|
108 | pManager->AddProcess(thePositronBremsStrahlung, -1, 3, 3); |
---|
109 | pManager->AddProcess(theAnnihilation, 0,-1, 4); |
---|
110 | |
---|
111 | } |
---|
112 | |
---|
113 | |
---|
114 | |
---|