Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 68752 2013-04-05 10:23:47Z gcosmo $
27 //
28 /// \file optical/LXe/src/LXeEMPhysics.cc
29 /// \brief Implementation of the LXeEMPhysics class
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  fPhotoEffect = NULL;
44  fComptonEffect = NULL;
45  fPairProduction = NULL;
47  fElectronIonisation = NULL;
50  fPositronIonisation = NULL;
52  fAnnihilation = NULL;
53 }
54 
55 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
56 
58 
59 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
60 
61 #include "G4ParticleDefinition.hh"
62 #include "G4ParticleTable.hh"
63 
64 #include "G4Gamma.hh"
65 
66 #include "G4Electron.hh"
67 #include "G4Positron.hh"
68 
69 #include "G4NeutrinoE.hh"
70 #include "G4AntiNeutrinoE.hh"
71 
73 {
74  // gamma
76 
77  // electron
82 }
83 
84 //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
85 
86 #include "G4ProcessManager.hh"
87 
89 {
93 
94  // Electron physics
98 
99  //Positron physics
104 
105  G4ProcessManager* pManager = 0;
106 
107  // Gamma Physics
108  pManager = G4Gamma::Gamma()->GetProcessManager();
109  pManager->AddDiscreteProcess(fPhotoEffect);
112 
113  // Electron Physics
114  pManager = G4Electron::Electron()->GetProcessManager();
115 
116  pManager->AddProcess(fElectronMultipleScattering, -1, 1, 1);
117  pManager->AddProcess(fElectronIonisation, -1, 2, 2);
118  pManager->AddProcess(fElectronBremsStrahlung, -1, 3, 3);
119 
120  //Positron Physics
121  pManager = G4Positron::Positron()->GetProcessManager();
122 
123  pManager->AddProcess(fPositronMultipleScattering, -1, 1, 1);
124  pManager->AddProcess(fPositronIonisation, -1, 2, 2);
125  pManager->AddProcess(fPositronBremsStrahlung, -1, 3, 3);
126  pManager->AddProcess(fAnnihilation, 0,-1, 4);
127 
128 }
static G4Electron * ElectronDefinition()
Definition: G4Electron.cc:89
virtual ~LXeEMPhysics()
Definition: LXeEMPhysics.cc:57
G4eBremsstrahlung * fElectronBremsStrahlung
Definition: LXeEMPhysics.hh:76
G4eIonisation * fPositronIonisation
Definition: LXeEMPhysics.hh:80
G4PhotoElectricEffect * fPhotoEffect
Definition: LXeEMPhysics.hh:69
Definition of the LXeEMPhysics class.
G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord=ordDefault)
LXeEMPhysics(const G4String &name="EM")
Definition: LXeEMPhysics.cc:40
const XML_Char * name
G4ProcessManager * GetProcessManager() const
G4eBremsstrahlung * fPositronBremsStrahlung
Definition: LXeEMPhysics.hh:81
G4GammaConversion * fPairProduction
Definition: LXeEMPhysics.hh:71
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:72
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:88
G4ComptonScattering * fComptonEffect
Definition: LXeEMPhysics.hh:70
G4eMultipleScattering * fElectronMultipleScattering
Definition: LXeEMPhysics.hh:74
G4eplusAnnihilation * fAnnihilation
Definition: LXeEMPhysics.hh:82
static G4Electron * Electron()
Definition: G4Electron.cc:94
G4eIonisation * fElectronIonisation
Definition: LXeEMPhysics.hh:75
G4eMultipleScattering * fPositronMultipleScattering
Definition: LXeEMPhysics.hh:79
static G4AntiNeutrinoE * AntiNeutrinoEDefinition()
static G4Gamma * GammaDefinition()
Definition: G4Gamma.cc:81