Geant4  10.01.p03
LXeEMPhysics.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: LXeEMPhysics.cc 81557 2014-06-03 08:32:44Z gcosmo $
27 //
30 //
31 //
32 #include "LXeEMPhysics.hh"
33 
34 #include "globals.hh"
35 #include "G4ios.hh"
36 #include <iomanip>
37 
38 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
39 
41  : G4VPhysicsConstructor(name)
42 {}
43 
44 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
45 
47 
48 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
49 
50 #include "G4ParticleDefinition.hh"
51 #include "G4ParticleTable.hh"
52 
53 #include "G4Gamma.hh"
54 
55 #include "G4Electron.hh"
56 #include "G4Positron.hh"
57 
58 #include "G4NeutrinoE.hh"
59 #include "G4AntiNeutrinoE.hh"
60 
62 {
63  // gamma
65 
66  // electron
71 }
72 
73 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
74 
75 #include "G4ProcessManager.hh"
76 
78 {
79  G4PhotoElectricEffect* fPhotoEffect =
81  G4ComptonScattering* fComptonEffect =
82  new G4ComptonScattering();
83  G4GammaConversion* fPairProduction =
84  new G4GammaConversion();
85 
86  // Electron physics
87  G4eMultipleScattering* fElectronMultipleScattering =
89  G4eIonisation* fElectronIonisation =
90  new G4eIonisation();
91  G4eBremsstrahlung* fElectronBremsStrahlung =
92  new G4eBremsstrahlung();
93 
94  //Positron physics
95  G4eMultipleScattering* fPositronMultipleScattering =
97  G4eIonisation* fPositronIonisation =
98  new G4eIonisation();
99  G4eBremsstrahlung* fPositronBremsStrahlung =
100  new G4eBremsstrahlung();
102  new G4eplusAnnihilation();
103 
104  G4ProcessManager* pManager = 0;
105 
106  // Gamma Physics
107  pManager = G4Gamma::Gamma()->GetProcessManager();
108  pManager->AddDiscreteProcess(fPhotoEffect);
109  pManager->AddDiscreteProcess(fComptonEffect);
110  pManager->AddDiscreteProcess(fPairProduction);
111 
112  // Electron Physics
113  pManager = G4Electron::Electron()->GetProcessManager();
114 
115  pManager->AddProcess(fElectronMultipleScattering, -1, 1, 1);
116  pManager->AddProcess(fElectronIonisation, -1, 2, 2);
117  pManager->AddProcess(fElectronBremsStrahlung, -1, 3, 3);
118 
119  //Positron Physics
120  pManager = G4Positron::Positron()->GetProcessManager();
121 
122  pManager->AddProcess(fPositronMultipleScattering, -1, 1, 1);
123  pManager->AddProcess(fPositronIonisation, -1, 2, 2);
124  pManager->AddProcess(fPositronBremsStrahlung, -1, 3, 3);
125  pManager->AddProcess(fAnnihilation, 0,-1, 4);
126 
127 }
static G4Electron * ElectronDefinition()
Definition: G4Electron.cc:89
virtual ~LXeEMPhysics()
Definition: LXeEMPhysics.cc:46
Definition of the LXeEMPhysics class.
G4String name
Definition: TRTMaterials.hh:40
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
LXeEMPhysics(const G4String &name="EM")
Definition: LXeEMPhysics.cc:40
G4ProcessManager * GetProcessManager() const
G4int AddProcess(G4VProcess *aProcess, G4int ordAtRestDoIt=ordInActive, G4int ordAlongSteptDoIt=ordInActive, G4int ordPostStepDoIt=ordInActive)
static G4NeutrinoE * NeutrinoEDefinition()
Definition: G4NeutrinoE.cc:80
virtual void ConstructParticle()
Definition: LXeEMPhysics.cc:61
static G4Gamma * Gamma()
Definition: G4Gamma.cc:86
static G4Positron * PositronDefinition()
Definition: G4Positron.cc:89
static G4Positron * Positron()
Definition: G4Positron.cc:94
virtual void ConstructProcess()
Definition: LXeEMPhysics.cc:77
static G4Electron * Electron()
Definition: G4Electron.cc:94
static G4AntiNeutrinoE * AntiNeutrinoEDefinition()
static G4Gamma * GammaDefinition()
Definition: G4Gamma.cc:81