Geant4-11
environments
g4py
tests
g4pytest
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
// ====================================================================
27
// PhysicsListEMstd.cc
28
//
29
// 2006 Q
30
// ====================================================================
31
#include "
PhysicsListEMstd.hh
"
32
#include "
G4SystemOfUnits.hh
"
33
34
#include "
G4ProcessManager.hh
"
35
#include "
G4ParticleDefinition.hh
"
36
37
#include "
G4Gamma.hh
"
38
#include "
G4Electron.hh
"
39
#include "
G4Positron.hh
"
40
41
#include "
G4ComptonScattering.hh
"
42
#include "
G4GammaConversion.hh
"
43
#include "
G4PhotoElectricEffect.hh
"
44
#include "
G4eMultipleScattering.hh
"
45
#include "
G4eIonisation.hh
"
46
#include "
G4eBremsstrahlung.hh
"
47
#include "
G4eplusAnnihilation.hh
"
48
49
50
// ====================================================================
51
//
52
// class description
53
//
54
// ====================================================================
55
57
PhysicsListEMstd::PhysicsListEMstd
()
59
{
60
SetVerboseLevel
(1);
61
defaultCutValue
= 1.*
mm
;
// default cut value (1.0mm)
62
}
63
64
66
PhysicsListEMstd::~PhysicsListEMstd
()
68
{
69
}
70
71
73
void
PhysicsListEMstd::ConstructParticle
()
75
{
76
G4Gamma::GammaDefinition
();
77
G4Electron::ElectronDefinition
();
78
G4Positron::PositronDefinition
();
79
}
80
81
83
void
PhysicsListEMstd::ConstructProcess
()
85
{
86
AddTransportation
();
87
88
G4ProcessManager
* pm;
89
90
// ----------------------------------------------------------
91
// gamma physics
92
// ----------------------------------------------------------
93
pm=
G4Gamma::Gamma
()-> GetProcessManager();
94
pm-> AddDiscreteProcess(
new
G4PhotoElectricEffect
);
95
pm-> AddDiscreteProcess(
new
G4ComptonScattering
);
96
pm-> AddDiscreteProcess(
new
G4GammaConversion
);
97
98
// ----------------------------------------------------------
99
// electron physics
100
// ----------------------------------------------------------
101
G4eMultipleScattering
* msc=
new
G4eMultipleScattering
;
102
G4eIonisation
* eion=
new
G4eIonisation
;
103
G4eBremsstrahlung
* ebrems=
new
G4eBremsstrahlung
;
104
105
pm=
G4Electron::Electron
()->
GetProcessManager
();
106
pm-> AddProcess(msc,
ordInActive
, 1, 1);
107
pm-> AddProcess(eion,
ordInActive
, 2, 2);
108
pm-> AddProcess(ebrems,
ordInActive
,
ordInActive
, 3);
109
110
// ----------------------------------------------------------
111
// positron physics
112
// ----------------------------------------------------------
113
msc=
new
G4eMultipleScattering
;
114
eion=
new
G4eIonisation
;
115
ebrems=
new
G4eBremsstrahlung
;
116
G4eplusAnnihilation
* annihilation=
new
G4eplusAnnihilation
;
117
118
pm=
G4Positron::Positron
()-> GetProcessManager();
119
pm-> AddProcess(msc,
ordInActive
, 1, 1);
120
pm-> AddProcess(eion,
ordInActive
, 2, 2);
121
pm-> AddProcess(ebrems,
ordInActive
,
ordInActive
, 3);
122
pm-> AddProcess(annihilation, 0,
ordInActive
, 4);
123
124
}
125
126
128
void
PhysicsListEMstd::SetCuts
()
130
{
131
SetCutsWithDefault
();
132
}
133
G4ComptonScattering.hh
G4Electron.hh
G4GammaConversion.hh
G4Gamma.hh
G4ParticleDefinition.hh
G4PhotoElectricEffect.hh
G4Positron.hh
G4ProcessManager.hh
ordInActive
@ ordInActive
Definition:
G4ProcessManager.hh:89
mm
static constexpr double mm
Definition:
G4SIunits.hh:95
G4SystemOfUnits.hh
G4eBremsstrahlung.hh
G4eIonisation.hh
G4eMultipleScattering.hh
G4eplusAnnihilation.hh
G4ComptonScattering
Definition:
G4ComptonScattering.hh:72
G4Electron::ElectronDefinition
static G4Electron * ElectronDefinition()
Definition:
G4Electron.cc:88
G4Electron::Electron
static G4Electron * Electron()
Definition:
G4Electron.cc:93
G4GammaConversion
Definition:
G4GammaConversion.hh:76
G4Gamma::GammaDefinition
static G4Gamma * GammaDefinition()
Definition:
G4Gamma.cc:80
G4Gamma::Gamma
static G4Gamma * Gamma()
Definition:
G4Gamma.cc:85
G4ParticleDefinition::GetProcessManager
G4ProcessManager * GetProcessManager() const
Definition:
G4ParticleDefinition.cc:238
G4PhotoElectricEffect
Definition:
G4PhotoElectricEffect.hh:80
G4Positron::Positron
static G4Positron * Positron()
Definition:
G4Positron.cc:93
G4Positron::PositronDefinition
static G4Positron * PositronDefinition()
Definition:
G4Positron.cc:88
G4ProcessManager
Definition:
G4ProcessManager.hh:95
G4VPhysicsConstructor::SetVerboseLevel
void SetVerboseLevel(G4int value)
Definition:
G4VPhysicsConstructor.hh:176
G4VUserPhysicsList::defaultCutValue
G4double defaultCutValue
Definition:
G4VUserPhysicsList.hh:285
G4VUserPhysicsList::SetCutsWithDefault
void SetCutsWithDefault()
Definition:
G4VUserPhysicsList.cc:471
G4VUserPhysicsList::AddTransportation
void AddTransportation()
Definition:
G4VUserPhysicsList.cc:1069
G4eBremsstrahlung
Definition:
G4eBremsstrahlung.hh:81
G4eIonisation
Definition:
G4eIonisation.hh:80
G4eMultipleScattering
Definition:
G4eMultipleScattering.hh:60
G4eplusAnnihilation
Definition:
G4eplusAnnihilation.hh:65
PhysicsListEMstd::~PhysicsListEMstd
~PhysicsListEMstd()
Definition:
PhysicsListEMstd.cc:66
PhysicsListEMstd::PhysicsListEMstd
PhysicsListEMstd()
Definition:
PhysicsListEMstd.cc:57
PhysicsListEMstd::ConstructProcess
virtual void ConstructProcess()
Definition:
PhysicsListEMstd.cc:83
PhysicsListEMstd::SetCuts
virtual void SetCuts()
Definition:
PhysicsListEMstd.cc:128
PhysicsListEMstd::ConstructParticle
virtual void ConstructParticle()
Definition:
PhysicsListEMstd.cc:73
PhysicsListEMstd.hh
Generated by
1.9.3