|
9 | 9 | // granted to it by virtue of its status as an Intergovernmental Organization |
10 | 10 | // or submit itself to any jurisdiction. |
11 | 11 |
|
12 | | -/// \file treeCreatorPidTpcQa.cxx |
| 12 | +/// \file treeCreatorPidTpcDiagnostics.cxx |
13 | 13 | /// \brief Creates trees with PID QA variables along with variables used for NN training |
14 | 14 | /// |
15 | 15 | /// \author Ana Marin <ana.marin@cern.ch> |
16 | 16 | /// \author Oleksii Lubynets <oleksii.lubynets@cern.ch> |
17 | 17 |
|
18 | | -#include "treeCreatorPidTpcQa.h" |
| 18 | +#include "treeCreatorPidTpcDiagnostics.h" |
19 | 19 |
|
20 | 20 | #include "Common/CCDB/RCTSelectionFlags.h" |
21 | 21 | #include "Common/CCDB/ctpRateFetcher.h" |
@@ -64,8 +64,8 @@ using namespace o2::dpg_tpcskimstablecreator; |
64 | 64 | MACRO(He, Helium3) \ |
65 | 65 | MACRO(Al, Alpha) |
66 | 66 |
|
67 | | -struct TreeCreatorPidTpcQa { |
68 | | - Produces<o2::aod::QaPidTpc> rowPidTpcQa; |
| 67 | +struct TreeCreatorPidTpcDiagnostics { |
| 68 | + Produces<o2::aod::PidTpcDiagnostics> rowPidTpcDiagnostics; |
69 | 69 |
|
70 | 70 | Configurable<int> applyEvSel{"applyEvSel", 2, "Flag to apply event selection: 0 -> no event selection, 1 -> Run 2 event selection, 2 -> Run 3 event selection"}; |
71 | 71 | Configurable<float> cutVtxZ{"cutVtxZ", 10.f, "Cut on vertex Z position [cm]"}; |
@@ -180,7 +180,7 @@ struct TreeCreatorPidTpcQa { |
180 | 180 | TrackType const& tracks) |
181 | 181 | { |
182 | 182 | if (mProcessedParticles == 0) { |
183 | | - rowPidTpcQa.reserve(tracks.size() * reserveRatio); |
| 183 | + rowPidTpcDiagnostics.reserve(tracks.size() * reserveRatio); |
184 | 184 | } |
185 | 185 |
|
186 | 186 | std::string irSource{}; |
@@ -249,49 +249,49 @@ struct TreeCreatorPidTpcQa { |
249 | 249 | nSigmaTof = o2::aod::pidutils::tofNSigma<ParticleId>(track); |
250 | 250 | } |
251 | 251 |
|
252 | | - rowPidTpcQa(isGoodRctEvent, ParticleId, ft0Occ, hadronicRate, multTPC, nClNormalized, nclPID, phi, tgl, tpcInnerParam, rapidity, momentum, signed1Pt, nSigmaTpc, dedxExpected, dedxDiff, expSigma, nSigmaTof); |
| 252 | + rowPidTpcDiagnostics(isGoodRctEvent, ParticleId, ft0Occ, hadronicRate, multTPC, nClNormalized, nclPID, phi, tgl, tpcInnerParam, rapidity, momentum, signed1Pt, nSigmaTpc, dedxExpected, dedxDiff, expSigma, nSigmaTof); |
253 | 253 | } // tracksFromCollision |
254 | 254 | } // collisions |
255 | 255 | ++mProcessedParticles; |
256 | 256 | if (mProcessedParticles == mEnabledParticles) { |
257 | 257 | mProcessedParticles = 0; |
258 | 258 | if (saveReserveQaHisto) { |
259 | | - registry.fill(HIST("hOutputRatio"), static_cast<double>((rowPidTpcQa.lastIndex() + 1)) / tracks.size()); |
| 259 | + registry.fill(HIST("hOutputRatio"), static_cast<double>((rowPidTpcDiagnostics.lastIndex() + 1)) / tracks.size()); |
260 | 260 | } |
261 | 261 | } |
262 | 262 | } |
263 | 263 |
|
264 | | -#define MAKE_PROCESS_FUNCTIONS(ParticleNameShort, ParticleNameLong) \ |
265 | | - void process##ParticleNameLong(CollisionsExtra const& collisions, \ |
266 | | - soa::Join<TrackCandidates, aod::pidTPC##ParticleNameShort> const& tracks, \ |
267 | | - aod::BCsWithTimestamps const&) \ |
268 | | - { \ |
269 | | - processSingleParticle<PID::ParticleNameLong, false, false>(collisions, tracks); \ |
270 | | - } \ |
271 | | - PROCESS_SWITCH(TreeCreatorPidTpcQa, process##ParticleNameLong, Form("Process for the %s hypothesis for TPC NSigma QA", #ParticleNameLong), false); \ |
272 | | - \ |
273 | | - void processFull##ParticleNameLong(CollisionsExtra const& collisions, \ |
274 | | - soa::Join<TrackCandidates, aod::pidTPCFull##ParticleNameShort> const& tracks, \ |
275 | | - aod::BCsWithTimestamps const&) \ |
276 | | - { \ |
277 | | - processSingleParticle<PID::ParticleNameLong, true, false>(collisions, tracks); \ |
278 | | - } \ |
279 | | - PROCESS_SWITCH(TreeCreatorPidTpcQa, processFull##ParticleNameLong, Form("Process for the %s hypothesis for full TPC PID QA", #ParticleNameLong), false); \ |
280 | | - \ |
281 | | - void processFullWithTOF##ParticleNameLong(CollisionsExtra const& collisions, \ |
282 | | - soa::Join<TrackCandidates, aod::pidTPCFull##ParticleNameShort, aod::pidTOFFull##ParticleNameShort> const& tracks, \ |
283 | | - aod::BCsWithTimestamps const&) \ |
284 | | - { \ |
285 | | - processSingleParticle<PID::ParticleNameLong, true, true>(collisions, tracks); \ |
286 | | - } \ |
287 | | - PROCESS_SWITCH(TreeCreatorPidTpcQa, processFullWithTOF##ParticleNameLong, Form("Process for the %s hypothesis for full TPC PID QA with the TOF info added", #ParticleNameLong), false); |
| 264 | +#define MAKE_PROCESS_FUNCTIONS(ParticleNameShort, ParticleNameLong) \ |
| 265 | + void process##ParticleNameLong(CollisionsExtra const& collisions, \ |
| 266 | + soa::Join<TrackCandidates, aod::pidTPC##ParticleNameShort> const& tracks, \ |
| 267 | + aod::BCsWithTimestamps const&) \ |
| 268 | + { \ |
| 269 | + processSingleParticle<PID::ParticleNameLong, false, false>(collisions, tracks); \ |
| 270 | + } \ |
| 271 | + PROCESS_SWITCH(TreeCreatorPidTpcDiagnostics, process##ParticleNameLong, Form("Process for the %s hypothesis for TPC NSigma QA", #ParticleNameLong), false); \ |
| 272 | + \ |
| 273 | + void processFull##ParticleNameLong(CollisionsExtra const& collisions, \ |
| 274 | + soa::Join<TrackCandidates, aod::pidTPCFull##ParticleNameShort> const& tracks, \ |
| 275 | + aod::BCsWithTimestamps const&) \ |
| 276 | + { \ |
| 277 | + processSingleParticle<PID::ParticleNameLong, true, false>(collisions, tracks); \ |
| 278 | + } \ |
| 279 | + PROCESS_SWITCH(TreeCreatorPidTpcDiagnostics, processFull##ParticleNameLong, Form("Process for the %s hypothesis for full TPC PID QA", #ParticleNameLong), false); \ |
| 280 | + \ |
| 281 | + void processFullWithTOF##ParticleNameLong(CollisionsExtra const& collisions, \ |
| 282 | + soa::Join<TrackCandidates, aod::pidTPCFull##ParticleNameShort, aod::pidTOFFull##ParticleNameShort> const& tracks, \ |
| 283 | + aod::BCsWithTimestamps const&) \ |
| 284 | + { \ |
| 285 | + processSingleParticle<PID::ParticleNameLong, true, true>(collisions, tracks); \ |
| 286 | + } \ |
| 287 | + PROCESS_SWITCH(TreeCreatorPidTpcDiagnostics, processFullWithTOF##ParticleNameLong, Form("Process for the %s hypothesis for full TPC PID QA with the TOF info added", #ParticleNameLong), false); |
288 | 288 |
|
289 | 289 | DO_FOR_ALL_PARTICLES(MAKE_PROCESS_FUNCTIONS) |
290 | 290 | #undef MAKE_PROCESS_FUNCTIONS |
291 | 291 | }; |
292 | 292 |
|
293 | 293 | WorkflowSpec defineDataProcessing(ConfigContext const& cfgc) |
294 | 294 | { |
295 | | - return WorkflowSpec{adaptAnalysisTask<TreeCreatorPidTpcQa>(cfgc)}; |
| 295 | + return WorkflowSpec{adaptAnalysisTask<TreeCreatorPidTpcDiagnostics>(cfgc)}; |
296 | 296 | } |
297 | 297 | #undef DO_FOR_ALL_PARTICLES |
0 commit comments