From 3ee3d4785f0868db21d3612a5b3b8fb02bd9d3f3 Mon Sep 17 00:00:00 2001 From: marcellocosti Date: Wed, 16 Apr 2025 12:27:50 +0200 Subject: [PATCH 1/7] Added centrality to D+ tree tables --- .../TableProducer/treeCreatorDplusToPiKPi.cxx | 36 ++++++++++++++----- 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/PWGHF/TableProducer/treeCreatorDplusToPiKPi.cxx b/PWGHF/TableProducer/treeCreatorDplusToPiKPi.cxx index b75aa3a4a3c..e72ce1bbdf2 100644 --- a/PWGHF/TableProducer/treeCreatorDplusToPiKPi.cxx +++ b/PWGHF/TableProducer/treeCreatorDplusToPiKPi.cxx @@ -21,12 +21,14 @@ #include "Framework/runDataProcessing.h" #include "PWGHF/Core/HfHelper.h" +#include "PWGHF/Core/CentralityEstimation.h" #include "PWGHF/DataModel/CandidateReconstructionTables.h" #include "PWGHF/DataModel/CandidateSelectionTables.h" using namespace o2; using namespace o2::framework; using namespace o2::framework::expressions; +using namespace o2::hf_centrality; namespace o2::aod { @@ -50,6 +52,7 @@ DECLARE_SOA_COLUMN(Y, y, float); DECLARE_SOA_COLUMN(Eta, eta, float); //! Pseudorapidity of candidate DECLARE_SOA_COLUMN(Phi, phi, float); //! Azimuth angle of candidate DECLARE_SOA_COLUMN(E, e, float); //! Energy of candidate (GeV) +DECLARE_SOA_COLUMN(Centrality, centrality, float); //! Collision centrality DECLARE_SOA_COLUMN(NSigTpcPi0, nSigTpcPi0, float); //! TPC Nsigma separation for prong0 with pion mass hypothesis DECLARE_SOA_COLUMN(NSigTpcKa0, nSigTpcKa0, float); //! TPC Nsigma separation for prong0 with kaon mass hypothesis DECLARE_SOA_COLUMN(NSigTofPi0, nSigTofPi0, float); //! TOF Nsigma separation for prong0 with pion mass hypothesis @@ -129,6 +132,7 @@ DECLARE_SOA_TABLE(HfCandDpLites, "AOD", "HFCANDDPLITE", full::Eta, full::Phi, full::Y, + full::Centrality, hf_cand_3prong::FlagMcMatchRec, hf_cand_3prong::OriginMcRec, hf_cand_3prong::FlagMcDecayChanRec) @@ -210,6 +214,7 @@ DECLARE_SOA_TABLE(HfCandDpFulls, "AOD", "HFCANDDPFULL", full::Phi, full::Y, full::E, + full::Centrality, hf_cand_3prong::FlagMcMatchRec, hf_cand_3prong::OriginMcRec, hf_cand_3prong::FlagMcDecayChanRec); @@ -258,6 +263,9 @@ struct HfTreeCreatorDplusToPiKPi { using SelectedCandidatesMcWithMl = soa::Filtered>; using TracksWPid = soa::Join; + using CollisionsCent = soa::Join; + using McRecoCollisionsCent = soa::Join; + Filter filterSelectCandidates = aod::hf_sel_candidate_dplus::isSelDplusToPiKPi >= selectionFlagDplus; Filter filterMcGenMatching = nabs(o2::aod::hf_cand_3prong::flagMcMatchGen) == static_cast(BIT(aod::hf_cand_3prong::DecayType::DplusToPiKPi)); @@ -283,7 +291,7 @@ struct HfTreeCreatorDplusToPiKPi { } template - void fillCandidateTable(const T& candidate) + void fillCandidateTable(const T& candidate, float cent) { int8_t flagMc = 0; int8_t originMc = 0; @@ -351,6 +359,7 @@ struct HfTreeCreatorDplusToPiKPi { candidate.eta(), candidate.phi(), hfHelper.yDplus(candidate), + cent, flagMc, originMc, channelMc); @@ -432,13 +441,14 @@ struct HfTreeCreatorDplusToPiKPi { candidate.phi(), hfHelper.yDplus(candidate), hfHelper.eDplus(candidate), + cent, flagMc, originMc, channelMc); } } - void processData(aod::Collisions const& collisions, + void processData(CollisionsCent const& collisions, soa::Filtered> const& candidates, TracksWPid const&) { @@ -461,13 +471,15 @@ struct HfTreeCreatorDplusToPiKPi { continue; } } - fillCandidateTable(candidate); + auto coll = candidate.template collision_as(); + float cent = getCentralityColl(coll, CentralityEstimator::FT0C); + fillCandidateTable(candidate, cent); } } PROCESS_SWITCH(HfTreeCreatorDplusToPiKPi, processData, "Process data", true); - void processMc(aod::Collisions const& collisions, + void processMc(McRecoCollisionsCent const& collisions, aod::McCollisions const&, SelectedCandidatesMc const& candidates, MatchedGenCandidatesMc const& particles, @@ -488,7 +500,9 @@ struct HfTreeCreatorDplusToPiKPi { rowCandidateFull.reserve(reconstructedCandSig.size()); } for (const auto& candidate : reconstructedCandSig) { - fillCandidateTable(candidate); + auto coll = candidate.template collision_as(); + float cent = getCentralityColl(coll, CentralityEstimator::FT0C); + fillCandidateTable(candidate, cent); } } else if (fillOnlySignalMl) { rowCandidateMl.reserve(reconstructedCandSigMl.size()); @@ -504,7 +518,9 @@ struct HfTreeCreatorDplusToPiKPi { continue; } } - fillCandidateTable(candidate); + auto coll = candidate.template collision_as(); + float cent = getCentralityColl(coll, CentralityEstimator::FT0C); + fillCandidateTable(candidate, cent); } } else if (fillOnlyBackground) { if (fillCandidateLiteTable) { @@ -519,7 +535,9 @@ struct HfTreeCreatorDplusToPiKPi { continue; } } - fillCandidateTable(candidate); + auto coll = candidate.template collision_as(); + float cent = getCentralityColl(coll, CentralityEstimator::FT0C); + fillCandidateTable(candidate, cent); } } else { if (fillCandidateLiteTable) { @@ -528,7 +546,9 @@ struct HfTreeCreatorDplusToPiKPi { rowCandidateFull.reserve(candidates.size()); } for (const auto& candidate : candidates) { - fillCandidateTable(candidate); + auto coll = candidate.template collision_as(); + float cent = getCentralityColl(coll, CentralityEstimator::FT0C); + fillCandidateTable(candidate, cent); } } From f5fdee620b5985092b4801f5a90b2a8656f4d86b Mon Sep 17 00:00:00 2001 From: marcellocosti Date: Wed, 16 Apr 2025 12:59:29 +0200 Subject: [PATCH 2/7] Fix linter issues --- PWGHF/TableProducer/treeCreatorDplusToPiKPi.cxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/PWGHF/TableProducer/treeCreatorDplusToPiKPi.cxx b/PWGHF/TableProducer/treeCreatorDplusToPiKPi.cxx index e72ce1bbdf2..e17ca16518d 100644 --- a/PWGHF/TableProducer/treeCreatorDplusToPiKPi.cxx +++ b/PWGHF/TableProducer/treeCreatorDplusToPiKPi.cxx @@ -16,6 +16,8 @@ /// /// \author Alexandre Bigot , IPHC Strasbourg +#include + #include "CommonConstants/PhysicsConstants.h" #include "Framework/AnalysisTask.h" #include "Framework/runDataProcessing.h" @@ -254,7 +256,7 @@ struct HfTreeCreatorDplusToPiKPi { Configurable fillOnlyBackground{"fillOnlyBackground", false, "Flag to fill derived tables with background for ML trainings"}; Configurable downSampleBkgFactor{"downSampleBkgFactor", 1., "Fraction of background candidates to keep for ML trainings"}; Configurable ptMaxForDownSample{"ptMaxForDownSample", 10., "Maximum pt for the application of the downsampling factor"}; - Configurable> classMl{"classMlindexes", {0, 2}, "Indexes of ML bkg and non-prompt scores."}; + Configurable> classMlIndexes{"classMlIndexes", {0, 2}, "Indexes of ML bkg and non-prompt scores."}; HfHelper hfHelper; @@ -304,8 +306,8 @@ struct HfTreeCreatorDplusToPiKPi { std::vector outputMl = {-999., -999.}; if constexpr (doMl) { - for (unsigned int iclass = 0; iclass < classMl->size(); iclass++) { - outputMl[iclass] = candidate.mlProbDplusToPiKPi()[classMl->at(iclass)]; + for (unsigned int iclass = 0; iclass < classMlIndexes->size(); iclass++) { + outputMl[iclass] = candidate.mlProbDplusToPiKPi()[classMlIndexes->at(iclass)]; } rowCandidateMl( outputMl[0], @@ -513,7 +515,7 @@ struct HfTreeCreatorDplusToPiKPi { } for (const auto& candidate : reconstructedCandSigMl) { if (downSampleBkgFactor < 1.) { - float pseudoRndm = candidate.ptProng0() * 1000. - (int64_t)(candidate.ptProng0() * 1000); + float pseudoRndm = candidate.ptProng0() * 1000. - static_cast(candidate.ptProng0() * 1000); if (candidate.pt() < ptMaxForDownSample && pseudoRndm >= downSampleBkgFactor) { continue; } From 9cfdc4856d13355e482ff6870ae5fae56d9e121d Mon Sep 17 00:00:00 2001 From: marcellocosti Date: Wed, 16 Apr 2025 16:17:15 +0200 Subject: [PATCH 3/7] avoid code duplication --- .../TableProducer/treeCreatorDplusToPiKPi.cxx | 33 +++++++------------ 1 file changed, 12 insertions(+), 21 deletions(-) diff --git a/PWGHF/TableProducer/treeCreatorDplusToPiKPi.cxx b/PWGHF/TableProducer/treeCreatorDplusToPiKPi.cxx index e17ca16518d..80268f9dbda 100644 --- a/PWGHF/TableProducer/treeCreatorDplusToPiKPi.cxx +++ b/PWGHF/TableProducer/treeCreatorDplusToPiKPi.cxx @@ -293,7 +293,7 @@ struct HfTreeCreatorDplusToPiKPi { } template - void fillCandidateTable(const T& candidate, float cent) + void fillCandidateTable(const T& candidate) { int8_t flagMc = 0; int8_t originMc = 0; @@ -317,6 +317,7 @@ struct HfTreeCreatorDplusToPiKPi { auto prong0 = candidate.template prong0_as(); auto prong1 = candidate.template prong1_as(); auto prong2 = candidate.template prong2_as(); + auto coll = candidate.template collision_as(); if (fillCandidateLiteTable) { rowCandidateLite( @@ -361,14 +362,14 @@ struct HfTreeCreatorDplusToPiKPi { candidate.eta(), candidate.phi(), hfHelper.yDplus(candidate), - cent, + getCentralityColl(coll, CentralityEstimator::FT0C), flagMc, originMc, channelMc); } else { rowCandidateFull( - candidate.collision().bcId(), - candidate.collision().numContrib(), + coll.bcId(), + coll.numContrib(), candidate.posX(), candidate.posY(), candidate.posZ(), @@ -443,7 +444,7 @@ struct HfTreeCreatorDplusToPiKPi { candidate.phi(), hfHelper.yDplus(candidate), hfHelper.eDplus(candidate), - cent, + getCentralityColl(coll, CentralityEstimator::FT0C), flagMc, originMc, channelMc); @@ -473,15 +474,13 @@ struct HfTreeCreatorDplusToPiKPi { continue; } } - auto coll = candidate.template collision_as(); - float cent = getCentralityColl(coll, CentralityEstimator::FT0C); - fillCandidateTable(candidate, cent); + fillCandidateTable(candidate); } } PROCESS_SWITCH(HfTreeCreatorDplusToPiKPi, processData, "Process data", true); - void processMc(McRecoCollisionsCent const& collisions, + void processMc(CollisionsCent const& collisions, aod::McCollisions const&, SelectedCandidatesMc const& candidates, MatchedGenCandidatesMc const& particles, @@ -502,9 +501,7 @@ struct HfTreeCreatorDplusToPiKPi { rowCandidateFull.reserve(reconstructedCandSig.size()); } for (const auto& candidate : reconstructedCandSig) { - auto coll = candidate.template collision_as(); - float cent = getCentralityColl(coll, CentralityEstimator::FT0C); - fillCandidateTable(candidate, cent); + fillCandidateTable(candidate); } } else if (fillOnlySignalMl) { rowCandidateMl.reserve(reconstructedCandSigMl.size()); @@ -520,9 +517,7 @@ struct HfTreeCreatorDplusToPiKPi { continue; } } - auto coll = candidate.template collision_as(); - float cent = getCentralityColl(coll, CentralityEstimator::FT0C); - fillCandidateTable(candidate, cent); + fillCandidateTable(candidate); } } else if (fillOnlyBackground) { if (fillCandidateLiteTable) { @@ -537,9 +532,7 @@ struct HfTreeCreatorDplusToPiKPi { continue; } } - auto coll = candidate.template collision_as(); - float cent = getCentralityColl(coll, CentralityEstimator::FT0C); - fillCandidateTable(candidate, cent); + fillCandidateTable(candidate); } } else { if (fillCandidateLiteTable) { @@ -548,9 +541,7 @@ struct HfTreeCreatorDplusToPiKPi { rowCandidateFull.reserve(candidates.size()); } for (const auto& candidate : candidates) { - auto coll = candidate.template collision_as(); - float cent = getCentralityColl(coll, CentralityEstimator::FT0C); - fillCandidateTable(candidate, cent); + fillCandidateTable(candidate); } } From a95ffe414d3c08ba716cb2c76a714bf9382745b7 Mon Sep 17 00:00:00 2001 From: marcellocosti Date: Wed, 16 Apr 2025 16:47:46 +0200 Subject: [PATCH 4/7] removed reco mc collisions --- PWGHF/TableProducer/treeCreatorDplusToPiKPi.cxx | 1 - 1 file changed, 1 deletion(-) diff --git a/PWGHF/TableProducer/treeCreatorDplusToPiKPi.cxx b/PWGHF/TableProducer/treeCreatorDplusToPiKPi.cxx index 80268f9dbda..5ca0093df6d 100644 --- a/PWGHF/TableProducer/treeCreatorDplusToPiKPi.cxx +++ b/PWGHF/TableProducer/treeCreatorDplusToPiKPi.cxx @@ -266,7 +266,6 @@ struct HfTreeCreatorDplusToPiKPi { using TracksWPid = soa::Join; using CollisionsCent = soa::Join; - using McRecoCollisionsCent = soa::Join; Filter filterSelectCandidates = aod::hf_sel_candidate_dplus::isSelDplusToPiKPi >= selectionFlagDplus; Filter filterMcGenMatching = nabs(o2::aod::hf_cand_3prong::flagMcMatchGen) == static_cast(BIT(aod::hf_cand_3prong::DecayType::DplusToPiKPi)); From 17a99eab746fe216f85f925b25d512cdcb89a64f Mon Sep 17 00:00:00 2001 From: marcellocosti Date: Thu, 17 Apr 2025 13:46:14 +0200 Subject: [PATCH 5/7] Separated process function with centrality --- .../TableProducer/treeCreatorDplusToPiKPi.cxx | 141 ++++++++++++++++-- 1 file changed, 128 insertions(+), 13 deletions(-) diff --git a/PWGHF/TableProducer/treeCreatorDplusToPiKPi.cxx b/PWGHF/TableProducer/treeCreatorDplusToPiKPi.cxx index 5ca0093df6d..8a49ea70ae4 100644 --- a/PWGHF/TableProducer/treeCreatorDplusToPiKPi.cxx +++ b/PWGHF/TableProducer/treeCreatorDplusToPiKPi.cxx @@ -257,6 +257,7 @@ struct HfTreeCreatorDplusToPiKPi { Configurable downSampleBkgFactor{"downSampleBkgFactor", 1., "Fraction of background candidates to keep for ML trainings"}; Configurable ptMaxForDownSample{"ptMaxForDownSample", 10., "Maximum pt for the application of the downsampling factor"}; Configurable> classMlIndexes{"classMlIndexes", {0, 2}, "Indexes of ML bkg and non-prompt scores."}; + Configurable centEstimator{"centEstimator", 0, "Centrality estimation (None: 0, FT0C: 2, FT0M: 3)"}; HfHelper hfHelper; @@ -265,7 +266,7 @@ struct HfTreeCreatorDplusToPiKPi { using SelectedCandidatesMcWithMl = soa::Filtered>; using TracksWPid = soa::Join; - using CollisionsCent = soa::Join; + using CollisionsCent = soa::Join; Filter filterSelectCandidates = aod::hf_sel_candidate_dplus::isSelDplusToPiKPi >= selectionFlagDplus; Filter filterMcGenMatching = nabs(o2::aod::hf_cand_3prong::flagMcMatchGen) == static_cast(BIT(aod::hf_cand_3prong::DecayType::DplusToPiKPi)); @@ -291,7 +292,7 @@ struct HfTreeCreatorDplusToPiKPi { runNumber); } - template + template void fillCandidateTable(const T& candidate) { int8_t flagMc = 0; @@ -316,7 +317,12 @@ struct HfTreeCreatorDplusToPiKPi { auto prong0 = candidate.template prong0_as(); auto prong1 = candidate.template prong1_as(); auto prong2 = candidate.template prong2_as(); - auto coll = candidate.template collision_as(); + + float cent{-1.}; + auto coll = candidate.template collision_as(); + if (std::is_same_v && centEstimator != CentralityEstimator::None) { + cent = getCentralityColl(coll, centEstimator); + } if (fillCandidateLiteTable) { rowCandidateLite( @@ -361,7 +367,7 @@ struct HfTreeCreatorDplusToPiKPi { candidate.eta(), candidate.phi(), hfHelper.yDplus(candidate), - getCentralityColl(coll, CentralityEstimator::FT0C), + cent, flagMc, originMc, channelMc); @@ -443,14 +449,14 @@ struct HfTreeCreatorDplusToPiKPi { candidate.phi(), hfHelper.yDplus(candidate), hfHelper.eDplus(candidate), - getCentralityColl(coll, CentralityEstimator::FT0C), + cent, flagMc, originMc, channelMc); } } - void processData(CollisionsCent const& collisions, + void processData(aod::Collisions const& collisions, soa::Filtered> const& candidates, TracksWPid const&) { @@ -473,13 +479,13 @@ struct HfTreeCreatorDplusToPiKPi { continue; } } - fillCandidateTable(candidate); + fillCandidateTable(candidate); } } PROCESS_SWITCH(HfTreeCreatorDplusToPiKPi, processData, "Process data", true); - void processMc(CollisionsCent const& collisions, + void processMc(aod::Collisions const& collisions, aod::McCollisions const&, SelectedCandidatesMc const& candidates, MatchedGenCandidatesMc const& particles, @@ -500,7 +506,7 @@ struct HfTreeCreatorDplusToPiKPi { rowCandidateFull.reserve(reconstructedCandSig.size()); } for (const auto& candidate : reconstructedCandSig) { - fillCandidateTable(candidate); + fillCandidateTable(candidate); } } else if (fillOnlySignalMl) { rowCandidateMl.reserve(reconstructedCandSigMl.size()); @@ -516,7 +522,7 @@ struct HfTreeCreatorDplusToPiKPi { continue; } } - fillCandidateTable(candidate); + fillCandidateTable(candidate); } } else if (fillOnlyBackground) { if (fillCandidateLiteTable) { @@ -531,7 +537,7 @@ struct HfTreeCreatorDplusToPiKPi { continue; } } - fillCandidateTable(candidate); + fillCandidateTable(candidate); } } else { if (fillCandidateLiteTable) { @@ -540,7 +546,7 @@ struct HfTreeCreatorDplusToPiKPi { rowCandidateFull.reserve(candidates.size()); } for (const auto& candidate : candidates) { - fillCandidateTable(candidate); + fillCandidateTable(candidate); } } @@ -558,7 +564,116 @@ struct HfTreeCreatorDplusToPiKPi { } } - PROCESS_SWITCH(HfTreeCreatorDplusToPiKPi, processMc, "Process MC", false); + void processDataWCent(CollisionsCent const& collisions, + soa::Filtered> const& candidates, + TracksWPid const&) + { + // Filling event properties + rowCandidateFullEvents.reserve(collisions.size()); + for (const auto& collision : collisions) { + fillEvent(collision, 0, 1); + } + + // Filling candidate properties + if (fillCandidateLiteTable) { + rowCandidateLite.reserve(candidates.size()); + } else { + rowCandidateFull.reserve(candidates.size()); + } + for (const auto& candidate : candidates) { + if (downSampleBkgFactor < 1.) { + float pseudoRndm = candidate.ptProng0() * 1000. - static_cast(candidate.ptProng0() * 1000); + if (candidate.pt() < ptMaxForDownSample && pseudoRndm >= downSampleBkgFactor) { + continue; + } + } + fillCandidateTable(candidate); + } + } + + PROCESS_SWITCH(HfTreeCreatorDplusToPiKPi, processDataWCent, "Process data with cent", true); + + void processMcWCent(CollisionsCent const& collisions, + aod::McCollisions const&, + SelectedCandidatesMc const& candidates, + MatchedGenCandidatesMc const& particles, + SelectedCandidatesMcWithMl const&, + TracksWPid const&) + { + // Filling event properties + rowCandidateFullEvents.reserve(collisions.size()); + for (const auto& collision : collisions) { + fillEvent(collision, 0, 1); + } + + // Filling candidate properties + if (fillOnlySignal) { + if (fillCandidateLiteTable) { + rowCandidateLite.reserve(reconstructedCandSig.size()); + } else { + rowCandidateFull.reserve(reconstructedCandSig.size()); + } + for (const auto& candidate : reconstructedCandSig) { + fillCandidateTable(candidate); + } + } else if (fillOnlySignalMl) { + rowCandidateMl.reserve(reconstructedCandSigMl.size()); + if (fillCandidateLiteTable) { + rowCandidateLite.reserve(reconstructedCandSigMl.size()); + } else { + rowCandidateFull.reserve(reconstructedCandSigMl.size()); + } + for (const auto& candidate : reconstructedCandSigMl) { + if (downSampleBkgFactor < 1.) { + float pseudoRndm = candidate.ptProng0() * 1000. - static_cast(candidate.ptProng0() * 1000); + if (candidate.pt() < ptMaxForDownSample && pseudoRndm >= downSampleBkgFactor) { + continue; + } + } + fillCandidateTable(candidate); + } + } else if (fillOnlyBackground) { + if (fillCandidateLiteTable) { + rowCandidateLite.reserve(reconstructedCandBkg.size()); + } else { + rowCandidateFull.reserve(reconstructedCandBkg.size()); + } + for (const auto& candidate : reconstructedCandBkg) { + if (downSampleBkgFactor < 1.) { + float pseudoRndm = candidate.ptProng0() * 1000. - static_cast(candidate.ptProng0() * 1000); + if (candidate.pt() < ptMaxForDownSample && pseudoRndm >= downSampleBkgFactor) { + continue; + } + } + fillCandidateTable(candidate); + } + } else { + if (fillCandidateLiteTable) { + rowCandidateLite.reserve(candidates.size()); + } else { + rowCandidateFull.reserve(candidates.size()); + } + for (const auto& candidate : candidates) { + fillCandidateTable(candidate); + } + } + + // Filling particle properties + rowCandidateFullParticles.reserve(particles.size()); + for (const auto& particle : particles) { + rowCandidateFullParticles( + particle.mcCollision().bcId(), + particle.pt(), + particle.eta(), + particle.phi(), + RecoDecay::y(particle.pVector(), o2::constants::physics::MassDPlus), + particle.flagMcMatchGen(), + particle.originMcGen()); + } + } + + + PROCESS_SWITCH(HfTreeCreatorDplusToPiKPi, processMcWCent, "Process MC with cent", false); }; WorkflowSpec defineDataProcessing(ConfigContext const& cfgc) From ed51ab4c2f7f475c28b332e77c7d171b8903843f Mon Sep 17 00:00:00 2001 From: marcellocosti Date: Thu, 17 Apr 2025 15:09:26 +0200 Subject: [PATCH 6/7] Fix process functions default --- PWGHF/TableProducer/treeCreatorDplusToPiKPi.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PWGHF/TableProducer/treeCreatorDplusToPiKPi.cxx b/PWGHF/TableProducer/treeCreatorDplusToPiKPi.cxx index 8a49ea70ae4..9d0bfc0d71f 100644 --- a/PWGHF/TableProducer/treeCreatorDplusToPiKPi.cxx +++ b/PWGHF/TableProducer/treeCreatorDplusToPiKPi.cxx @@ -564,6 +564,8 @@ struct HfTreeCreatorDplusToPiKPi { } } + PROCESS_SWITCH(HfTreeCreatorDplusToPiKPi, processMc, "Process MC", false); + void processDataWCent(CollisionsCent const& collisions, soa::Filtered> const& candidates, TracksWPid const&) @@ -591,7 +593,7 @@ struct HfTreeCreatorDplusToPiKPi { } } - PROCESS_SWITCH(HfTreeCreatorDplusToPiKPi, processDataWCent, "Process data with cent", true); + PROCESS_SWITCH(HfTreeCreatorDplusToPiKPi, processDataWCent, "Process data with cent", false); void processMcWCent(CollisionsCent const& collisions, aod::McCollisions const&, @@ -672,7 +674,6 @@ struct HfTreeCreatorDplusToPiKPi { } } - PROCESS_SWITCH(HfTreeCreatorDplusToPiKPi, processMcWCent, "Process MC with cent", false); }; From 24fc18821bdeef2100ec881f5d3259303321d2e9 Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Thu, 17 Apr 2025 13:20:10 +0000 Subject: [PATCH 7/7] Please consider the following formatting changes --- PWGHF/TableProducer/treeCreatorDplusToPiKPi.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/PWGHF/TableProducer/treeCreatorDplusToPiKPi.cxx b/PWGHF/TableProducer/treeCreatorDplusToPiKPi.cxx index 9d0bfc0d71f..8a8705cacce 100644 --- a/PWGHF/TableProducer/treeCreatorDplusToPiKPi.cxx +++ b/PWGHF/TableProducer/treeCreatorDplusToPiKPi.cxx @@ -567,8 +567,8 @@ struct HfTreeCreatorDplusToPiKPi { PROCESS_SWITCH(HfTreeCreatorDplusToPiKPi, processMc, "Process MC", false); void processDataWCent(CollisionsCent const& collisions, - soa::Filtered> const& candidates, - TracksWPid const&) + soa::Filtered> const& candidates, + TracksWPid const&) { // Filling event properties rowCandidateFullEvents.reserve(collisions.size()); @@ -596,11 +596,11 @@ struct HfTreeCreatorDplusToPiKPi { PROCESS_SWITCH(HfTreeCreatorDplusToPiKPi, processDataWCent, "Process data with cent", false); void processMcWCent(CollisionsCent const& collisions, - aod::McCollisions const&, - SelectedCandidatesMc const& candidates, - MatchedGenCandidatesMc const& particles, - SelectedCandidatesMcWithMl const&, - TracksWPid const&) + aod::McCollisions const&, + SelectedCandidatesMc const& candidates, + MatchedGenCandidatesMc const& particles, + SelectedCandidatesMcWithMl const&, + TracksWPid const&) { // Filling event properties rowCandidateFullEvents.reserve(collisions.size());