EIC Software
 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 
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 {
22  // using default z-position and add 10 cm for tile thickness
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 */