Skip to content

Commit acc19f7

Browse files
committed
recover order of pT and m_inv cuts application
1 parent 41e05f4 commit acc19f7

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

PWGHF/TableProducer/candidateSelectorLc.cxx

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -266,31 +266,32 @@ struct HfCandidateSelectorLc {
266266
return false;
267267
}
268268

269-
float massLc, massKPi;
270-
if constexpr (reconstructionType == aod::hf_cand::VertexerType::DCAFitter) {
271-
if (trackProton.globalIndex() == candidate.prong0Id()) {
272-
massLc = hfHelper.invMassLcToPKPi(candidate);
273-
massKPi = hfHelper.invMassKPiPairLcToPKPi(candidate);
274-
} else {
275-
massLc = hfHelper.invMassLcToPiKP(candidate);
276-
massKPi = hfHelper.invMassKPiPairLcToPiKP(candidate);
277-
}
278-
} else if constexpr (reconstructionType == aod::hf_cand::VertexerType::KfParticle) {
279-
if (trackProton.globalIndex() == candidate.prong0Id()) {
280-
massLc = candidate.kfMassPKPi();
281-
massKPi = candidate.kfMassKPi();
282-
} else {
283-
massLc = candidate.kfMassPiKP();
284-
massKPi = candidate.kfMassPiK();
285-
}
286-
}
287-
288269
if (reconstructionType == aod::hf_cand::VertexerType::DCAFitter || (reconstructionType == aod::hf_cand::VertexerType::KfParticle && applyNonKfCuts)) {
270+
289271
// cut on daughter pT
290272
if (trackProton.pt() < cuts->get(pTBin, "pT p") || trackKaon.pt() < cuts->get(pTBin, "pT K") || trackPion.pt() < cuts->get(pTBin, "pT Pi")) {
291273
return false;
292274
}
293275

276+
float massLc, massKPi;
277+
if constexpr (reconstructionType == aod::hf_cand::VertexerType::DCAFitter) {
278+
if (trackProton.globalIndex() == candidate.prong0Id()) {
279+
massLc = hfHelper.invMassLcToPKPi(candidate);
280+
massKPi = hfHelper.invMassKPiPairLcToPKPi(candidate);
281+
} else {
282+
massLc = hfHelper.invMassLcToPiKP(candidate);
283+
massKPi = hfHelper.invMassKPiPairLcToPiKP(candidate);
284+
}
285+
} else if constexpr (reconstructionType == aod::hf_cand::VertexerType::KfParticle) {
286+
if (trackProton.globalIndex() == candidate.prong0Id()) {
287+
massLc = candidate.kfMassPKPi();
288+
massKPi = candidate.kfMassKPi();
289+
} else {
290+
massLc = candidate.kfMassPiKP();
291+
massKPi = candidate.kfMassPiK();
292+
}
293+
}
294+
294295
// cut on Lc->pKpi, piKp mass values
295296
if (std::abs(massLc - o2::constants::physics::MassLambdaCPlus) > cuts->get(pTBin, "m")) {
296297
return false;

0 commit comments

Comments
 (0)