Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-03 08:20:26

0001 #ifndef MACRO_G4PSTOF_C
0002 #define MACRO_G4PSTOF_C
0003 
0004 #include <g4detectors/PHG4PSTOFSubsystem.h>
0005 #include <g4main/PHG4Reco.h>
0006 
0007 R__LOAD_LIBRARY(libg4detectors.so)
0008 
0009 // $Id$
0010 
0011 /*!
0012  * \file ${file_name}
0013  * \brief Macro setting up the barrel mRPC psTOF
0014  * \author Mickey Chiu <chiu@bnl.gov>
0015  * \version $Revision$
0016  * \date $Date$
0017  */
0018 namespace Enable
0019 {
0020   bool PSTOF = false;
0021 }
0022 
0023 void PSTOFInit()
0024 {
0025 }
0026 
0027 double PSTOF(PHG4Reco* g4Reco, double radius)
0028 {
0029   PHG4PSTOFSubsystem* pstof = new PHG4PSTOFSubsystem("PSTOF");
0030   pstof->SuperDetector("PSTOF");
0031   //  pstof->SetActive(-1,1); // set all modules active
0032   g4Reco->registerSubsystem(pstof);
0033 
0034   // returns the outer radius to check for overlaps with next detector
0035   return 90.;
0036 }
0037 #endif