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
environments
g4py
site-modules
physics_lists
EMSTDpl
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.6 2010-06-04 05:45:57 kmura Exp $
27
// $Name: not supported by cvs2svn $
28
// ====================================================================
29
// PhysicsListEMstd.cc
30
//
31
// 2006 Q
32
// ====================================================================
33
#include "
PhysicsListEMstd.hh
"
34
#include "
G4SystemOfUnits.hh
"
35
36
#include "
G4ProcessManager.hh
"
37
#include "
G4ParticleDefinition.hh
"
38
39
#include "
G4Gamma.hh
"
40
#include "
G4Electron.hh
"
41
#include "
G4Positron.hh
"
42
43
#include "
G4ComptonScattering.hh
"
44
#include "
G4GammaConversion.hh
"
45
#include "
G4PhotoElectricEffect.hh
"
46
#include "
G4eMultipleScattering.hh
"
47
#include "
G4eIonisation.hh
"
48
#include "
G4eBremsstrahlung.hh
"
49
#include "
G4eplusAnnihilation.hh
"
50
51
52
// ====================================================================
53
//
54
// class description
55
//
56
// ====================================================================
57
59
PhysicsListEMstd::PhysicsListEMstd
()
61
{
62
SetVerboseLevel
(1);
63
defaultCutValue
= 1.*
mm
;
// default cut value (1.0mm)
64
}
65
66
68
PhysicsListEMstd::~PhysicsListEMstd
()
70
{
71
}
72
73
75
void
PhysicsListEMstd::ConstructParticle
()
77
{
78
G4Gamma::GammaDefinition
();
79
G4Electron::ElectronDefinition
();
80
G4Positron::PositronDefinition
();
81
}
82
83
85
void
PhysicsListEMstd::ConstructProcess
()
87
{
88
AddTransportation
();
89
90
G4ProcessManager
* pm;
91
92
// ----------------------------------------------------------
93
// gamma physics
94
// ----------------------------------------------------------
95
pm=
G4Gamma::Gamma
()-> GetProcessManager();
96
pm-> AddDiscreteProcess(
new
G4PhotoElectricEffect
);
97
pm-> AddDiscreteProcess(
new
G4ComptonScattering
);
98
pm-> AddDiscreteProcess(
new
G4GammaConversion
);
99
100
// ----------------------------------------------------------
101
// electron physics
102
// ----------------------------------------------------------
103
G4eMultipleScattering
* msc=
new
G4eMultipleScattering
;
104
G4eIonisation
* eion=
new
G4eIonisation
;
105
G4eBremsstrahlung
* ebrems=
new
G4eBremsstrahlung
;
106
107
pm=
G4Electron::Electron
()->
GetProcessManager
();
108
pm-> AddProcess(msc,
ordInActive
, 1, 1);
109
pm-> AddProcess(eion,
ordInActive
, 2, 2);
110
pm-> AddProcess(ebrems,
ordInActive
,
ordInActive
, 3);
111
112
// ----------------------------------------------------------
113
// positron physics
114
// ----------------------------------------------------------
115
msc=
new
G4eMultipleScattering
;
116
eion=
new
G4eIonisation
;
117
ebrems=
new
G4eBremsstrahlung
;
118
G4eplusAnnihilation
* annihilation=
new
G4eplusAnnihilation
;
119
120
pm=
G4Positron::Positron
()-> GetProcessManager();
121
pm-> AddProcess(msc,
ordInActive
, 1, 1);
122
pm-> AddProcess(eion,
ordInActive
, 2, 2);
123
pm-> AddProcess(ebrems,
ordInActive
,
ordInActive
, 3);
124
pm-> AddProcess(annihilation, 0,
ordInActive
, 4);
125
126
}
127
128
130
void
PhysicsListEMstd::SetCuts
()
132
{
133
SetCutsWithDefault
();
134
}
135
Generated on Sat May 25 2013 14:32:00 for Geant4 by
1.8.4