Skip to content

Commit 20999f9

Browse files
committed
Added a check to ensure the efficiency is greater than zero
1 parent bea3abf commit 20999f9

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

PWGCF/MultiparticleCorrelations/Tasks/threeParticleCorrelations.cxx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,12 @@ struct ThreeParticleCorrelations {
482482
index = 1;
483483
}
484484

485-
return efficiencies[index]->GetBinContent(efficiencies[index]->FindBin(pT));
485+
double efficiency = efficiencies[index]->GetBinContent(efficiencies[index]->FindBin(pT));
486+
if (efficiency > 0) {
487+
return efficiency;
488+
} else {
489+
return 1.0;
490+
}
486491
}
487492

488493
template <class V0Cand>
@@ -706,7 +711,7 @@ struct ThreeParticleCorrelations {
706711
}
707712
}
708713

709-
if (std::abs(dPhiStar) <= 0.1) {
714+
if (std::abs(dPhiStar) < 0.1) {
710715
return kFALSE;
711716
}
712717

@@ -723,12 +728,12 @@ struct ThreeParticleCorrelations {
723728
}
724729
};
725730

726-
//==========================================================================================================================================================================================================================================================================
731+
//============================================================================================================================================================================================================================================================================
727732

728733
WorkflowSpec defineDataProcessing(ConfigContext const& cfgc)
729734
{
730735
WorkflowSpec workflow{adaptAnalysisTask<ThreeParticleCorrelations>(cfgc)};
731736
return workflow;
732737
}
733738

734-
//==========================================================================================================================================================================================================================================================================
739+
//============================================================================================================================================================================================================================================================================

0 commit comments

Comments
 (0)