Skip to content

Commit 41f9e93

Browse files
zhaomr13rabbit
andauthored
[PWGUD] Add some cuts (#11076)
Co-authored-by: rabbit <rabbit@hole>
1 parent 3c08545 commit 41f9e93

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

PWGUD/Tasks/flowCorrelationsUpc.cxx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,17 @@ struct FlowCorrelationsUpc {
225225

226226
void processSame(UDCollisionsFull::iterator const& collision, UdTracksFull const& tracks)
227227
{
228+
if (std::abs(collision.posZ()) > cfgZVtxCut) {
229+
return;
230+
}
231+
if (tracks.size() < cfgMinMult || tracks.size() > cfgMaxMult) {
232+
return;
233+
}
234+
228235
int gapSide = collision.gapSide();
229-
if (gapSide < 0 || gapSide > 2) {
236+
const int minGapSide = 0;
237+
const int maxGapSide = 2;
238+
if (gapSide < minGapSide || gapSide > maxGapSide) {
230239
return;
231240
}
232241

0 commit comments

Comments
 (0)