Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4_PSTOF.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file G4_PSTOF.C
1 #ifndef MACRO_G4PSTOF_C
2 #define MACRO_G4PSTOF_C
3 
5 #include <g4main/PHG4Reco.h>
6 
7 R__LOAD_LIBRARY(libg4detectors.so)
8 
9 // $Id$
10 
11 
18 namespace Enable
19 {
20  bool PSTOF = false;
21 }
22 
23 void PSTOFInit()
24 {
25 }
26 
27 double PSTOF(PHG4Reco* g4Reco, double radius)
28 {
29  PHG4PSTOFSubsystem* pstof = new PHG4PSTOFSubsystem("PSTOF");
30  pstof->SuperDetector("PSTOF");
31  // pstof->SetActive(-1,1); // set all modules active
32  g4Reco->registerSubsystem(pstof);
33 
34  // returns the outer radius to check for overlaps with next detector
35  return 90.;
36 }
37 #endif