Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-12-16 09:24:06

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