Skip to content

Commit f49c327

Browse files
author
Prottay Das
committed
removed the iteratorAt function to reduce memory consumption
1 parent 1fb57ab commit f49c327

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

PWGCF/TableProducer/filter2Prong.cxx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ struct Filter2Prong {
800800
PROCESS_SWITCH(Filter2Prong, processDataPhiV0, "Process data Phi and V0 candidates with invariant mass method", false);
801801

802802
using DerivedCollisions = soa::Join<aod::Collisions, aod::EvSels, aod::CFMultiplicities>;
803-
void processDataPhiMixed(DerivedCollisions const& collisions, Filter2Prong::PIDTrack const& tracksP, aod::CFTrackRefs const& cftracks)
803+
void processDataPhiMixed(DerivedCollisions const& collisions, Filter2Prong::PIDTrack const& /*tracksP*/, aod::CFTrackRefs const& cftracks)
804804
{
805805
auto getMultiplicity = [](auto const& col) {
806806
return col.multiplicity();
@@ -833,8 +833,7 @@ struct Filter2Prong {
833833
}
834834

835835
for (const auto& cftrack1 : tracks1) {
836-
// const auto& p1 = cftrack1.track_as<Filter2Prong::PIDTrack>();
837-
const auto& p1 = tracksP.iteratorAt(cftrack1.trackId() - tracksP.begin().globalIndex());
836+
const auto& p1 = cftrack1.track_as<Filter2Prong::PIDTrack>();
838837

839838
if (p1.sign() != 1) {
840839
continue;
@@ -853,8 +852,7 @@ struct Filter2Prong {
853852
}
854853

855854
for (const auto& cftrack2 : tracks2) {
856-
// const auto& p2 = cftrack2.track_as<Filter2Prong::PIDTrack>();
857-
const auto& p2 = tracksP.iteratorAt(cftrack2.trackId() - tracksP.begin().globalIndex());
855+
const auto& p2 = cftrack2.track_as<Filter2Prong::PIDTrack>();
858856

859857
if (p2.sign() != -1) {
860858
continue;

0 commit comments

Comments
 (0)