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
runAndEvent
RE02
src
RE02EMPhysics.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
// $Id$
30
// --------------------------------------------------------------
31
//
32
//
33
// 09-Oct-2003 Change gamma, electron, positorn process T. Koi
34
// 10-Jan-2004 Add Brems. of AlongStepDoIt for e+- T. Koi
35
36
#include "
RE02EMPhysics.hh
"
37
38
#include "
globals.hh
"
39
#include "
G4ios.hh
"
40
#include <iomanip>
41
42
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
43
RE02EMPhysics::RE02EMPhysics
(
const
G4String
&
name
)
44
:
G4VPhysicsConstructor
(name)
45
{
46
}
47
48
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
49
RE02EMPhysics::~RE02EMPhysics
()
50
{
51
}
52
53
#include "
G4ParticleDefinition.hh
"
54
#include "
G4ParticleTable.hh
"
55
56
#include "
G4Gamma.hh
"
57
58
#include "
G4Electron.hh
"
59
#include "
G4Positron.hh
"
60
61
#include "
G4NeutrinoE.hh
"
62
#include "
G4AntiNeutrinoE.hh
"
63
64
#include "
G4ProcessManager.hh
"
65
66
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
67
void
RE02EMPhysics::ConstructProcess
()
68
{
69
G4ProcessManager
* pManager = 0;
70
71
//Gamma
72
pManager =
G4Gamma::Gamma
()->
GetProcessManager
();
73
pManager->
AddDiscreteProcess
(
new
G4GammaConversion
());
74
pManager->
AddDiscreteProcess
(
new
G4ComptonScattering
());
75
pManager->
AddDiscreteProcess
(
new
G4PhotoElectricEffect
());
76
77
//Electorn
78
pManager =
G4Electron::Electron
()->
GetProcessManager
();
79
G4VProcess
* theeminusMultipleScattering =
new
G4eMultipleScattering
();
80
G4VProcess
* theeminusIonisation =
new
G4eIonisation
();
81
G4VProcess
* theeminusBremsstrahlung =
new
G4eBremsstrahlung
();
82
//
83
// add process
84
pManager->
AddProcess
(theeminusMultipleScattering);
85
pManager->
AddProcess
(theeminusIonisation);
86
pManager->
AddProcess
(theeminusBremsstrahlung);
87
//
88
// set ordering for AlongStepDoIt
89
pManager->
SetProcessOrdering
(theeminusMultipleScattering,
idxAlongStep
,1);
90
pManager->
SetProcessOrdering
(theeminusIonisation,
idxAlongStep
,2);
91
pManager->
SetProcessOrdering
(theeminusBremsstrahlung,
idxAlongStep
,3);
92
//
93
// set ordering for PostStepDoIt
94
pManager->
SetProcessOrdering
(theeminusMultipleScattering,
idxPostStep
,1);
95
pManager->
SetProcessOrdering
(theeminusIonisation,
idxPostStep
,2);
96
pManager->
SetProcessOrdering
(theeminusBremsstrahlung,
idxPostStep
,3);
97
98
//Positron
99
pManager =
G4Positron::Positron
()->
GetProcessManager
();
100
G4VProcess
* theeplusMultipleScattering =
new
G4eMultipleScattering
();
101
G4VProcess
* theeplusIonisation =
new
G4eIonisation
();
102
G4VProcess
* theeplusBremsstrahlung =
new
G4eBremsstrahlung
();
103
G4VProcess
* theeplusAnnihilation =
new
G4eplusAnnihilation
();
104
105
pManager->
AddProcess
(theeplusMultipleScattering);
106
pManager->
AddProcess
(theeplusIonisation);
107
pManager->
AddProcess
(theeplusBremsstrahlung);
108
pManager->
AddProcess
(theeplusAnnihilation);
109
//
110
// set ordering for AtRestDoIt
111
pManager->
SetProcessOrderingToFirst
(theeplusAnnihilation,
idxAtRest
);
112
//
113
// set ordering for AlongStepDoIt
114
pManager->
SetProcessOrdering
(theeplusMultipleScattering,
idxAlongStep
,1);
115
pManager->
SetProcessOrdering
(theeplusIonisation,
idxAlongStep
,2);
116
pManager->
SetProcessOrdering
(theeplusBremsstrahlung,
idxAlongStep
,3);
117
//
118
// set ordering for PostStepDoIt
119
pManager->
SetProcessOrdering
(theeplusMultipleScattering,
idxPostStep
,1);
120
pManager->
SetProcessOrdering
(theeplusIonisation,
idxPostStep
,2);
121
pManager->
SetProcessOrdering
(theeplusBremsstrahlung,
idxPostStep
,3);
122
pManager->
SetProcessOrdering
(theeplusAnnihilation,
idxPostStep
,4);
123
124
}
Generated on Sat May 25 2013 14:33:01 for Geant4 by
1.8.4