Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 09:24:03

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