Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
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
#include <
g4epd/PHG4EPDModuleReco.h
>
8
9
#include <
g4main/PHG4Reco.h
>
10
11
#include <
fun4all/Fun4AllServer.h
>
12
13
R__LOAD_LIBRARY(libg4epd.so)
14
15
namespace Enable
16
{
17
bool
EPD
=
false
;
18
bool
EPD_TILE
=
false
;
19
bool
EPD_OVERLAPCHECK
=
false
;
20
}
// namespace Enable
21
22
namespace
G4EPD
23
{
24
double
dz
= 6.;
25
double
place_z
= 316.;
26
}
27
28
void
EPDInit
()
29
{
30
BlackHoleGeometry::max_radius
= std::max(
BlackHoleGeometry::max_radius
, 91.);
31
// using default z-position and add 10 cm for tile thickness
32
BlackHoleGeometry::min_z
=
std::min
(
BlackHoleGeometry::min_z
, -
G4EPD::place_z
-
G4EPD::dz
/2. -
no_overlapp
);
33
BlackHoleGeometry::max_z
= std::max(
BlackHoleGeometry::max_z
,
G4EPD::place_z
+
G4EPD::dz
/2. +
no_overlapp
);
34
}
35
36
void
EPD
(
PHG4Reco
* g4Reco)
37
{
38
bool
overlap_check =
Enable::OVERLAPCHECK
||
Enable::EPD_OVERLAPCHECK
;
39
40
PHG4EPDSubsystem
* epd =
new
PHG4EPDSubsystem
(
"EPD"
);
41
42
epd->
SuperDetector
(
"EPD"
);
43
epd->
OverlapCheck
(overlap_check);
44
epd->
SetActive
();
45
46
g4Reco->
registerSubsystem
(epd);
47
}
48
49
void
EPD_Tiles
()
50
{
51
Fun4AllServer
*se =
Fun4AllServer::instance
();
52
PHG4EPDModuleReco
*TileBuilder =
new
PHG4EPDModuleReco
(
"EPDTileBuilder"
);
53
TileBuilder->
Detector
(
"EPD"
);
54
TileBuilder->
set_double_param
(
"epdmpv"
,2.064
e
-6);
55
se->
registerSubsystem
(TileBuilder);
56
}
57
58
#endif
/* COMMON_G4EPD_C */
macros
blob
master
common
G4_EPD.C
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:26
using
1.8.2 with
sPHENIX GitHub integration