EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4_QA_EIC.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file G4_QA_EIC.C
1 #ifndef MACRO_G4QAEIC_C
2 #define MACRO_G4QAEIC_C
3 
4 #include <GlobalVariables.C>
5 
6 #include <G4_CEmc_EIC.C>
7 #include <G4_EEMC.C>
8 #include <G4_FEMC_EIC.C>
9 #include <G4_FHCAL.C>
10 #include <G4_HcalIn_ref.C>
11 #include <G4_HcalOut_ref.C>
12 
13 #pragma GCC diagnostic push
14 #pragma GCC diagnostic ignored "-Wundefined-internal"
15 #include <eicqa_modules/QAExample.h>
16 #pragma GCC diagnostic pop
17 
18 #include <eicqa_modules/QAG4SimulationEicCalorimeter.h>
19 #include <eicqa_modules/QAG4SimulationEicCalorimeterSum.h>
20 
21 R__LOAD_LIBRARY(libeicqa_modules.so)
22 
24 {
26  if (Enable::CEMC)
27  {
29  }
30  if (Enable::HCALIN)
31  {
33  }
34  if (Enable::HCALOUT)
35  {
37  }
38  if (Enable::FEMC)
39  {
41  }
42  if (Enable::FHCAL)
43  {
45  }
46  if (Enable::EEMC)
47  {
49  }
51  {
52  // The QA modules also deals with tracking which we do not apply right now
53  // so we need to call the module with kProcessCluster
54  QAG4SimulationEicCalorimeterSum *calo_qa = nullptr;
55  if (Enable::TRACKING)
56  {
57  calo_qa = new QAG4SimulationEicCalorimeterSum();
59  }
60  else
61  {
63  }
64  // calo_qa->Verbosity(10);
65  se->registerSubsystem(calo_qa);
66  }
67  QAExample *qa = new QAExample();
68  //qa->Verbosity(2);
69  se->registerSubsystem(qa);
70 }
71 
72 #endif // MACRO_G4QAEIC_C