Skip to content

Commit 1a8b54e

Browse files
fcolamarfcolamar
andauthored
[PWGHF] Small bug fixes to Lc-h correlator (#13115)
Co-authored-by: fcolamar <fabio.colamaria@cern.ch>
1 parent c3bd1e0 commit 1a8b54e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

PWGHF/HFC/TableProducer/correlatorLcHadrons.cxx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,9 @@ struct HfCorrelatorLcHadrons {
440440
outputMl[iclass] = candidate.mlProbLcToPKPi()[classMl->at(iclass)];
441441
}
442442
entryLcCandRecoInfo(hfHelper.invMassLcToPKPi(candidate), candidate.pt() * chargeLc, outputMl[0], outputMl[1]); // 0: BkgBDTScore, 1:PromptBDTScore
443-
entryLc(candidate.phi(), candidate.eta(), candidate.pt() * chargeLc, hfHelper.invMassLcToPKPi(candidate), poolBin, gCollisionId, timeStamp);
443+
if (!skipMixedEventTableFilling) {
444+
entryLc(candidate.phi(), candidate.eta(), candidate.pt() * chargeLc, hfHelper.invMassLcToPKPi(candidate), poolBin, gCollisionId, timeStamp);
445+
}
444446
}
445447
if (candidate.isSelLcToPiKP() >= selectionFlagLc) {
446448
registry.fill(HIST("hMassLcVsPtVsCent"), hfHelper.invMassLcToPiKP(candidate), candidate.pt(), cent, efficiencyWeightLc);
@@ -458,6 +460,7 @@ struct HfCorrelatorLcHadrons {
458460
// Lc-Hadron correlation dedicated section
459461
// if the candidate is a Lc, search for Hadrons and evaluate correlations
460462
for (const auto& track : tracks) {
463+
correlationStatus = false;
461464
// Remove Lc daughters by checking track indices
462465
if ((candidate.prong0Id() == track.globalIndex()) || (candidate.prong1Id() == track.globalIndex()) || (candidate.prong2Id() == track.globalIndex())) {
463466
if (!storeAutoCorrelationFlag) {
@@ -695,6 +698,7 @@ struct HfCorrelatorLcHadrons {
695698
// Lc-Hadron correlation dedicated section
696699
// if the candidate is selected as Lc, search for Hadron ad evaluate correlations
697700
for (const auto& track : tracks) {
701+
correlationStatus = false;
698702
bool isPhysicalPrimary = false;
699703
int trackOrigin = -1;
700704
// apply track selection
@@ -868,6 +872,7 @@ struct HfCorrelatorLcHadrons {
868872
// if it's a Lc particle, search for Hadron and evalutate correlations
869873
registry.fill(HIST("hcountLctriggersMcGen"), 0, particle.pt()); // to count trigger Lc for normalisation
870874
for (const auto& particleAssoc : mcParticles) {
875+
correlationStatus = false;
871876
if (std::abs(particleAssoc.eta()) > etaTrackMax || particleAssoc.pt() < ptTrackMin || particleAssoc.pt() > ptTrackMax) {
872877
continue;
873878
}

0 commit comments

Comments
 (0)