File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments