From 0b9bc81e75efa919337a88670961d8a2c55e23ac Mon Sep 17 00:00:00 2001 From: ddobrigk Date: Thu, 31 Jul 2025 11:07:29 +0200 Subject: [PATCH 1/2] [Common] Reorder dEdxNorm use in TPC PIP --- Common/TableProducer/PID/pidTPCModule.h | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/Common/TableProducer/PID/pidTPCModule.h b/Common/TableProducer/PID/pidTPCModule.h index 37883de0273..8ad6dc93a49 100644 --- a/Common/TableProducer/PID/pidTPCModule.h +++ b/Common/TableProducer/PID/pidTPCModule.h @@ -633,6 +633,18 @@ class pidTPCModule // if corrected dE/dx is requested, correct it here on the spot and use that if (pidTPCopts.useCorrecteddEdx) { + + //_________________________________________________________ + // bypass TPC signal in case TracksQA information present + if constexpr (soa::is_table) { + tpcSignalToEvaluatePID = -999.f; + if (indexTrack2TrackQA[trk.globalIndex()] != -1) { + auto trackQA = tracksQA.rawIteratorAt(indexTrack2TrackQA[trk.globalIndex()]); + tpcSignalToEvaluatePID = trackQA.tpcdEdxNorm(); + } + } + //_________________________________________________________ + double hadronicRate; int occupancy; if (trk.has_collision()) { @@ -648,7 +660,7 @@ class pidTPCModule occupancy = 0; } - float fTPCSignal = trk.tpcSignal(); + float fTPCSignal = tpcSignalToEvaluatePID; float fNormMultTPC = multTPC / 11000.; float fTrackOccN = occupancy / 1000.; @@ -689,17 +701,6 @@ class pidTPCModule // change the signal used for PID tpcSignalToEvaluatePID = fTPCSignal / fTPCSignalN_CR1; - //_________________________________________________________ - // bypass TPC signal in case TracksQA information present - if constexpr (soa::is_table) { - tpcSignalToEvaluatePID = -999.f; - if (indexTrack2TrackQA[trk.globalIndex()] != -1) { - auto trackQA = tracksQA.rawIteratorAt(indexTrack2TrackQA[trk.globalIndex()]); - tpcSignalToEvaluatePID = trackQA.tpcdEdxNorm(); - } - } - //_________________________________________________________ - if (pidTPCopts.savedEdxsCorrected) { // populated cursor if requested or autodetected products.dEdxCorrected(tpcSignalToEvaluatePID); From e6ad2a8f229a4aa6a04590b14d5a551b27e1d1dc Mon Sep 17 00:00:00 2001 From: ALICE Builder Date: Thu, 31 Jul 2025 11:12:05 +0200 Subject: [PATCH 2/2] Please consider the following formatting changes (#460) --- Common/TableProducer/PID/pidTPCModule.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/TableProducer/PID/pidTPCModule.h b/Common/TableProducer/PID/pidTPCModule.h index 8ad6dc93a49..321b6e39329 100644 --- a/Common/TableProducer/PID/pidTPCModule.h +++ b/Common/TableProducer/PID/pidTPCModule.h @@ -644,7 +644,7 @@ class pidTPCModule } } //_________________________________________________________ - + double hadronicRate; int occupancy; if (trk.has_collision()) {