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 // $Id$
2 
11 void PSTOFInit()
12 {}
13 
14 double PSTOF(PHG4Reco* g4Reco, double radius, const int absorberactive = 0)
15 {
16  gSystem->Load("libg4detectors.so");
17  gSystem->Load("libg4testbench.so");
18 
19 
20  PHG4PSTOFSubsystem *pstof = new PHG4PSTOFSubsystem( "PSTOF" );
21  pstof->SuperDetector("PSTOF");
22 // pstof->SetActive(-1,1); // set all modules active
23  g4Reco->registerSubsystem( pstof );
24 
25 // returns the outer radius to check for overlaps with next detector
26  return 90.;
27 }