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