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
Trkr_QA.C
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file Trkr_QA.C
1
#ifndef MACRO_TRKRQA_C
2
#define MACRO_TRKRQA_C
3
4
#include <
GlobalVariables.C
>
5
#include <
G4_TrkrVariables.C
>
6
#include <
Trkr_TruthTables.C
>
7
#include <
QA.C
>
8
#include <
fun4all/Fun4AllServer.h
>
9
#include <qa_modules/QAG4SimulationMvtx.h>
10
#include <qa_modules/QAG4SimulationIntt.h>
11
#include <qa_modules/QAG4SimulationTpc.h>
12
#include <qa_modules/QAG4SimulationMicromegas.h>
13
#include <qa_modules/QAG4SimulationTracking.h>
14
#include <qa_modules/QAG4SimulationUpsilon.h>
15
#include <qa_modules/QAG4SimulationVertex.h>
16
#include <qa_modules/QAG4SimulationDistortions.h>
17
18
R__LOAD_LIBRARY(libqa_modules.so)
19
20
void
Mvtx_QA
()
21
{
22
int
verbosity
= std::max(
Enable::QA_VERBOSITY
,
Enable::MVTX_VERBOSITY
);
23
24
Fun4AllServer
* se =
Fun4AllServer::instance
();
25
QAG4SimulationMvtx
* qa =
new
QAG4SimulationMvtx
;
26
qa->
Verbosity
(verbosity);
27
se->
registerSubsystem
(qa);
28
}
29
30
void
Intt_QA
()
31
{
32
int
verbosity
= std::max(
Enable::QA_VERBOSITY
,
Enable::INTT_VERBOSITY
);
33
34
Fun4AllServer
* se =
Fun4AllServer::instance
();
35
QAG4SimulationIntt
* qa =
new
QAG4SimulationIntt
;
36
qa->
Verbosity
(verbosity);
37
se->
registerSubsystem
(qa);
38
}
39
40
void
TPC_QA
()
41
{
42
int
verbosity
= std::max(
Enable::QA_VERBOSITY
,
Enable::TPC_VERBOSITY
);
43
44
Fun4AllServer
* se =
Fun4AllServer::instance
();
45
QAG4SimulationTpc
* qa =
new
QAG4SimulationTpc
;
46
qa->
Verbosity
(verbosity);
47
se->
registerSubsystem
(qa);
48
}
49
50
void
Micromegas_QA
()
51
{
52
auto
se =
Fun4AllServer::instance
();
53
auto
qa_mm =
new
QAG4SimulationMicromegas
;
54
qa_mm->
Verbosity
(
Enable::QA_VERBOSITY
);
55
se->registerSubsystem(qa_mm);
56
}
57
58
59
void
Tracking_QA
()
60
{
61
int
verbosity
= std::max(
Enable::QA_VERBOSITY
,
Enable::TRACKING_VERBOSITY
);
62
63
//---------------
64
// Fun4All server
65
//---------------
66
67
Fun4AllServer
* se =
Fun4AllServer::instance
();
68
69
build_truthreco_tables
();
70
71
QAG4SimulationTracking
* qa =
new
QAG4SimulationTracking
();
72
// qa->addEmbeddingID(2);
73
qa->
Verbosity
(verbosity);
74
se->
registerSubsystem
(qa);
75
76
QAG4SimulationVertex
* qa2 =
new
QAG4SimulationVertex
();
77
// qa2->addEmbeddingID(2);
78
qa2->
Verbosity
(verbosity);
79
se->
registerSubsystem
(qa2);
80
81
// Acts Kalman Filter vertex finder
82
//=================================
83
QAG4SimulationVertex
* qav =
new
QAG4SimulationVertex
();
84
// qav->addEmbeddingID(2);
85
qav->
Verbosity
(verbosity);
86
qav->
setVertexMapName
(
"SvtxVertexMapActs"
);
87
se->
registerSubsystem
(qav);
88
89
if
(
Input::UPSILON
)
90
{
91
QAG4SimulationUpsilon
* qa =
new
QAG4SimulationUpsilon
();
92
93
for
(
int
id
:
Input::UPSILON_EmbedIds
)
94
{
95
qa->
addEmbeddingID
(
id
);
96
}
97
se->
registerSubsystem
(qa);
98
}
99
}
100
101
void
Distortions_QA
()
102
{
103
int
verbosity
= std::max(
Enable::QA_VERBOSITY
,
Enable::TRACKING_VERBOSITY
);
104
105
//---------------
106
// Fun4All server
107
//---------------
108
109
Fun4AllServer
* se =
Fun4AllServer::instance
();
110
111
auto
qa =
new
QAG4SimulationDistortions
();
112
qa->Verbosity(verbosity);
113
se->
registerSubsystem
(qa);
114
}
115
116
#endif
macros
blob
master
common
Trkr_QA.C
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:18:27
using
1.8.2 with
sPHENIX GitHub integration