Skip to content

Commit 1b7d0e9

Browse files
committed
improve clarity in reduced tables for correlations
1 parent 1e1aa41 commit 1b7d0e9

3 files changed

Lines changed: 18 additions & 14 deletions

File tree

‎PWGHF/HFC/DataModel/DerivedDataCorrelationTables.h‎

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,17 @@ using HfcRedCollision = HfcRedCollisions::iterator;
4747

4848
namespace hf_candidate_reduced
4949
{
50-
DECLARE_SOA_INDEX_COLUMN(HfcRedCollision, hfcRedCollision); //! ReducedCollision index
51-
DECLARE_SOA_COLUMN(Prong0Id, prong0Id, int); //! Prong 0 index
52-
DECLARE_SOA_COLUMN(Prong1Id, prong1Id, int); //! Prong 1 index
53-
DECLARE_SOA_COLUMN(Prong2Id, prong2Id, int); //! Prong2 index
54-
DECLARE_SOA_COLUMN(PhiCand, phiCand, float); //! Phi of the candidate
55-
DECLARE_SOA_COLUMN(EtaCand, etaCand, float); //! Eta of the candidate
56-
DECLARE_SOA_COLUMN(PtCand, ptCand, float); //! Pt of the candidate
57-
DECLARE_SOA_COLUMN(InvMass, invMass, float); //! Invariant mass of charm candidate
58-
DECLARE_SOA_COLUMN(BdtScorePrompt, bdtScorePrompt, float); //! BDT output score for prompt hypothesis
59-
DECLARE_SOA_COLUMN(BdtScoreBkg, bdtScoreBkg, float); //! BDT output score for background hypothesis
50+
DECLARE_SOA_INDEX_COLUMN(HfcRedCollision, hfcRedCollision); //! ReducedCollision index
51+
DECLARE_SOA_COLUMN(Prong0Id, prong0Id, int); //! Prong 0 index
52+
DECLARE_SOA_COLUMN(Prong1Id, prong1Id, int); //! Prong 1 index
53+
DECLARE_SOA_COLUMN(Prong2Id, prong2Id, int); //! Prong2 index
54+
DECLARE_SOA_COLUMN(PhiCand, phiCand, float); //! Phi of the candidate
55+
DECLARE_SOA_COLUMN(EtaCand, etaCand, float); //! Eta of the candidate
56+
DECLARE_SOA_COLUMN(PtCand, ptCand, float); //! Pt of the candidate
57+
DECLARE_SOA_COLUMN(InvMass, invMass, float); //! Invariant mass of charm candidate
58+
DECLARE_SOA_COLUMN(BdtScorePrompt, bdtScorePrompt, float); //! BDT output score for prompt hypothesis
59+
DECLARE_SOA_COLUMN(BdtScoreNonPrompt, bdtScoreNonPrompt, float); //! BDT output score for non-prompt hypothesis
60+
DECLARE_SOA_COLUMN(BdtScoreBkg, bdtScoreBkg, float); //! BDT output score for background hypothesis
6061
} // namespace hf_candidate_reduced
6162
DECLARE_SOA_TABLE(HcCandReduceds, "AOD", "HCCANDREDUCED", //! Table with charm hadron candidate info
6263
soa::Index<>,
@@ -72,8 +73,9 @@ DECLARE_SOA_TABLE(HcCandReduceds, "AOD", "HCCANDREDUCED", //! Table with charm h
7273
DECLARE_SOA_TABLE(HcCandSelInfos, "AOD", "HCCANDSELINFO", //! Table with charm hadron candidate selection info
7374
soa::Index<>,
7475
aod::hf_candidate_reduced::HfcRedCollisionId,
76+
aod::hf_candidate_reduced::BdtScoreBkg,
7577
aod::hf_candidate_reduced::BdtScorePrompt,
76-
aod::hf_candidate_reduced::BdtScoreBkg);
78+
aod::hf_candidate_reduced::BdtScoreNonPrompt);
7779

7880
namespace hf_assoc_track_reduced
7981
{

‎PWGHF/HFC/TableProducer/correlatorDplusHadrons.cxx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,8 @@ struct HfCorrelatorDplusHadrons {
569569
outputMl[iclass] = candidate.mlProbDplusToPiKPi()[classMl->at(iclass)];
570570
}
571571
candReduced(indexHfcReducedCollision, candidate.phi(), candidate.eta(), candidate.pt(), HfHelper::invMassDplusToPiKPi(candidate), candidate.prong0Id(), candidate.prong1Id(), candidate.prong2Id());
572-
candSelInfo(indexHfcReducedCollision, outputMl[0], outputMl[2]);
572+
// Check compatibility with the candidate selector options: BdtScoreBkg, BdtScorePrompt, BdtScoreNonPrompt
573+
candSelInfo(indexHfcReducedCollision, outputMl[0], outputMl[1], outputMl[2]);
573574
}
574575
}
575576

‎PWGHF/HFC/TableProducer/correlatorDsHadrons.cxx‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -859,13 +859,14 @@ struct HfCorrelatorDsHadrons {
859859
outputMl[iclass] = candidate.mlProbDsToKKPi()[classMl->at(iclass)];
860860
}
861861
candReduced(indexHfcReducedCollision, candidate.phi(), candidate.eta(), candidate.pt() * chargeDs, HfHelper::invMassDsToKKPi(candidate), candidate.prong0Id(), candidate.prong1Id(), candidate.prong2Id());
862-
candSelInfo(indexHfcReducedCollision, outputMl[0], outputMl[2]);
862+
// Check compatibility with the candidate selector options; candSelInfo considers BdtScoreBkg, BdtScorePrompt, BdtScoreNonPrompt
863+
candSelInfo(indexHfcReducedCollision, outputMl[2], outputMl[0], outputMl[1]); // bkg, prompt, non-prompt (Ds convention: outputMl[0] = prompt, outputMl[2] = bkg)
863864
} else if (candidate.isSelDsToPiKK() >= selectionFlagDs) {
864865
for (unsigned int iclass = 0; iclass < classMl->size(); iclass++) {
865866
outputMl[iclass] = candidate.mlProbDsToPiKK()[classMl->at(iclass)];
866867
}
867868
candReduced(indexHfcReducedCollision, candidate.phi(), candidate.eta(), candidate.pt() * chargeDs, HfHelper::invMassDsToPiKK(candidate), candidate.prong0Id(), candidate.prong1Id(), candidate.prong2Id());
868-
candSelInfo(indexHfcReducedCollision, outputMl[0], outputMl[2]);
869+
candSelInfo(indexHfcReducedCollision, outputMl[2], outputMl[0], outputMl[1]); // bkg, prompt, non-prompt (Ds convention: outputMl[0] = prompt, outputMl[2] = bkg)
869870
}
870871
}
871872

0 commit comments

Comments
 (0)