Skip to content

Commit 61e1f0f

Browse files
sdudi123sandeep
andauthored
rapidity cut updated (#6293)
Co-authored-by: sandeep <sandeep@sandeeps-MacBook-Pro.local>
1 parent dcffb8a commit 61e1f0f

1 file changed

Lines changed: 28 additions & 19 deletions

File tree

PWGUD/Tasks/sginclusivePhiKstarSD.cxx

Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ struct SGResonanceAnalyzer {
269269
if (v0.Eta() < EtaGapMin && v0.Eta() > -EtaGapMax) {
270270
trackgapC++;
271271
}
272-
if (TMath::Abs(v0.Eta()) > EtaGapMax) {
272+
if (TMath::Abs(v0.Eta()) > EtaGapMax || TMath::Abs(v0.Eta()) < EtaGapMin) {
273273
trackextra++;
274274
}
275275
if (TMath::Abs(v0.Eta()) > EtaDG) {
@@ -334,37 +334,46 @@ struct SGResonanceAnalyzer {
334334
}
335335
if (rapidity_gap) {
336336
if (trackgapC > 0 && trackgapA == 0 && trackextra == 0) {
337-
if (gapSide == 0)
337+
if (gapSide == 0) {
338338
registry.fill(HIST("event_rap_gap"), 1);
339-
registry.fill(HIST("rap_mult1"), trackgapC);
340-
if (gapSide == 1)
339+
registry.fill(HIST("rap_mult1"), trackgapC);
340+
}
341+
if (gapSide == 1) {
341342
registry.fill(HIST("event_rap_gap"), 4);
342-
registry.fill(HIST("rap1_mult1"), trackgapC);
343-
if (gapSide == 2)
343+
registry.fill(HIST("rap1_mult1"), trackgapC);
344+
}
345+
if (gapSide == 2) {
344346
registry.fill(HIST("event_rap_gap"), 7);
345-
registry.fill(HIST("rap2_mult1"), trackgapC);
347+
registry.fill(HIST("rap2_mult1"), trackgapC);
348+
}
346349
}
347350
if (trackgapC == 0 && trackgapA > 0 && trackextra == 0) {
348-
if (gapSide == 0)
351+
if (gapSide == 0) {
349352
registry.fill(HIST("event_rap_gap"), 2);
350-
registry.fill(HIST("rap_mult2"), trackgapA);
351-
if (gapSide == 1)
353+
registry.fill(HIST("rap_mult2"), trackgapA);
354+
}
355+
if (gapSide == 1) {
352356
registry.fill(HIST("event_rap_gap"), 5);
353-
registry.fill(HIST("rap1_mult2"), trackgapA);
354-
if (gapSide == 2)
357+
registry.fill(HIST("rap1_mult2"), trackgapA);
358+
}
359+
if (gapSide == 2) {
355360
registry.fill(HIST("event_rap_gap"), 8);
356-
registry.fill(HIST("rap2_mult3"), trackgapA);
361+
registry.fill(HIST("rap2_mult2"), trackgapA);
362+
}
357363
}
358364
if (trackDG > 0 && trackextraDG == 0) {
359-
if (gapSide == 0)
365+
if (gapSide == 0) {
360366
registry.fill(HIST("event_rap_gap"), 3);
361-
registry.fill(HIST("rap_mult3"), trackDG);
362-
if (gapSide == 1)
367+
registry.fill(HIST("rap_mult3"), trackDG);
368+
}
369+
if (gapSide == 1) {
363370
registry.fill(HIST("event_rap_gap"), 6);
364-
registry.fill(HIST("rap1_mult3"), trackDG);
365-
if (gapSide == 2)
371+
registry.fill(HIST("rap1_mult3"), trackDG);
372+
}
373+
if (gapSide == 2) {
366374
registry.fill(HIST("event_rap_gap"), 9);
367-
registry.fill(HIST("rap2_mult3"), trackDG);
375+
registry.fill(HIST("rap2_mult3"), trackDG);
376+
}
368377
}
369378
}
370379
}

0 commit comments

Comments
 (0)