File indexing completed on 2025-08-03 08:20:27
0001 #ifndef MACRO_TRKRQA_C
0002 #define MACRO_TRKRQA_C
0003
0004 #include <GlobalVariables.C>
0005 #include <G4_TrkrVariables.C>
0006 #include <Trkr_TruthTables.C>
0007 #include <QA.C>
0008 #include <fun4all/Fun4AllServer.h>
0009 #include <simqa_modules/QAG4SimulationMvtx.h>
0010 #include <simqa_modules/QAG4SimulationIntt.h>
0011 #include <simqa_modules/QAG4SimulationTpc.h>
0012 #include <simqa_modules/QAG4SimulationMicromegas.h>
0013 #include <simqa_modules/QAG4SimulationTracking.h>
0014 #include <simqa_modules/QAG4SimulationUpsilon.h>
0015 #include <simqa_modules/QAG4SimulationVertex.h>
0016 #include <simqa_modules/QAG4SimulationDistortions.h>
0017
0018 R__LOAD_LIBRARY(libsimqa_modules.so)
0019
0020 void Mvtx_QA()
0021 {
0022 int verbosity = std::max(Enable::QA_VERBOSITY, Enable::MVTX_VERBOSITY);
0023
0024 Fun4AllServer* se = Fun4AllServer::instance();
0025 QAG4SimulationMvtx* qa = new QAG4SimulationMvtx;
0026 qa->Verbosity(verbosity);
0027 se->registerSubsystem(qa);
0028 }
0029
0030 void Intt_QA()
0031 {
0032 int verbosity = std::max(Enable::QA_VERBOSITY, Enable::INTT_VERBOSITY);
0033
0034 Fun4AllServer* se = Fun4AllServer::instance();
0035 QAG4SimulationIntt* qa = new QAG4SimulationIntt;
0036 qa->Verbosity(verbosity);
0037 se->registerSubsystem(qa);
0038 }
0039
0040 void TPC_QA()
0041 {
0042 int verbosity = std::max(Enable::QA_VERBOSITY, Enable::TPC_VERBOSITY);
0043
0044 Fun4AllServer* se = Fun4AllServer::instance();
0045 QAG4SimulationTpc * qa = new QAG4SimulationTpc;
0046 qa->Verbosity(verbosity);
0047 se->registerSubsystem(qa);
0048 }
0049
0050 void Micromegas_QA()
0051 {
0052 auto se = Fun4AllServer::instance();
0053 auto qa_mm = new QAG4SimulationMicromegas;
0054 qa_mm->Verbosity(Enable::QA_VERBOSITY);
0055 se->registerSubsystem(qa_mm);
0056 }
0057
0058
0059 void Tracking_QA()
0060 {
0061 int verbosity = std::max(Enable::QA_VERBOSITY, Enable::TRACKING_VERBOSITY);
0062
0063
0064
0065
0066
0067 Fun4AllServer* se = Fun4AllServer::instance();
0068
0069 build_truthreco_tables();
0070
0071 QAG4SimulationTracking* qa = new QAG4SimulationTracking();
0072
0073 qa->Verbosity(verbosity);
0074 se->registerSubsystem(qa);
0075
0076 QAG4SimulationVertex* qa2 = new QAG4SimulationVertex();
0077
0078 qa2->Verbosity(verbosity);
0079 se->registerSubsystem(qa2);
0080
0081
0082
0083 QAG4SimulationVertex* qav = new QAG4SimulationVertex();
0084
0085 qav->Verbosity(verbosity);
0086 qav->setVertexMapName("SvtxVertexMapActs");
0087 se->registerSubsystem(qav);
0088
0089 if (Input::UPSILON)
0090 {
0091 QAG4SimulationUpsilon* qa = new QAG4SimulationUpsilon();
0092
0093 for (int id : Input::UPSILON_EmbedIds)
0094 {
0095 qa->addEmbeddingID(id);
0096 }
0097 se->registerSubsystem(qa);
0098 }
0099 }
0100
0101 void Distortions_QA()
0102 {
0103 int verbosity = std::max(Enable::QA_VERBOSITY, Enable::TRACKING_VERBOSITY);
0104
0105
0106
0107
0108
0109 Fun4AllServer* se = Fun4AllServer::instance();
0110
0111 auto qa = new QAG4SimulationDistortions();
0112 qa->Verbosity(verbosity);
0113 se->registerSubsystem(qa);
0114 }
0115
0116 #endif