Skip to content

Commit 44ff451

Browse files
authored
[PWGCF] Refactor V0s slicing to use perColV0Data (#18778)
1 parent e4614c4 commit 44ff451

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎PWGCF/TwoParticleCorrelations/Tasks/longrangecorrDerived.cxx‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1150,6 +1150,7 @@ struct LongrangecorrDerived {
11501150

11511151
using CollStandardTable = soa::Join<aod::Collisions, aod::EvSels>;
11521152
using TrksStandardTable = soa::Join<aod::Tracks, aod::TracksExtra, aod::TracksDCA, aod::TrackSelection, aod::pidTPCFullPi, aod::pidTPCFullKa, aod::pidTPCFullPr, aod::pidTOFbeta, aod::pidTOFFullPi, aod::pidTOFFullKa, aod::pidTOFFullPr>;
1153+
Preslice<aod::V0Datas> perColV0Data = aod::v0data::collisionId;
11531154

11541155
template <typename TTracks>
11551156
float countFallbackMultiplicity(TTracks const& tracks, float vz)
@@ -1409,7 +1410,7 @@ struct LongrangecorrDerived {
14091410
}
14101411

14111412
if ((cfgSel.cfgGetV0CleanSample || cfgSel.cfgFillAfterCutWithV0) && cfgSel.cfgGetdEdx) {
1412-
auto v0sThisCol = V0s.sliceByCached(aod::v0data::collisionId, rawCol.globalIndex(), this->cache);
1413+
auto v0sThisCol = V0s.sliceBy(perColV0Data, rawCol.globalIndex());
14131414
for (auto const& v0 : v0sThisCol) {
14141415
auto const& posTrack = v0.template posTrack_as<TrksStandardTable>();
14151416
auto const& negTrack = v0.template negTrack_as<TrksStandardTable>();

0 commit comments

Comments
 (0)