Skip to content

Commit 20accb7

Browse files
Ading missing cut on cfcollisions
1 parent 53a0630 commit 20accb7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

PWGCF/TableProducer/filter2Prong.cxx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,9 @@ struct Filter2Prong {
440440
// Phi and V0s invariant mass method candidate finder. Only works for non-identical daughters of opposite charge for now.
441441
void processDataPhiV0(aod::Collisions::iterator const& collision, aod::BCsWithTimestamps const&, aod::CFCollRefs const& cfcollisions, aod::CFTrackRefs const& cftracks, Filter2Prong::PIDTrack const& tracks, aod::V0Datas const& V0s)
442442
{
443+
if (cfcollisions.size() <= 0)
444+
return; // rejected collision
445+
443446
// V0
444447
for (const auto& v0 : V0s) { // Loop over V0 candidates
445448
if (!isV0TrackSelected(v0)) { // Quality selection for V0 prongs
@@ -475,7 +478,7 @@ struct Filter2Prong {
475478
} // end of loop over V0 candidates
476479

477480
// Phi
478-
if (cfcollisions.size() <= 0 || cftracks.size() <= 0)
481+
if (cftracks.size() <= 0)
479482
return; // rejected collision
480483

481484
o2::aod::ITSResponse itsResponse;

0 commit comments

Comments
 (0)