You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DPG/Tasks/AOTTrack/PID/TPC/treeCreatorPidTpcQa.cxx
+22-21Lines changed: 22 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,7 @@
37
37
#include<Framework/runDataProcessing.h>
38
38
#include<ReconstructionDataFormats/PID.h>
39
39
40
+
#include<array>
40
41
#include<cmath>
41
42
#include<cstdint>
42
43
#include<string>
@@ -46,16 +47,16 @@ using namespace o2::framework;
46
47
usingnamespaceo2::track;
47
48
usingnamespaceo2::dpg_tpcskimstablecreator;
48
49
49
-
#definePARTICLE_LIST(MACRO_ARG) \
50
-
MACRO_ARG(El, Electron) \
51
-
MACRO_ARG(Mu, Muon) \
52
-
MACRO_ARG(Pi, Pion) \
53
-
MACRO_ARG(Ka, Kaon) \
54
-
MACRO_ARG(Pr, Proton) \
55
-
MACRO_ARG(De, Deuteron) \
56
-
MACRO_ARG(Tr, Triton) \
57
-
MACRO_ARG(He, Helium3) \
58
-
MACRO_ARG(Al, Alpha)
50
+
#defineDO_FOR_ALL_PARTICLES(MACRO) \
51
+
MACRO(El, Electron) \
52
+
MACRO(Mu, Muon) \
53
+
MACRO(Pi, Pion) \
54
+
MACRO(Ka, Kaon) \
55
+
MACRO(Pr, Proton) \
56
+
MACRO(De, Deuteron) \
57
+
MACRO(Tr, Triton) \
58
+
MACRO(He, Helium3) \
59
+
MACRO(Al, Alpha)
59
60
60
61
struct TreeCreatorPidTpcQa {
61
62
Produces<o2::aod::QaPidTpc> rowPidTpcQa;
@@ -76,22 +77,22 @@ struct TreeCreatorPidTpcQa {
76
77
Configurable<float> cutTpcInnerParameterMax##ParticleNameLong{"cutTpcInnerParameterMax" #ParticleNameLong, 999.f, "Upper-value cut on tpcInnerParam for " #ParticleNameLong}; /* o2-linter: disable=name/configurable (Configurable defined in macro)*/ \
77
78
Configurable<float> cutNSigmaTpcAbs##ParticleNameLong{"cutNSigmaTpcAbs" #ParticleNameLong, 999.f, "Cut on absolute value of nSigmaTpc for " #ParticleNameLong}; // o2-linter: disable=name/configurable (Configurable defined in macro)
if (!doprocess##ParticleNameLong && !doprocessFull##ParticleNameLong && !doprocessFullWithTOF##ParticleNameLong) { \
118
119
returnfalse; \
@@ -129,8 +130,8 @@ struct TreeCreatorPidTpcQa {
129
130
LOG(info) << "Enabled TPC QA for " << #ParticleNameLong; \
130
131
break;
131
132
132
-
PARTICLE_LIST(PARTICLE_CASE)
133
-
#undefPARTICLE_CASE
133
+
DO_FOR_ALL_PARTICLES(INIT_PARTICLE)
134
+
#undefINIT_PARTICLE
134
135
}
135
136
if (enabledProcesses != 1) {
136
137
LOG(fatal) << "Cannot enable more than one process function per particle, check and retry!";
@@ -231,7 +232,7 @@ struct TreeCreatorPidTpcQa {
231
232
} \
232
233
PROCESS_SWITCH(TreeCreatorPidTpcQa, process##ParticleNameLong, Form("Process for the %s hypothesis for TPC NSigma QA", #ParticleNameLong), false);
233
234
234
-
PARTICLE_LIST(MAKE_PROCESS_FUNCTION)
235
+
DO_FOR_ALL_PARTICLES(MAKE_PROCESS_FUNCTION)
235
236
#undef MAKE_PROCESS_FUNCTION
236
237
237
238
// QA of full tables
@@ -244,7 +245,7 @@ struct TreeCreatorPidTpcQa {
244
245
} \
245
246
PROCESS_SWITCH(TreeCreatorPidTpcQa, processFull##ParticleNameLong, Form("Process for the %s hypothesis for full TPC PID QA", #ParticleNameLong), false);
PROCESS_SWITCH(TreeCreatorPidTpcQa, processFullWithTOF##ParticleNameLong, Form("Process for the %s hypothesis for full TPC PID QA with the TOF info added", #ParticleNameLong), false);
0 commit comments