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
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
TestParameters.cc
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file TestParameters.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
//
28
//
29
//
30
//---------------------------------------------------------------------------
31
//
32
// ClassName: TestParameters
33
//
34
// Author: V.Ivanchenko 01.09.2010
35
//
36
//----------------------------------------------------------------------------
37
//
38
39
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
40
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
41
42
#include "TestParameters.hh"
43
#include "
G4UnitsTable.hh
"
44
#include "
G4SystemOfUnits.hh
"
45
46
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
47
48
TestParameters
*
TestParameters::fManager
=
nullptr
;
49
50
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
51
52
TestParameters
*
TestParameters::GetPointer
()
53
{
54
if
(!
fManager
) {
55
fManager
=
new
TestParameters
();
56
}
57
return
fManager
;
58
}
59
60
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
61
62
TestParameters::TestParameters
()
63
{
64
fMaxEnergy
= 100.*
keV
;
65
fBinsE
= 100;
66
fBinsCluster
= 1;
67
fMaxCluster
= 1500;
68
fNormFactor
= 1.0;
69
fEnergySmear
= 0.0;
70
fPositionZ
= 0.0;
71
fBeamEnergy
= 0.0;
72
73
fParticle
=
nullptr
;
74
75
// normalisation to PAI
76
fFactorALICE
= 325;
77
78
// normalisation to Opt0
79
//fFactorALICE = 275;
80
}
81
82
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
83
84
TestParameters::~TestParameters
()
85
{}
86
87
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
88
89
void
TestParameters::SetMaxEnergy
(
G4double
value
)
90
{
91
fMaxEnergy
=
value
;
92
}
93
94
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
95
96
G4double
TestParameters::GetMaxEnergy
()
const
97
{
98
return
fMaxEnergy
;
99
}
100
101
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
102
103
void
TestParameters::SetNumberBins
(
G4int
value
)
104
{
105
fBinsE
=
value
;
106
}
107
108
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
109
110
G4int
TestParameters::GetNumberBins
()
const
111
{
112
return
fBinsE
;
113
}
114
115
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
116
117
void
TestParameters::SetNumberBinsCluster
(
G4int
value
)
118
{
119
fBinsCluster
=
value
;
120
}
121
122
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
123
124
G4int
TestParameters::GetNumberBinsCluster
()
const
125
{
126
return
fBinsCluster
;
127
}
128
129
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
130
131
void
TestParameters::SetMaxCluster
(
G4int
value
)
132
{
133
fMaxCluster
=
value
;
134
}
135
136
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
137
138
G4int
TestParameters::GetMaxCluster
()
const
139
{
140
return
fMaxCluster
;
141
}
142
143
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
144
145
void
TestParameters::SetEnergyPerChannel
(
G4double
value
)
146
{
147
if
(value > 0.0) {
fFactorALICE
= 1./
value
; }
148
}
149
150
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
151
152
G4double
TestParameters::GetFactorALICE
()
const
153
{
154
return
fFactorALICE
;
155
}
156
157
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
158
159
void
TestParameters::SetNormFactor
(
G4double
value
)
160
{
161
fNormFactor
=
value
;
162
}
163
164
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
165
166
G4double
TestParameters::GetNormFactor
()
const
167
{
168
return
fNormFactor
;
169
}
170
171
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
172
173
void
TestParameters::SetEnergySmear
(
G4double
value
)
174
{
175
fEnergySmear
=
value
;
176
}
177
178
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
179
180
G4double
TestParameters::GetEnergySmear
()
const
181
{
182
return
fEnergySmear
;
183
}
184
185
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
186
187
void
TestParameters::SetPositionZ
(
G4double
val)
188
{
189
fPositionZ
= val;
190
}
191
192
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
193
194
G4double
TestParameters::GetPositionZ
()
const
195
{
196
return
fPositionZ
;
197
}
198
199
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
200
201
void
TestParameters::SetBeamEnergy
(
G4double
val)
202
{
203
fBeamEnergy
= val;
204
}
205
206
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
207
208
G4double
TestParameters::GetBeamEnergy
()
const
209
{
210
return
fBeamEnergy
;
211
}
212
213
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
214
215
void
TestParameters::SetBeamParticle
(
const
G4ParticleDefinition
* ptr)
216
{
217
fParticle
= ptr;
218
}
219
220
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
221
222
const
G4ParticleDefinition
*
TestParameters::GetBeamParticle
()
const
223
{
224
return
fParticle
;
225
}
226
227
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
geant4
tree
geant4-10.6-release
examples
extended
electromagnetic
TestEm8
src
TestParameters.cc
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:03
using
1.8.2 with
ECCE GitHub integration