Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-06 08:12:54

0001 // $Id$
0002 
0003 /*!
0004  * \file ${file_name}
0005  * \brief Macro setting up the barrel mRPC psTOF
0006  * \author Mickey Chiu <chiu@bnl.gov>
0007  * \version $Revision$
0008  * \date $Date$
0009  */
0010 
0011 void PSTOFInit()
0012 {}
0013 
0014 double PSTOF(PHG4Reco* g4Reco, double radius, const int absorberactive = 0)
0015 {
0016   gSystem->Load("libg4detectors.so");
0017   gSystem->Load("libg4testbench.so");
0018   
0019 
0020   PHG4PSTOFSubsystem *pstof = new PHG4PSTOFSubsystem( "PSTOF" );
0021   pstof->SuperDetector("PSTOF");
0022 //  pstof->SetActive(-1,1); // set all modules active
0023   g4Reco->registerSubsystem( pstof );
0024 
0025 // returns the outer radius to check for overlaps with next detector
0026   return 90.; 
0027 }