Skip to content

Commit 05540b4

Browse files
committed
[PWGCF] Use consistent tolerance for radial-flow Nch rebinning
1 parent 7e78d8c commit 05540b4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

PWGCF/EbyEFluctuations/Tasks/radialFlowDecorr.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -565,15 +565,15 @@ struct RadialFlowDecorr {
565565

566566
// Ensure the input binning allows exact 10/100-track groups
567567
if (groupSize < 1 ||
568-
std::abs(groupSize * originalWidth - trackStep) > 1.e-6) {
568+
std::abs(groupSize * originalWidth - trackStep) > KFloatEpsilon) {
569569
LOGF(fatal, "Nch bin width is incompatible with %d-track rebinning",
570570
trackStep);
571571
return nullptr;
572572
}
573573

574574
for (int ix = 1; ix <= nx; ++ix) {
575575
if (std::abs(h->GetXaxis()->GetBinWidth(ix) -
576-
originalWidth) > 1.e-6) {
576+
originalWidth) > KFloatEpsilon) {
577577
LOGF(fatal, "Input Nch axis must have uniform bin widths");
578578
return nullptr;
579579
}

0 commit comments

Comments
 (0)