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
G4_CEmc_Albedo.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file G4_CEmc_Albedo.C
1
#ifndef MACRO_G4CEMCALBEDO_C
2
#define MACRO_G4CEMCALBEDO_C
3
4
#include <
GlobalVariables.C
>
5
6
#include <
g4detectors/PHG4CylinderSubsystem.h
>
7
8
namespace
Enable
9
{
10
bool
CEMCALBEDO
=
false
;
11
bool
CEMCALBEDO_ABSORBER
=
false
;
12
}
// namespace Enable
13
14
namespace
G4CEMCALBEDO
15
{
16
double
teflon_cylinder_thickness
= 1.5;
17
double
inner_radius
= 95. -
teflon_cylinder_thickness
;
// inner radius emc, 1.5cm electronics subtracted
18
double
albedo_thickness
= 2.;
19
}
// namespace G4CEMCALBEDO
20
21
void
CEmcAlbedoInit
()
22
{
23
BlackHoleGeometry::max_z
=
std::max
(
BlackHoleGeometry::max_z
, 149.47);
24
BlackHoleGeometry::min_z
=
std::min
(
BlackHoleGeometry::min_z
, -149.47);
25
BlackHoleGeometry::max_radius
=
std::max
(
BlackHoleGeometry::max_radius
,
G4CEMCALBEDO::inner_radius
+
G4CEMCALBEDO::teflon_cylinder_thickness
+
G4CEMCALBEDO::albedo_thickness
);
26
}
27
28
void
CEmcAlbedo
(
PHG4Reco
*g4Reco)
29
{
30
bool
AbsorberActive =
Enable::ABSORBER
||
Enable::CEMCALBEDO_ABSORBER
;
31
PHG4CylinderSubsystem
*cyl =
new
PHG4CylinderSubsystem
(
"CEMC_ELECTRONICS"
, 0);
32
cyl->
SuperDetector
(
"CEMC_MOCKUP"
);
33
cyl->
set_double_param
(
"radius"
,
G4CEMCALBEDO::inner_radius
);
34
cyl->
set_string_param
(
"material"
,
"G4_TEFLON"
);
35
cyl->
set_double_param
(
"thickness"
,
G4CEMCALBEDO::teflon_cylinder_thickness
);
36
if
(AbsorberActive) cyl->
SetActive
();
37
g4Reco->
registerSubsystem
(cyl);
38
cyl =
new
PHG4CylinderSubsystem
(
"CEMC_ALBEDO"
, 1);
39
cyl->
SuperDetector
(
"CEMC_MOCKUP"
);
40
cyl->
set_double_param
(
"radius"
,
G4CEMCALBEDO::inner_radius
+
G4CEMCALBEDO::teflon_cylinder_thickness
);
41
cyl->
set_string_param
(
"material"
,
"Spacal_W_Epoxy"
);
42
cyl->
set_double_param
(
"thickness"
,
G4CEMCALBEDO::albedo_thickness
);
43
if
(AbsorberActive) cyl->
SetActive
();
44
g4Reco->
registerSubsystem
(cyl);
45
}
46
#endif
macros
blob
master
common
G4_CEmc_Albedo.C
Built by
Jin Huang
. updated:
Wed Jun 29 2022 17:25:58
using
1.8.2 with
ECCE GitHub integration