Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
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
4
#include <
fun4all/Fun4AllServer.h
>
5
#include <qa_modules/QAG4SimulationCalorimeterSum.h>
6
#include <qautils/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
25
void
QA_G4CaloTracking
()
26
{
27
Fun4AllServer
* se =
Fun4AllServer::instance
();
28
QAG4SimulationCalorimeterSum
* calo_qa =
new
QAG4SimulationCalorimeterSum
();
29
calo_qa->
Verbosity
(
Enable::QA_VERBOSITY
);
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
{
37
Fun4AllServer
* se =
Fun4AllServer::instance
();
38
QAHistManagerDef::saveQARootFile
(qaOutputFileName);
39
return
;
40
}
41
42
#endif
macros
blob
master
common
QA.C
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:51
using
1.8.2 with
sPHENIX GitHub integration