From aae1a933520e71060a0eb4b10cefd4cfe4c8b79b Mon Sep 17 00:00:00 2001 From: Stefanie Mrozinski Date: Tue, 21 Jul 2026 13:09:31 +0200 Subject: [PATCH 1/3] fix histogram booking --- PWGEM/PhotonMeson/Tasks/photonhbt.cxx | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/PWGEM/PhotonMeson/Tasks/photonhbt.cxx b/PWGEM/PhotonMeson/Tasks/photonhbt.cxx index 0ae897ca70f..38fc055f6cd 100644 --- a/PWGEM/PhotonMeson/Tasks/photonhbt.cxx +++ b/PWGEM/PhotonMeson/Tasks/photonhbt.cxx @@ -1359,12 +1359,23 @@ struct Photonhbt { float qside_lcms = q3_lcms.Dot(uv_side); float qlong_lcms = q3_lcms.Dot(uv_long); if (hbtanalysis.cfgDo3D) { - fRegistryPairMC.fill(HIST("Pair/same/MC/NoLabel/CF_3D"), std::fabs(qout_lcms), std::fabs(qside_lcms), std::fabs(qlong_lcms), kt); - if (hbtanalysis.cfgDo2D) { - fRegistryPairMC.fill(HIST("Pair/same/MC/NoLabel/CF_2D"), std::fabs(qout_lcms), std::fabs(qinv), kt); + if constexpr (ev_id == 0) { + fRegistryCF.fill(HIST("Pair/same/CF_3D"), std::fabs(qout_lcms), std::fabs(qside_lcms), std::fabs(qlong_lcms), kt, weight); + if (hbtanalysis.cfgDo2D) { + fRegistryCF.fill(HIST("Pair/same/CF_2D"), std::fabs(qout_lcms), std::fabs(qinv), kt, weight); + } + } else { + fRegistryCF.fill(HIST("Pair/mix/CF_3D"), std::fabs(qout_lcms), std::fabs(qside_lcms), std::fabs(qlong_lcms), kt, weight); + if (hbtanalysis.cfgDo2D) { + fRegistryCF.fill(HIST("Pair/mix/CF_2D"), std::fabs(qout_lcms), std::fabs(qinv), kt, weight); + } } } else { - fRegistryPairMC.fill(HIST("Pair/same/MC/NoLabel/CF_1D"), hbtanalysis.cfgUseLCMS ? qabs_lcms : qinv, kt); + if constexpr (ev_id == 0) { + fRegistryCF.fill(HIST("Pair/same/CF_1D"), hbtanalysis.cfgUseLCMS ? qabs_lcms : qinv, kt, weight); + } else { + fRegistryCF.fill(HIST("Pair/mix/CF_1D"), hbtanalysis.cfgUseLCMS ? qabs_lcms : qinv, kt, weight); + } } float deta_pair = v1.Eta() - v2.Eta(); float dphi_pair = v1.Phi() - v2.Phi(); @@ -2706,8 +2717,8 @@ struct Photonhbt { } } } // end cfgDoTruthMix - } // end collision loop - } // end runTruthEfficiency + } // end collision loop + } // end runTruthEfficiency /*************************************************/ // PROCESS FUNCTIONS From 21b7c3fa54f656572f14e1d1513b2f05777d49e5 Mon Sep 17 00:00:00 2001 From: Stefanie Mrozinski Date: Tue, 21 Jul 2026 13:22:48 +0200 Subject: [PATCH 2/3] add missing header --- PWGEM/PhotonMeson/Tasks/photonhbt.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/PWGEM/PhotonMeson/Tasks/photonhbt.cxx b/PWGEM/PhotonMeson/Tasks/photonhbt.cxx index 38fc055f6cd..53f007ad634 100644 --- a/PWGEM/PhotonMeson/Tasks/photonhbt.cxx +++ b/PWGEM/PhotonMeson/Tasks/photonhbt.cxx @@ -31,6 +31,7 @@ #include #include #include +#include #include #include #include From 131e1b40fe220421c11dc721cc35b904fe4b7056 Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Tue, 21 Jul 2026 11:23:36 +0000 Subject: [PATCH 3/3] Please consider the following formatting changes --- PWGEM/PhotonMeson/Tasks/photonhbt.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PWGEM/PhotonMeson/Tasks/photonhbt.cxx b/PWGEM/PhotonMeson/Tasks/photonhbt.cxx index 53f007ad634..b621516b429 100644 --- a/PWGEM/PhotonMeson/Tasks/photonhbt.cxx +++ b/PWGEM/PhotonMeson/Tasks/photonhbt.cxx @@ -2718,8 +2718,8 @@ struct Photonhbt { } } } // end cfgDoTruthMix - } // end collision loop - } // end runTruthEfficiency + } // end collision loop + } // end runTruthEfficiency /*************************************************/ // PROCESS FUNCTIONS