Skip to content

Commit 9a9c1f8

Browse files
authored
[PWGHF] check pion -> mu in MC match for Omegac0 To Omega Pi (#10651)
1 parent 5748912 commit 9a9c1f8

File tree

3 files changed

+144
-104
lines changed

3 files changed

+144
-104
lines changed

PWGHF/D2H/Tasks/taskOmegac0ToOmegapi.cxx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ struct HfTaskOmegac0ToOmegapi {
6666
ConfigurableAxis thnConfigAxisPt{"thnConfigAxisPt", {100, 0, 20}, "Cand. pT bins"};
6767
ConfigurableAxis thnConfigAxisY{"thnConfigAxisY", {20, -1, 1}, "Cand. rapidity bins"};
6868
ConfigurableAxis thnConfigAxisOrigin{"thnConfigAxisOrigin", {3, -0.5, 2.5}, "Cand. origin type"};
69+
ConfigurableAxis thnConfigAxisMatchFlag{"thnConfigAxisMatchFlag", {15, -7.5, 7.5}, "Cand. MC Match Flag type"};
6970
ConfigurableAxis thnConfigAxisGenPtD{"thnConfigAxisGenPtD", {500, 0, 50}, "Gen Pt D"};
7071
ConfigurableAxis thnConfigAxisGenPtB{"thnConfigAxisGenPtB", {1000, 0, 100}, "Gen Pt B"};
7172
ConfigurableAxis thnConfigAxisNumPvContr{"thnConfigAxisNumPvContr", {200, -0.5, 199.5}, "Number of PV contributors"};
@@ -85,6 +86,7 @@ struct HfTaskOmegac0ToOmegapi {
8586
const AxisSpec thnAxisPtB{thnConfigAxisPtB, "#it{p}_{T}^{B} (GeV/#it{c})"};
8687
const AxisSpec thnAxisY{thnConfigAxisY, "y"};
8788
const AxisSpec thnAxisOrigin{thnConfigAxisOrigin, "Origin"};
89+
const AxisSpec thnAxisMatchFlag{thnConfigAxisMatchFlag, "MatchFlag"};
8890
const AxisSpec thnAxisGenPtD{thnConfigAxisGenPtD, "#it{p}_{T} (GeV/#it{c})"};
8991
const AxisSpec thnAxisGenPtB{thnConfigAxisGenPtB, "#it{p}_{T}^{B} (GeV/#it{c})"};
9092
const AxisSpec thnAxisNumPvContr{thnConfigAxisNumPvContr, "Number of PV contributors"};
@@ -103,6 +105,7 @@ struct HfTaskOmegac0ToOmegapi {
103105
if (doprocessMcWithKFParticle || doprocessMcWithKFParticleMl) {
104106
axes.push_back(thnAxisPtB);
105107
axes.push_back(thnAxisOrigin);
108+
axes.push_back(thnAxisMatchFlag);
106109
axes.push_back(thnAxisNumPvContr);
107110
}
108111
if (applyMl) {
@@ -178,10 +181,10 @@ struct HfTaskOmegac0ToOmegapi {
178181
if (candidate.resultSelections() && !selectionFlagOmegac0)
179182
if (candidate.flagMcMatchRec() == (1 << aod::hf_cand_xic0_omegac0::DecayType::OmegaczeroToOmegaPi)) {
180183
if constexpr (applyMl) {
181-
registry.fill(HIST("hBdtScoreVsMassVsPtVsPtBVsYVsOriginVsOmegac0Type"), candidate.mlProbOmegac()[0], massOmegac0, ptCandidate, rapidityCandidate, candidate.ptBhadMotherPart(), candidate.originRec(), numPvContributors);
184+
registry.fill(HIST("hBdtScoreVsMassVsPtVsPtBVsYVsOriginVsOmegac0Type"), candidate.mlProbOmegac()[0], massOmegac0, ptCandidate, rapidityCandidate, candidate.ptBhadMotherPart(), candidate.originRec(), candidate.flagMcMatchRec(), numPvContributors);
182185

183186
} else {
184-
registry.fill(HIST("hMassVsPtVsPtBVsYVsOriginVsOmegac0Type"), massOmegac0, ptCandidate, rapidityCandidate, candidate.ptBhadMotherPart(), candidate.originRec(), numPvContributors);
187+
registry.fill(HIST("hMassVsPtVsPtBVsYVsOriginVsOmegac0Type"), massOmegac0, ptCandidate, rapidityCandidate, candidate.ptBhadMotherPart(), candidate.originRec(), candidate.flagMcMatchRec(), numPvContributors);
185188
}
186189
}
187190
}

PWGHF/DataModel/CandidateReconstructionTables.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1397,7 +1397,8 @@ DECLARE_SOA_DYNAMIC_COLUMN(PtKaFromCasc, ptKaFromCasc,
13971397
enum DecayType { XiczeroToXiPi = 0,
13981398
OmegaczeroToXiPi,
13991399
OmegaczeroToOmegaPi,
1400-
OmegaczeroToOmegaK };
1400+
OmegaczeroToOmegaK,
1401+
OmegaczeroToOmegaPiOneMu };
14011402

14021403
} // end of namespace hf_cand_xic0_omegac0
14031404

0 commit comments

Comments
 (0)