Skip to content

Commit 5727dff

Browse files
authored
Update taskXic0ToXiPi.cxx
1 parent 4e9dd4c commit 5727dff

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

PWGHF/D2H/Tasks/taskXic0ToXiPi.cxx

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ struct HfTaskXic0ToXiPi {
6868
using Xic0CandsMcKF = soa::Filtered<soa::Join<aod::HfCandToXiPiKf, aod::HfSelToXiPiKf, aod::HfXicToXiPiMCRec>>;
6969

7070
using Xic0CandsMl = soa::Filtered<soa::Join<aod::HfCandToXiPi, aod::HfSelToXiPi, aod::HfMlToXiPi>>;
71-
using Xic0CandsMlKF = soa::Filtered<soa::Join<aod::HfCandToXiPiKf, aod::HfSelToXiPiKf, aod::HfMlToXiPiKf>>;
71+
using Xic0CandsMlKF = soa::Filtered<soa::Join<aod::HfCandToXiPiKf, aod::HfSelToXiPiKf, aod::HfMlToXiPi>>;
7272
using Xic0CandsMlMc = soa::Filtered<soa::Join<aod::HfCandToXiPi, aod::HfSelToXiPi, aod::HfMlToXiPi, aod::HfXicToXiPiMCRec>>;
73-
using Xic0CandsMlMcKF = soa::Filtered<soa::Join<aod::HfCandToXiPiKf, aod::HfSelToXiPiKf, aod::HfMlToXiPiKf, aod::HfXicToXiPiMCRec>>;
73+
using Xic0CandsMlMcKF = soa::Filtered<soa::Join<aod::HfCandToXiPiKf, aod::HfSelToXiPiKf, aod::HfMlToXiPi, aod::HfXicToXiPiMCRec>>;
7474

7575
using Xic0Gen = soa::Filtered<soa::Join<aod::McParticles, aod::HfXicToXiPiMCGen>>;
7676

@@ -164,13 +164,13 @@ struct HfTaskXic0ToXiPi {
164164
if (candidate.resultSelections() != true) {
165165
return;
166166
}
167-
double etaCharmBaryon;
167+
double yCharmBaryon;
168168
if constexpr (UseKfParticle) {
169-
etaCharmBaryon = candidate.kfRapXic();
169+
yCharmBaryon = candidate.kfRapXic();
170170
} else {
171-
etaCharmBaryon = candidate.etaCharmBaryon();
171+
yCharmBaryon = candidate.y(o2::constants::physics::MassXiC0);
172172
}
173-
if (yCandRecMax >= 0. && std::abs(etaCharmBaryon) > yCandRecMax) {
173+
if (yCandRecMax >= 0. && std::abs(yCharmBaryon) > yCandRecMax) {
174174
return;
175175
}
176176

@@ -186,15 +186,15 @@ struct HfTaskXic0ToXiPi {
186186
candidate.mlProbToXiPi()[0],
187187
candidate.invMassCharmBaryon(),
188188
ptXic,
189-
etaCharmBaryon,
189+
yCharmBaryon,
190190
centrality,
191191
ptPiFromXic,
192192
numPvContributors);
193193
} else {
194194
registry.fill(HIST("hMassVsPtVsYVsCentVsPtPion"),
195195
candidate.invMassCharmBaryon(),
196196
ptXic,
197-
etaCharmBaryon,
197+
yCharmBaryon,
198198
centrality,
199199
ptPiFromXic,
200200
numPvContributors);
@@ -213,13 +213,13 @@ struct HfTaskXic0ToXiPi {
213213
if (candidate.resultSelections() != true) {
214214
continue;
215215
}
216-
double etaCharmBaryon;
216+
double yCharmBaryon;
217217
if constexpr (UseKfParticle) {
218-
etaCharmBaryon = candidate.kfRapXic();
218+
yCharmBaryon = candidate.kfRapXic();
219219
} else {
220-
etaCharmBaryon = candidate.etaCharmBaryon();
220+
yCharmBaryon = candidate.y(o2::constants::physics::MassXiC0);
221221
}
222-
if (yCandRecMax >= 0. && std::abs(etaCharmBaryon) > yCandRecMax) {
222+
if (yCandRecMax >= 0. && std::abs(yCharmBaryon) > yCandRecMax) {
223223
continue;
224224
}
225225

@@ -230,7 +230,7 @@ struct HfTaskXic0ToXiPi {
230230
candidate.mlProbToXiPi()[0],
231231
candidate.invMassCharmBaryon(),
232232
ptXic,
233-
etaCharmBaryon,
233+
yCharmBaryon,
234234
candidate.ptBhadMotherPart(),
235235
candidate.originMcRec(),
236236
candidate.flagMcMatchRec(),
@@ -239,7 +239,7 @@ struct HfTaskXic0ToXiPi {
239239
registry.fill(HIST("hMassVsPtVsPtBVsYVsOriginVsXic0Type"),
240240
candidate.invMassCharmBaryon(),
241241
ptXic,
242-
etaCharmBaryon,
242+
yCharmBaryon,
243243
candidate.ptBhadMotherPart(),
244244
candidate.originMcRec(),
245245
candidate.flagMcMatchRec(),

0 commit comments

Comments
 (0)