From 498ee884de89a0c72cb066f643bc3b14c15a8793 Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Mon, 27 Jul 2026 09:56:22 +0000 Subject: [PATCH] Please consider the following formatting changes --- PWGHF/HFC/DataModel/DMesonPairsTables.h | 30 +++++------ .../TableProducer/correlatorDMesonPairs.cxx | 51 ++++++++++--------- 2 files changed, 43 insertions(+), 38 deletions(-) diff --git a/PWGHF/HFC/DataModel/DMesonPairsTables.h b/PWGHF/HFC/DataModel/DMesonPairsTables.h index bb60923e02b..01bb7984f1e 100644 --- a/PWGHF/HFC/DataModel/DMesonPairsTables.h +++ b/PWGHF/HFC/DataModel/DMesonPairsTables.h @@ -121,22 +121,22 @@ DECLARE_SOA_COLUMN(TimestampHad, timestampHad, int64_t); //! Timestamp of the as } // namespace hf_correlation_d_meson_had // Definition of the D meson table for D-had correlations. Contains the info needed at Data level. -DECLARE_SOA_TABLE(DMesonCandInfo, "AOD", "DMESONCANDINFO", \ - hf_correlation_d_meson_had::PtD, \ - hf_correlation_d_meson_had::EtaD, \ - hf_correlation_d_meson_had::PhiD, \ - hf_correlation_d_meson_had::MD, \ - hf_correlation_d_meson_had::PoolBinD, \ - hf_correlation_d_meson_had::GIndexColD, \ - hf_correlation_d_meson_had::TimestampD); +DECLARE_SOA_TABLE(DMesonCandInfo, "AOD", "DMESONCANDINFO", + hf_correlation_d_meson_had::PtD, + hf_correlation_d_meson_had::EtaD, + hf_correlation_d_meson_had::PhiD, + hf_correlation_d_meson_had::MD, + hf_correlation_d_meson_had::PoolBinD, + hf_correlation_d_meson_had::GIndexColD, + hf_correlation_d_meson_had::TimestampD); -DECLARE_SOA_TABLE(AssocHadInfo, "AOD", "ASSOCHADINFO", \ - hf_correlation_d_meson_had::PtHad, \ - hf_correlation_d_meson_had::EtaHad, \ - hf_correlation_d_meson_had::PhiHad, \ - hf_correlation_d_meson_had::PoolBinHad, \ - hf_correlation_d_meson_had::GIndexColHad, \ - hf_correlation_d_meson_had::TimestampHad); +DECLARE_SOA_TABLE(AssocHadInfo, "AOD", "ASSOCHADINFO", + hf_correlation_d_meson_had::PtHad, + hf_correlation_d_meson_had::EtaHad, + hf_correlation_d_meson_had::PhiHad, + hf_correlation_d_meson_had::PoolBinHad, + hf_correlation_d_meson_had::GIndexColHad, + hf_correlation_d_meson_had::TimestampHad); } // namespace o2::aod diff --git a/PWGHF/HFC/TableProducer/correlatorDMesonPairs.cxx b/PWGHF/HFC/TableProducer/correlatorDMesonPairs.cxx index a8c036a7b4a..2ec54bf78cd 100644 --- a/PWGHF/HFC/TableProducer/correlatorDMesonPairs.cxx +++ b/PWGHF/HFC/TableProducer/correlatorDMesonPairs.cxx @@ -98,11 +98,11 @@ struct HfCorrelatorD0HadronsSelection { // Process function to select collisions with at least one D0 candidate passing the selection criteria void processD0SelectionData(SelCollisions::iterator const& collision, - CandidatesD0Data const& candidates) + CandidatesD0Data const& candidates) { bool isSel8 = !useSel8 || collision.sel8(); bool isNoSameBunchPileUp = !selNoSameBunchPileUpColl || - collision.selection_bit(o2::aod::evsel::kNoSameBunchPileup); + collision.selection_bit(o2::aod::evsel::kNoSameBunchPileup); bool isD0Found = !doSelD0Collision; if (doSelD0Collision) { @@ -804,27 +804,32 @@ struct HfCorrelatorDMesonPairs { if (applyMixedEvent) { // Loop on the associated tracks for offline event mixing for (const auto& track : tracks) { - // apply track selection - if (track.collisionId() != gCollisionId) continue; - - // Manual trackFilter check - if (std::abs(track.eta()) >= etaTrackMax) continue; - if (track.pt() <= ptTrackMin) continue; - if (std::abs(track.dcaXY()) >= dcaXYTrackMax) continue; - if (std::abs(track.dcaZ()) >= dcaZTrackMax) continue; - // Removing D0 daughters by checking track indices - if (daughterTracksCutFlag) { - if ((candidate1.prong0Id() == track.globalIndex()) || (candidate1.prong1Id() == track.globalIndex())) { - continue; - } - } - if (cntD0 == 0) { - entryAssocHad(track.pt(), track.eta(), track.phi(), poolBin, gCollisionId, timeStamp); - registry.fill(HIST("hTracksBin"), poolBin); - registry.fill(HIST("hDcaXYVsPt"), track.dcaXY(), track.pt()); + // apply track selection + if (track.collisionId() != gCollisionId) + continue; + + // Manual trackFilter check + if (std::abs(track.eta()) >= etaTrackMax) + continue; + if (track.pt() <= ptTrackMin) + continue; + if (std::abs(track.dcaXY()) >= dcaXYTrackMax) + continue; + if (std::abs(track.dcaZ()) >= dcaZTrackMax) + continue; + // Removing D0 daughters by checking track indices + if (daughterTracksCutFlag) { + if ((candidate1.prong0Id() == track.globalIndex()) || (candidate1.prong1Id() == track.globalIndex())) { + continue; } - } // Hadron Tracks loop - cntD0++; + } + if (cntD0 == 0) { + entryAssocHad(track.pt(), track.eta(), track.phi(), poolBin, gCollisionId, timeStamp); + registry.fill(HIST("hTracksBin"), poolBin); + registry.fill(HIST("hDcaXYVsPt"), track.dcaXY(), track.pt()); + } + } // Hadron Tracks loop + cntD0++; } // Loop on the second D0 candidate @@ -886,7 +891,7 @@ struct HfCorrelatorDMesonPairs { entryD0PairMl(outputMlD0Cand1, outputMlD0barCand1, outputMlD0Cand2, outputMlD0barCand2); } else { // Fill entries - fillEntry(isDCand1, isDbarCand1, isDCand2, isDbarCand2, candidateType1, candidateType2, HfHelper::yD0(candidate1), HfHelper::yD0(candidate2), + fillEntry(isDCand1, isDbarCand1, isDCand2, isDbarCand2, candidateType1, candidateType2, HfHelper::yD0(candidate1), HfHelper::yD0(candidate2), candidate1.eta(), candidate2.eta(), candidate1.phi(), candidate2.phi(), candidate1.pt(), candidate2.pt(), HfHelper::invMassD0ToPiK(candidate1), HfHelper::invMassD0barToKPi(candidate1), HfHelper::invMassD0ToPiK(candidate2), HfHelper::invMassD0barToKPi(candidate2));