From 9cd86da5fa258e3dbddd031a4233501b53fbd5d4 Mon Sep 17 00:00:00 2001 From: Swati Saha Date: Sat, 2 May 2026 00:29:14 +0530 Subject: [PATCH 1/3] correct run error for lightions --- .../Tasks/v0ptHadPiKaProt.cxx | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/PWGCF/EbyEFluctuations/Tasks/v0ptHadPiKaProt.cxx b/PWGCF/EbyEFluctuations/Tasks/v0ptHadPiKaProt.cxx index 3f422e6f7d7..b442f8ca9d1 100644 --- a/PWGCF/EbyEFluctuations/Tasks/v0ptHadPiKaProt.cxx +++ b/PWGCF/EbyEFluctuations/Tasks/v0ptHadPiKaProt.cxx @@ -812,20 +812,20 @@ struct V0ptHadPiKaProt { return 0; } - int occupancy = coll.trackOccupancyInTimeRange(); - histos.fill(HIST("hOccupancyVsCentrality_before"), occupancy); - histos.fill(HIST("hEventStatData"), 6.5); // events with selection bits based on occupancy time pattern - if (cfgEvSelUseOcuppancyTimeCut && !(coll.selection_bit(o2::aod::evsel::kNoCollInTimeRangeStandard))) { - return 0; - } - - histos.fill(HIST("hOccupancyVsCentrality_after"), occupancy); - - histos.fill(HIST("hEventStatData"), 7.5); - if (cfgEvSelSetOcuppancyRange && (occupancy < cfgMinOccupancy || occupancy > cfgMaxOccupancy)) { - return 0; + if (cfgEvSelUseOcuppancyTimeCut) { + int occupancy = coll.trackOccupancyInTimeRange(); + histos.fill(HIST("hOccupancyVsCentrality_before"), coll.centFT0C(), occupancy); + if (!(coll.selection_bit(o2::aod::evsel::kNoCollInTimeRangeStandard))) + return 0; + else + histos.fill(HIST("hOccupancyVsCentrality_after"), coll.centFT0C(), occupancy); + + histos.fill(HIST("hEventStatData"), 7.5); + if (cfgEvSelSetOcuppancyRange && (occupancy < cfgMinOccupancy || occupancy > cfgMaxOccupancy)) { + return 0; + } } histos.fill(HIST("hEventStatData"), 8.5); From 609cffdcfa6d6d7ef4d4b588081bfaac001af454 Mon Sep 17 00:00:00 2001 From: Swati Saha Date: Sat, 2 May 2026 00:41:35 +0530 Subject: [PATCH 2/3] correct run error for lightions --- PWGCF/EbyEFluctuations/Tasks/v0ptHadPiKaProt.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PWGCF/EbyEFluctuations/Tasks/v0ptHadPiKaProt.cxx b/PWGCF/EbyEFluctuations/Tasks/v0ptHadPiKaProt.cxx index b442f8ca9d1..c991d16c345 100644 --- a/PWGCF/EbyEFluctuations/Tasks/v0ptHadPiKaProt.cxx +++ b/PWGCF/EbyEFluctuations/Tasks/v0ptHadPiKaProt.cxx @@ -36,7 +36,6 @@ #include #include -#include "TDatabasePDG.h" #include #include #include @@ -68,6 +67,8 @@ static constexpr float LongArrayFloat[3][20] = {{1.1, 1.2, 1.3, -1.1, -1.2, -1.3 struct V0ptHadPiKaProt { + Service pdgDB; + // ITS response o2::aod::ITSResponse itsResponse; // Connect to ccdb @@ -981,7 +982,7 @@ struct V0ptHadPiKaProt { continue; // charged check - auto pdgEntry = TDatabasePDG::Instance()->GetParticle(mcParticle.pdgCode()); + auto pdgEntry = pdgDB->getParticle(mcParticle.pdgCode()); if (!pdgEntry) continue; if (pdgEntry->Charge() == 0) From d56fd515fb4eb7e9bd94a8a4f6390a7c1bde6600 Mon Sep 17 00:00:00 2001 From: Swati Saha Date: Sat, 2 May 2026 00:57:21 +0530 Subject: [PATCH 3/3] correct run error for lightions --- PWGCF/EbyEFluctuations/Tasks/v0ptHadPiKaProt.cxx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/PWGCF/EbyEFluctuations/Tasks/v0ptHadPiKaProt.cxx b/PWGCF/EbyEFluctuations/Tasks/v0ptHadPiKaProt.cxx index c991d16c345..eff32e7dd98 100644 --- a/PWGCF/EbyEFluctuations/Tasks/v0ptHadPiKaProt.cxx +++ b/PWGCF/EbyEFluctuations/Tasks/v0ptHadPiKaProt.cxx @@ -36,6 +36,7 @@ #include #include +#include "TDatabasePDG.h" #include #include #include @@ -66,9 +67,6 @@ static constexpr float LongArrayFloat[3][20] = {{1.1, 1.2, 1.3, -1.1, -1.2, -1.3 #define O2_DEFINE_CONFIGURABLE(NAME, TYPE, DEFAULT, HELP) Configurable NAME{#NAME, DEFAULT, HELP}; struct V0ptHadPiKaProt { - - Service pdgDB; - // ITS response o2::aod::ITSResponse itsResponse; // Connect to ccdb @@ -982,7 +980,7 @@ struct V0ptHadPiKaProt { continue; // charged check - auto pdgEntry = pdgDB->getParticle(mcParticle.pdgCode()); + auto pdgEntry = TDatabasePDG::Instance()->GetParticle(mcParticle.pdgCode()); if (!pdgEntry) continue; if (pdgEntry->Charge() == 0)