Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:12:01

0001 
0002 void BbcInit() {}
0003 
0004 double Bbc(PHG4Reco* g4Reco,
0005        double radius,
0006        const int absorberactive = 0,
0007        int verbosity = 0) {
0008 
0009   // the BBC is a fast sim only at the moment
0010   // this is a place holder for the G4 material setup
0011   
0012   return radius; 
0013 }
0014 
0015 void Bbc_Reco(int verbosity = 0) {
0016   
0017   //---------------
0018   // Load libraries
0019   //---------------
0020 
0021   gSystem->Load("libfun4all.so");
0022   gSystem->Load("libg4bbc.so");
0023 
0024   //---------------
0025   // Fun4All server
0026   //---------------
0027 
0028   Fun4AllServer *se = Fun4AllServer::instance();
0029 
0030   BbcVertexFastSimReco* bbcvertex = new BbcVertexFastSimReco();
0031   bbcvertex->set_z_smearing(0.0);   // 6 mm, temporarily perfect for TPC initial vertexing
0032   bbcvertex->set_t_smearing(0.002); // 20 ps
0033   se->registerSubsystem(bbcvertex);
0034 
0035   return;
0036 }