@@ -279,19 +279,19 @@ struct k892analysis_PbPb {
279279
280280 if (TofandTpcPID) {
281281
282- if (candidate.hasTOF () && std::abs (candidate.tofNSigmaKa ()) < cMaxTOFnSigmaKaon && candidate.hasTPC () && std::abs (candidate.tpcNSigmaKa ()) < cMaxTPCnSigmaKaon) { // tof and tpc cut
282+ if (candidate.hasTOF () && std::abs (candidate.tofNSigmaKa ()) <= cMaxTOFnSigmaKaon && candidate.hasTPC () && std::abs (candidate.tpcNSigmaKa ()) <= cMaxTPCnSigmaKaon) { // tof and tpc cut
283283 return true ;
284284 }
285285
286286 } else {
287287
288- if (candidate.hasTPC () && std::abs (candidate.tpcNSigmaKa ()) < cMaxTPCnSigmaKaon) { // tpc cut, tof when available
288+ if (candidate.hasTPC () && std::abs (candidate.tpcNSigmaKa ()) <= cMaxTPCnSigmaKaon) { // tpc cut, tof when available
289289
290290 if (cByPassTOF) // skip tof selection
291291 return true ;
292292
293293 if (candidate.hasTOF ()) {
294- if (std::abs (candidate.tofNSigmaKa ()) < cMaxTOFnSigmaKaon) {
294+ if (std::abs (candidate.tofNSigmaKa ()) <= cMaxTOFnSigmaKaon) {
295295 return true ;
296296 }
297297 } else {
@@ -309,19 +309,19 @@ struct k892analysis_PbPb {
309309
310310 if (TofandTpcPID) {
311311
312- if (candidate.hasTOF () && std::abs (candidate.tofNSigmaPi ()) < cMaxTOFnSigmaPion && candidate.hasTPC () && std::abs (candidate.tpcNSigmaPi ()) < cMaxTPCnSigmaPion) { // tof and tpc cut
312+ if (candidate.hasTOF () && std::abs (candidate.tofNSigmaPi ()) <= cMaxTOFnSigmaPion && candidate.hasTPC () && std::abs (candidate.tpcNSigmaPi ()) <= cMaxTPCnSigmaPion) { // tof and tpc cut
313313 return true ;
314314 }
315315
316316 } else {
317317
318- if (candidate.hasTPC () && std::abs (candidate.tpcNSigmaPi ()) < cMaxTPCnSigmaPion) { // tpc cut, tof when available
318+ if (candidate.hasTPC () && std::abs (candidate.tpcNSigmaPi ()) <= cMaxTPCnSigmaPion) { // tpc cut, tof when available
319319
320320 if (cByPassTOF) // skip tof selection
321321 return true ;
322322
323323 if (candidate.hasTOF ()) {
324- if (std::abs (candidate.tofNSigmaPi ()) < cMaxTOFnSigmaPion) {
324+ if (std::abs (candidate.tofNSigmaPi ()) <= cMaxTOFnSigmaPion) {
325325 return true ;
326326 }
327327 } else {
@@ -382,10 +382,10 @@ struct k892analysis_PbPb {
382382
383383 if constexpr (IsMC) {
384384 if (tpclowpt) {
385- if (trk1ptPi > cMaxPtTPC || trk2ptKa > cMaxPtTPC)
385+ if (trk1ptPi >= cMaxPtTPC || trk2ptKa >= cMaxPtTPC)
386386 continue ;
387387 } else if (tofhighpt) {
388- if (trk1ptPi < cMinPtTOF || trk2ptKa < cMinPtTOF)
388+ if (trk1ptPi <= cMinPtTOF || trk2ptKa <= cMinPtTOF)
389389 continue ;
390390 }
391391 }
@@ -552,8 +552,8 @@ struct k892analysis_PbPb {
552552
553553 Filter collisionFilter = nabs(aod::collision::posZ) <= cfgCutVertex;
554554 Filter centralityFilter = nabs(aod::cent::centFT0C) <= cfgCutCentrality;
555- Filter acceptanceFilter = (nabs(aod::track::eta) < cfgCutEta && nabs(aod::track::pt) > cfgCutPT);
556- Filter DCAcutFilter = (nabs(aod::track::dcaXY) < cfgCutDCAxy) && (nabs(aod::track::dcaZ) < cfgCutDCAz);
555+ Filter acceptanceFilter = (nabs(aod::track::eta) < cfgCutEta && nabs(aod::track::pt) >= cfgCutPT);
556+ Filter DCAcutFilter = (nabs(aod::track::dcaXY) <= cfgCutDCAxy) && (nabs(aod::track::dcaZ) <= cfgCutDCAz);
557557
558558 using EventCandidates = soa::Filtered<soa::Join<aod::Collisions, aod::EvSels, aod::FT0Mults, aod::MultZeqs, aod::CentFT0Ms, aod::CentFT0As, aod::CentFT0Cs>>;
559559 using TrackCandidates = soa::Filtered<soa::Join<aod::Tracks, aod::TracksExtra, aod::TracksDCA, aod::TrackSelection,
@@ -701,18 +701,18 @@ struct k892analysis_PbPb {
701701
702702 for (auto & [collision1, tracks1, collision2, tracks2] : pairs) {
703703 if (!collision1.sel8 () || !collision2.sel8 ()) {
704- return ;
704+ continue ;
705705 }
706706 auto centrality = collision1.centFT0C ();
707707
708708 if (timFrameEvsel && (!collision1.selection_bit (aod::evsel::kNoTimeFrameBorder ) || !collision1.selection_bit (aod::evsel::kNoITSROFrameBorder ) || !collision2.selection_bit (aod::evsel::kNoTimeFrameBorder ) || !collision2.selection_bit (aod::evsel::kNoITSROFrameBorder ))) {
709- return ;
709+ continue ;
710710 }
711711 if (additionalEvSel2 && (!collision1.selection_bit (aod::evsel::kNoSameBunchPileup ) || !collision1.selection_bit (aod::evsel::kIsGoodZvtxFT0vsPV ) || !collision2.selection_bit (aod::evsel::kNoSameBunchPileup ) || !collision2.selection_bit (aod::evsel::kIsGoodZvtxFT0vsPV ))) {
712- return ;
712+ continue ;
713713 }
714714 if (additionalEvSel3 && (!collision1.selection_bit (o2::aod::evsel::kNoCollInTimeRangeStandard ) || !collision2.selection_bit (o2::aod::evsel::kNoCollInTimeRangeStandard ))) {
715- return ;
715+ continue ;
716716 }
717717
718718 if (additionalQAeventPlots) {
@@ -935,11 +935,11 @@ struct k892analysis_PbPb {
935935 histos.fill (HIST (" hMCrecCollSels" ), 3 );
936936
937937 if (!(bc.eventCuts () & BIT (aod::Run2EventCuts::kAliEventCutsAccepted )))
938- return ;
938+ continue ;
939939 histos.fill (HIST (" hMCrecCollSels" ), 4 );
940940
941941 if (std::abs (RecCollision.posZ ()) > cfgCutVertex)
942- return ;
942+ continue ;
943943 histos.fill (HIST (" hMCrecCollSels" ), 5 );
944944
945945 auto centrality = RecCollision.centRun2V0M ();
0 commit comments