ECCE @ EIC Software
Reference for
ECCE @ EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
ECCE @ EIC Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
analysis
coresoftware
Doxygen_Assist
ecce-detectors
fun4all_eicdetectors
geant4
tree
geant4-10.6-release
config
environments
examples
advanced
basic
extended
analysis
biasing
common
electromagnetic
TestEm0
TestEm1
TestEm10
include
src
DetectorALICE06.cc
DetectorBari05.cc
DetectorBarr90.cc
DetectorConstruction.cc
DetectorHarris73.cc
DetectorMessenger.cc
DetectorSimpleALICE.cc
DetectorWatase86.cc
EventAction.cc
Materials.cc
PhysicsList.cc
PhysicsListMessenger.cc
PrimaryGeneratorAction.cc
RunAction.cc
RunMessenger.cc
SensitiveDetector.cc
StackingAction.cc
StepMax.cc
StepMaxMessenger.cc
TransitionRadiationPhysics.cc
XTRTransparentRegRadModel.cc
TestEm10.cc
TestEm11
TestEm12
TestEm13
TestEm14
TestEm15
TestEm16
TestEm17
TestEm18
TestEm2
TestEm3
TestEm4
TestEm5
TestEm6
TestEm7
TestEm8
TestEm9
errorpropagation
eventgenerator
exoticphysics
field
g3tog4
geometry
hadronic
medical
optical
parallel
parameterisations
persistency
physicslists
polarisation
radioactivedecay
runAndEvent
visualization
source
macros
online_distribution
tutorials
doxygen_mainpage.h
File Members
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
TransitionRadiationPhysics.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file TransitionRadiationPhysics.cc
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
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
28
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
29
30
#include "
TransitionRadiationPhysics.hh
"
31
#include "DetectorConstruction.hh"
32
#include "
G4VXTRenergyLoss.hh
"
33
#include "
G4ProcessManager.hh
"
34
#include "
G4Electron.hh
"
35
#include "
G4Positron.hh
"
36
37
#include "
G4VXTRenergyLoss.hh
"
38
#include "
G4RegularXTRadiator.hh
"
39
#include "
G4TransparentRegXTRadiator.hh
"
40
#include "
G4GammaXTRadiator.hh
"
41
#include "
G4StrawTubeXTRadiator.hh
"
42
43
#include "
G4XTRGammaRadModel.hh
"
44
#include "
G4XTRRegularRadModel.hh
"
45
#include "
G4XTRTransparentRegRadModel.hh
"
46
#include "
XTRTransparentRegRadModel.hh
"
47
48
G4ThreadLocal
49
G4VXTRenergyLoss
*
TransitionRadiationPhysics::fXTRProcess
=
nullptr
;
50
51
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
52
53
TransitionRadiationPhysics::TransitionRadiationPhysics
(
G4int
verb,
54
DetectorConstruction
* ptr)
55
:
G4VPhysicsConstructor
(
"XTR"
),
56
fDetector(ptr),
57
fVerbose(verb),
58
fXTRModel(
"transpM"
)
59
{}
60
61
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
62
63
TransitionRadiationPhysics::~TransitionRadiationPhysics
()
64
{}
65
66
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
67
68
void
TransitionRadiationPhysics::ConstructProcess
()
69
{
70
if
(
"dummy"
==
fXTRModel
) {
return
; }
71
if
(0 <
fVerbose
) {
72
G4cout
<<
"TransitionRadiationPhysics: XTR model <"
<<
fXTRModel
73
<<
">"
<<
G4endl
;
74
}
75
RadiatorDescription
* rDescription =
fDetector
->
GetRadiatorDescription
();
76
77
if
(
fXTRModel
==
"gammaR"
) {
78
79
fXTRProcess
=
new
G4GammaXTRadiator
(rDescription->
fLogicalVolume
,
80
100., 100.,
81
rDescription->
fFoilMaterial
,
82
rDescription->
fGasMaterial
,
83
rDescription->
fFoilThickness
,
84
rDescription->
fGasThickness
,
85
rDescription->
fFoilNumber
,
86
"GammaXTRadiator"
);
87
}
88
else
if
(
fXTRModel
==
"gammaM"
)
89
{
90
fXTRProcess
=
new
G4XTRGammaRadModel
(rDescription->
fLogicalVolume
,
91
100., 100.,
92
rDescription->
fFoilMaterial
,
93
rDescription->
fGasMaterial
,
94
rDescription->
fFoilThickness
,
95
rDescription->
fGasThickness
,
96
rDescription->
fFoilNumber
,
97
"GammaXTRadiator"
);
98
}
99
else
if
(
fXTRModel
==
"strawR"
)
100
{
101
fXTRProcess
=
new
G4StrawTubeXTRadiator
(rDescription->
fLogicalVolume
,
102
rDescription->
fFoilMaterial
,
103
rDescription->
fGasMaterial
,
104
0.53,
105
3.14159,
106
fDetector
->
GetAbsorberMaterial
(),
107
true
,
108
"strawXTRadiator"
);
109
}
110
else
if
(
fXTRModel
==
"regR"
)
111
{
112
fXTRProcess
=
new
G4RegularXTRadiator
(rDescription->
fLogicalVolume
,
113
rDescription->
fFoilMaterial
,
114
rDescription->
fGasMaterial
,
115
rDescription->
fFoilThickness
,
116
rDescription->
fGasThickness
,
117
rDescription->
fFoilNumber
,
118
"RegularXTRadiator"
);
119
}
120
else
if
(
fXTRModel
==
"transpR"
)
121
{
122
// G4TransparentRegXTRadiator*
123
fXTRProcess
=
new
G4TransparentRegXTRadiator
(rDescription->
fLogicalVolume
,
124
rDescription->
fFoilMaterial
,
125
rDescription->
fGasMaterial
,
126
rDescription->
fFoilThickness
,
127
rDescription->
fGasThickness
,
128
rDescription->
fFoilNumber
,
129
"RegularXTRadiator"
);
130
}
131
else
if
(
fXTRModel
==
"regM"
)
132
{
133
fXTRProcess
=
new
G4XTRRegularRadModel
(rDescription->
fLogicalVolume
,
134
rDescription->
fFoilMaterial
,
135
rDescription->
fGasMaterial
,
136
rDescription->
fFoilThickness
,
137
rDescription->
fGasThickness
,
138
rDescription->
fFoilNumber
,
139
"RegularXTRadiator"
);
140
141
}
142
else
if
(
fXTRModel
==
"transpM"
)
143
{
144
fXTRProcess
=
new
XTRTransparentRegRadModel
(rDescription->
fLogicalVolume
,
145
rDescription->
fFoilMaterial
,
146
rDescription->
fGasMaterial
,
147
rDescription->
fFoilThickness
,
148
rDescription->
fGasThickness
,
149
rDescription->
fFoilNumber
,
150
"RegularXTRadiator"
);
151
}
152
if
(!
fXTRProcess
) {
153
if
(0 <
fVerbose
) {
154
G4cout
<<
"TransitionRadiationPhysics: XTR model <"
<<
fXTRModel
155
<<
"> is not known - no XTR process defined"
<<
G4endl
;
156
}
157
return
;
158
}
159
160
fXTRProcess
->
SetVerboseLevel
(
fVerbose
);
161
162
G4Electron
* elec =
G4Electron::Electron
();
163
G4ProcessManager
* manager = elec->
GetProcessManager
();
164
manager->
AddDiscreteProcess
(
fXTRProcess
);
165
166
G4Positron
* posi =
G4Positron::Positron
();
167
manager = posi->
GetProcessManager
();
168
manager->
AddDiscreteProcess
(
fXTRProcess
);
169
}
170
171
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
172
geant4
tree
geant4-10.6-release
examples
extended
electromagnetic
TestEm10
src
TransitionRadiationPhysics.cc
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:03
using
1.8.2 with
ECCE GitHub integration