Skip to content

Commit f12c92b

Browse files
SuJeong-Jialibuild
andauthored
[PWGLF] Hotfix: Add MC table for processMCQA (#13602)
Co-authored-by: ALICE Action Bot <alibuild@cern.ch>
1 parent f1b78a3 commit f12c92b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

PWGLF/Tasks/Resonances/chk892pp.cxx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1354,6 +1354,7 @@ struct Chk892pp {
13541354
void processMCQA(MCEventCandidates::iterator const& collision,
13551355
MCTrackCandidates const& tracks,
13561356
MCV0Candidates const& v0s,
1357+
soa::Join<MCTrueEventCandidates, aod::McCentFT0Ms> const& mccolls,
13571358
aod::BCsWithTimestamps const&)
13581359
{
13591360
if (!colCuts.isSelected(collision))
@@ -1365,7 +1366,10 @@ struct Chk892pp {
13651366

13661367
if (!collision.has_mcCollision())
13671368
return;
1368-
auto mccoll = collision.template mcCollision_as<soa::Join<aod::McCollisions, aod::McCentFT0Ms>>();
1369+
1370+
auto id = collision.mcCollisionId();
1371+
1372+
auto mccoll = mccolls.iteratorAt(id);
13691373
const float lCentrality = mccoll.centFT0M();
13701374

13711375
if (lCentrality < EventCuts.cfgEventCentralityMin || lCentrality > EventCuts.cfgEventCentralityMax)

0 commit comments

Comments
 (0)