Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4_Centrality.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file G4_Centrality.C
1 #ifndef MACRO_G4CENTRALITY_C
2 #define MACRO_G4CENTRALITY_C
3 
4 #include <GlobalVariables.C>
5 
7 
9 
10 R__LOAD_LIBRARY(libfun4all.so)
11 R__LOAD_LIBRARY(libcentrality_io.so)
12 R__LOAD_LIBRARY(libg4centrality.so)
13 
14 namespace Enable
15 {
16  bool CENTRALITY = false;
18 } // namespace Enable
19 
20 void Centrality()
21 {
23  //---------------
24  // Fun4All server
25  //---------------
26 
28 
30  cent->Verbosity(verbosity);
31  if (Enable::CDB)
32  {
33  cent->GetCalibrationParameters().ReadFromCDB("CENTRALITY");
34  }
35  else
36  {
37  cent->GetCalibrationParameters().ReadFromFile("centrality", "xml", 0, 0, string(getenv("CALIBRATIONROOT")) + string("/Centrality/"));
38  }
39  se->registerSubsystem( cent );
40 
41  return;
42 }
43 #endif