EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
Home page
Related Pages
Modules
Namespaces
Classes
Files
External Links
File List
File Members
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
23
void
QAInit
()
24
{
25
Fun4AllServer
*se =
Fun4AllServer::instance
();
26
if
(
Enable::CEMC
)
27
{
28
se->
registerSubsystem
(
new
QAG4SimulationEicCalorimeter
(
"CEMC"
));
29
}
30
if
(
Enable::HCALIN
)
31
{
32
se->
registerSubsystem
(
new
QAG4SimulationEicCalorimeter
(
"HCALIN"
));
33
}
34
if
(
Enable::HCALOUT
)
35
{
36
se->
registerSubsystem
(
new
QAG4SimulationEicCalorimeter
(
"HCALOUT"
));
37
}
38
if
(
Enable::FEMC
)
39
{
40
se->
registerSubsystem
(
new
QAG4SimulationEicCalorimeter
(
"FEMC"
,
QAG4SimulationEicCalorimeter::kProcessG4Hit
));
41
}
42
if
(
Enable::FHCAL
)
43
{
44
se->
registerSubsystem
(
new
QAG4SimulationEicCalorimeter
(
"FHCAL"
,
QAG4SimulationEicCalorimeter::kProcessG4Hit
));
45
}
46
if
(
Enable::EEMC
)
47
{
48
se->
registerSubsystem
(
new
QAG4SimulationEicCalorimeter
(
"EEMC"
,
QAG4SimulationEicCalorimeter::kProcessG4Hit
));
49
}
50
if
(
Enable::CEMC
&&
Enable::HCALIN
&&
Enable::HCALOUT
)
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
();
58
calo_qa->
set_track_nodename
(
TRACKING::TrackNodeName
);
59
}
60
else
61
{
62
calo_qa =
new
QAG4SimulationEicCalorimeterSum
(
QAG4SimulationEicCalorimeterSum::kProcessCluster
);
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
fun4all_eic_qa
blob
master
macros
G4_QA_EIC.C
Built by
Jin Huang
. updated:
Mon Jan 22 2024 12:43:51
using
1.8.2 with
EIC GitHub integration