From 9e31061affdbbd9bcb95c1f8b60e29d75790a27e Mon Sep 17 00:00:00 2001 From: blacwovie Date: Fri, 17 Apr 2026 12:59:27 +0800 Subject: [PATCH] Update HadNucleiFemto.cxx --- PWGCF/Femto/FemtoNuclei/TableProducer/HadNucleiFemto.cxx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/PWGCF/Femto/FemtoNuclei/TableProducer/HadNucleiFemto.cxx b/PWGCF/Femto/FemtoNuclei/TableProducer/HadNucleiFemto.cxx index 9333babf35c..e424be7f54d 100644 --- a/PWGCF/Femto/FemtoNuclei/TableProducer/HadNucleiFemto.cxx +++ b/PWGCF/Femto/FemtoNuclei/TableProducer/HadNucleiFemto.cxx @@ -836,7 +836,7 @@ struct HadNucleiFemto { } template - bool fillCandidateInfoHyper(const aod::DataHypCandsWColl::iterator& V0Hyper, const Ttrack& trackHad, HadNucandidate& hadHypercand, bool isMixedEvent) + void fillCandidateInfoHyper(const aod::DataHypCandsWColl::iterator& V0Hyper, const Ttrack& trackHad, HadNucandidate& hadHypercand, bool isMixedEvent) { hadHypercand.collisionID = V0Hyper.collisionId(); // get hypertriton information @@ -898,7 +898,6 @@ struct HadNucleiFemto { beta = std::min(1.f - 1.e-6f, std::max(1.e-4f, beta)); /// sometimes beta > 1 or < 0, to be checked hadHypercand.massTOFHad = trackHad.tpcInnerParam() * std::sqrt(1.f / (beta * beta) - 1.f); } - return true; } template @@ -1166,9 +1165,7 @@ struct HadNucleiFemto { // auto collBracket = trackPair.collBracket; HadNucandidate hadNucand; - if (!fillCandidateInfoHyper(v0hyper, hadTrack, hadNucand, isMixedEvent)) { - continue; - } + fillCandidateInfoHyper(v0hyper, hadTrack, hadNucand, isMixedEvent); mQaRegistry.fill(HIST("hNuPt"), hadNucand.recoPtNu()); mQaRegistry.fill(HIST("hHadPt"), hadNucand.recoPtHad());