ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
QA.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file QA.C
1 #ifndef MACRO_QA_C
2 #define MACRO_QA_C
3 
5 #include <qa_modules/QAG4SimulationCalorimeterSum.h>
6 #include <qa_modules/QAHistManagerDef.h>
7 
8 R__LOAD_LIBRARY(libfun4all.so)
9 R__LOAD_LIBRARY(libqa_modules.so)
10 
11 namespace Enable
12 {
13  // if you want this to run by default, initialize this to true
14  // Otherwise you have to use Enable::USER = true; in your macro
15  bool QA = false;
16  int QA_VERBOSITY = 0;
17 } // namespace Enable
18 
19 namespace QA
20 {
21  // int myparam = 0;
22 } // namespace QA
23 
24 // QA moduel combining tracking and calorimeters
26 {
30  se->registerSubsystem(calo_qa);
31  return;
32 }
33 
34 // run this after se->run() to output QA histogram file for all QA modules
35 void QA_Output(const std::string& qaOutputFileName)
36 {
38  QAHistManagerDef::saveQARootFile(qaOutputFileName);
39  return;
40 }
41 
42 #endif