From a0f4b2012aee1449943bd54ca7aeecb9cdebfb2d Mon Sep 17 00:00:00 2001 From: Mario Ciacco Date: Tue, 26 Aug 2025 17:36:04 +0200 Subject: [PATCH 1/2] add variable to control the charge of tracks counted --- PWGLF/TableProducer/Nuspex/ebyeMaker.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PWGLF/TableProducer/Nuspex/ebyeMaker.cxx b/PWGLF/TableProducer/Nuspex/ebyeMaker.cxx index bdb0c4a2058..7d39a5fdd8e 100644 --- a/PWGLF/TableProducer/Nuspex/ebyeMaker.cxx +++ b/PWGLF/TableProducer/Nuspex/ebyeMaker.cxx @@ -201,6 +201,7 @@ struct EbyeMaker { Configurable etaMaxV0dau{"etaMaxV0dau", 0.8f, "maximum eta V0 daughters"}; Configurable outerPIDMin{"outerPIDMin", -4.f, "minimum outer PID"}; + Configurable cutChargeNtracks{"cutChargeNtracks", "-2", "lower value of the track charge to add in the output counter variable"}; Configurable useAllEvSel{"useAllEvSel", false, "use additional event selections fo run 3 analyses"}; Configurable triggerCut{"triggerCut", 0x0, "trigger cut to select"}; Configurable kINT7Intervals{"kINT7Intervals", false, "toggle kINT7 trigger selection in the 10-30% and 50-90% centrality intervals (2018 Pb-Pb)"}; @@ -571,7 +572,7 @@ struct EbyeMaker { continue; } histos.fill(HIST("QA/tpcSignal"), track.tpcInnerParam(), track.tpcSignal()); - if (trackPt > ptMin[0] && trackPt < ptMax[0]) + if (trackPt > ptMin[0] && trackPt < ptMax[0] && track.sign() > cutChargeNtracks) nTracksColl++; for (int iP{0}; iP < kNpart; ++iP) { From bd5c17394033e39fce03b2e9d962415b212666a8 Mon Sep 17 00:00:00 2001 From: Mario Ciacco Date: Tue, 26 Aug 2025 17:42:31 +0200 Subject: [PATCH 2/2] change C to C++ type --- PWGLF/TableProducer/Nuspex/ebyeMaker.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PWGLF/TableProducer/Nuspex/ebyeMaker.cxx b/PWGLF/TableProducer/Nuspex/ebyeMaker.cxx index 7d39a5fdd8e..be1313c350b 100644 --- a/PWGLF/TableProducer/Nuspex/ebyeMaker.cxx +++ b/PWGLF/TableProducer/Nuspex/ebyeMaker.cxx @@ -201,7 +201,7 @@ struct EbyeMaker { Configurable etaMaxV0dau{"etaMaxV0dau", 0.8f, "maximum eta V0 daughters"}; Configurable outerPIDMin{"outerPIDMin", -4.f, "minimum outer PID"}; - Configurable cutChargeNtracks{"cutChargeNtracks", "-2", "lower value of the track charge to add in the output counter variable"}; + Configurable cutChargeNtracks{"cutChargeNtracks", "-2", "lower value of the track charge to add in the output counter variable"}; Configurable useAllEvSel{"useAllEvSel", false, "use additional event selections fo run 3 analyses"}; Configurable triggerCut{"triggerCut", 0x0, "trigger cut to select"}; Configurable kINT7Intervals{"kINT7Intervals", false, "toggle kINT7 trigger selection in the 10-30% and 50-90% centrality intervals (2018 Pb-Pb)"};