Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
Analysis Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
acts-fatras
analysis
analysis_tpc_prototype
coresoftware
Doxygen_Assist
g4exampledetector
GenFit
JETSCAPE
KFParticle
macros
blob
master
calibrations
CaloProduction
CDBTest
common
CDBUtils.C
DisplayOn.C
Fun4All_CaloProduction.C
G4_ActsGeom.C
G4_BeamLine.C
G4_BlackHole.C
G4_CaloTrigger.C
G4_CEmc_Albedo.C
G4_CEmc_Spacal.C
G4_Centrality.C
G4_DSTReader.C
G4_EPD.C
G4_Global.C
G4_HcalIn_ref.C
G4_HcalOut_ref.C
G4_HIJetReco.C
G4_Input.C
G4_Jets.C
G4_KFParticle.C
G4_Magnet.C
G4_Mbd.C
G4_ParticleFlow.C
G4_Pipe.C
G4_PlugDoor.C
G4_Production.C
G4_PSTOF.C
G4_TopoClusterReco.C
G4_Tracking.C
G4_Tracking_Cosmics.C
G4_TrkrSimulation.C
G4_TrkrVariables.C
G4_User.C
G4_World.C
G4_ZDC.C
GlobalVariables.C
HIJetReco.C
QA.C
sPhenixStyle.C
sPhenixStyle.h
Trkr_Clustering.C
Trkr_CommissioningReco.C
Trkr_Diagnostics.C
Trkr_Eval.C
Trkr_LaserClustering.C
Trkr_QA.C
Trkr_Reco.C
Trkr_Reco_Cosmics.C
Trkr_RecoInit.C
Trkr_TruthReco.C
Trkr_TruthTables.C
detectors
eventcombine
InttProduction
macros
MvtxProduction
StreamingProduction
TpcProduction
TrackingProduction
validation
online_distribution
OnlMon
prototype
pythia6
rcdaq
RDBC
tutorials
doxygen_mainpage.h
File Members
Examples
External Links
•
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