EIC Software
Reference for
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_EPD.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file G4_EPD.C
1
#ifndef COMMON_G4EPD_C
2
#define COMMON_G4EPD_C
3
4
#include <
GlobalVariables.C
>
5
6
#include <
g4epd/PHG4EPDSubsystem.h
>
7
8
#include <
g4main/PHG4Reco.h
>
9
10
R__LOAD_LIBRARY
(libg4epd.so)
11
12
namespace Enable
13
{
14
bool
EPD
=
false
;
15
bool
EPD_SUPPORT
=
false
;
16
bool
EPD_OVERLAPCHECK
=
false
;
17
}
// namespace Enable
18
19
void
EPDInit
()
20
{
21
BlackHoleGeometry::max_radius
=
std::max
(
BlackHoleGeometry::max_radius
, 90.);
22
// using default z-position and add 10 cm for tile thickness
23
BlackHoleGeometry::min_z
=
std::min
(
BlackHoleGeometry::min_z
, -310.);
24
BlackHoleGeometry::max_z
=
std::max
(
BlackHoleGeometry::max_z
, 310.);
25
}
26
27
void
EPD
(
PHG4Reco
* g4Reco)
28
{
29
bool
overlap_check =
Enable::OVERLAPCHECK
||
Enable::EPD_OVERLAPCHECK
;
30
31
PHG4EPDSubsystem
* epd =
new
PHG4EPDSubsystem
(
"EPD"
);
32
33
epd->
SuperDetector
(
"EPD"
);
34
epd->
OverlapCheck
(overlap_check);
35
epd->
SetActive
();
36
37
g4Reco->
registerSubsystem
(epd);
38
}
39
40
#endif
/* COMMON_G4EPD_C */
fun4all_macros
blob
master
common
G4_EPD.C
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:54
using
1.8.2 with
EIC GitHub integration