EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4_Bbc.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file G4_Bbc.C
1 #pragma once
2 #if ROOT_VERSION_CODE >= ROOT_VERSION(6,00,0)
5 R__LOAD_LIBRARY(libg4bbc.so)
6 #endif
7 
8 void BbcInit() {}
9 
10 double Bbc(PHG4Reco* g4Reco,
11  double radius,
12  const int absorberactive = 0,
13  int verbosity = 0) {
14 
15  // the BBC is a fast sim only at the moment
16  // this is a place holder for the G4 material setup
17 
18  return radius;
19 }
20 
21 void Bbc_Reco(int verbosity = 0) {
22 
23  //---------------
24  // Load libraries
25  //---------------
26 
27  gSystem->Load("libfun4all.so");
28  gSystem->Load("libg4bbc.so");
29 
30  //---------------
31  // Fun4All server
32  //---------------
33 
35 
36  BbcVertexFastSimReco* bbcvertex = new BbcVertexFastSimReco();
37  bbcvertex->set_z_smearing(0.0); // 6 mm, temporarily perfect for TPC initial vertexing
38  bbcvertex->set_t_smearing(0.002); // 20 ps
39  se->registerSubsystem(bbcvertex);
40 
41  return;
42 }