Geant4
9.6.p02
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
geant4_9_6_p02
examples
extended
optical
LXe
src
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
//
28
//
29
//
30
#include "
LXeEMPhysics.hh
"
31
32
#include "
globals.hh
"
33
#include "
G4ios.hh
"
34
#include <iomanip>
35
36
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
37
38
LXeEMPhysics::LXeEMPhysics
(
const
G4String
&
name
)
39
:
G4VPhysicsConstructor
(name)
40
{
41
fPhotoEffect
= NULL;
42
fComptonEffect
= NULL;
43
fPairProduction
= NULL;
44
fElectronMultipleScattering
= NULL;
45
fElectronIonisation
= NULL;
46
fElectronBremsStrahlung
= NULL;
47
fPositronMultipleScattering
= NULL;
48
fPositronIonisation
= NULL;
49
fPositronBremsStrahlung
= NULL;
50
fAnnihilation
= NULL;
51
}
52
53
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
54
55
LXeEMPhysics::~LXeEMPhysics
() {}
56
57
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
58
59
#include "
G4ParticleDefinition.hh
"
60
#include "
G4ParticleTable.hh
"
61
62
#include "
G4Gamma.hh
"
63
64
#include "
G4Electron.hh
"
65
#include "
G4Positron.hh
"
66
67
#include "
G4NeutrinoE.hh
"
68
#include "
G4AntiNeutrinoE.hh
"
69
70
void
LXeEMPhysics::ConstructParticle
()
71
{
72
// gamma
73
G4Gamma::GammaDefinition
();
74
75
// electron
76
G4Electron::ElectronDefinition
();
77
G4Positron::PositronDefinition
();
78
G4NeutrinoE::NeutrinoEDefinition
();
79
G4AntiNeutrinoE::AntiNeutrinoEDefinition
();
80
}
81
82
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
83
84
#include "
G4ProcessManager.hh
"
85
86
void
LXeEMPhysics::ConstructProcess
()
87
{
88
fPhotoEffect
=
new
G4PhotoElectricEffect
();
89
fComptonEffect
=
new
G4ComptonScattering
();
90
fPairProduction
=
new
G4GammaConversion
();
91
92
// Electron physics
93
fElectronMultipleScattering
=
new
G4eMultipleScattering
();
94
fElectronIonisation
=
new
G4eIonisation
();
95
fElectronBremsStrahlung
=
new
G4eBremsstrahlung
();
96
97
//Positron physics
98
fPositronMultipleScattering
=
new
G4eMultipleScattering
();
99
fPositronIonisation
=
new
G4eIonisation
();
100
fPositronBremsStrahlung
=
new
G4eBremsstrahlung
();
101
fAnnihilation
=
new
G4eplusAnnihilation
();
102
103
G4ProcessManager
* pManager = 0;
104
105
// Gamma Physics
106
pManager =
G4Gamma::Gamma
()->
GetProcessManager
();
107
pManager->
AddDiscreteProcess
(
fPhotoEffect
);
108
pManager->
AddDiscreteProcess
(
fComptonEffect
);
109
pManager->
AddDiscreteProcess
(
fPairProduction
);
110
111
// Electron Physics
112
pManager =
G4Electron::Electron
()->
GetProcessManager
();
113
114
pManager->
AddProcess
(
fElectronMultipleScattering
, -1, 1, 1);
115
pManager->
AddProcess
(
fElectronIonisation
, -1, 2, 2);
116
pManager->
AddProcess
(
fElectronBremsStrahlung
, -1, 3, 3);
117
118
//Positron Physics
119
pManager =
G4Positron::Positron
()->
GetProcessManager
();
120
121
pManager->
AddProcess
(
fPositronMultipleScattering
, -1, 1, 1);
122
pManager->
AddProcess
(
fPositronIonisation
, -1, 2, 2);
123
pManager->
AddProcess
(
fPositronBremsStrahlung
, -1, 3, 3);
124
pManager->
AddProcess
(
fAnnihilation
, 0,-1, 4);
125
126
}
Generated on Sat May 25 2013 14:32:58 for Geant4 by
1.8.4