Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-03 08:20:27

0001 #ifndef MACRO_TRKRTRUTHTABLES_C
0002 #define MACRO_TRKRTRUTHTABLES_C
0003 
0004 #include <GlobalVariables.C>
0005 
0006 #include <g4eval/SvtxTruthRecoTableEval.h>
0007 
0008 #include <fun4all/Fun4AllServer.h>
0009 
0010 R__LOAD_LIBRARY(libg4eval.so)
0011 
0012 void build_truthreco_tables()
0013 {
0014   int verbosity = std::max(Enable::VERBOSITY, Enable::TRACKING_VERBOSITY);
0015   Fun4AllServer* se = Fun4AllServer::instance();
0016   
0017   // this module builds high level truth track association table.
0018   // If this module is used, this table should be called before any evaluator calls.
0019   // Removing this module, evaluation will still work but trace truth association through the layers of G4-hit-cluster
0020   SvtxTruthRecoTableEval *tables = new SvtxTruthRecoTableEval();
0021   tables->Verbosity(verbosity);
0022   se->registerSubsystem(tables);
0023 
0024   return;
0025 }
0026 
0027 #endif