From facce6a7e9abf8b70e54ed73cb6c79680b9d083d Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Wed, 22 Feb 2023 20:38:16 -0500 Subject: [PATCH] CalorimeterIslandCluster.h: add brackets Relational operators have higher precedence than logical, so this is purely for readability --- src/algorithms/calorimetry/CalorimeterIslandCluster.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/algorithms/calorimetry/CalorimeterIslandCluster.h b/src/algorithms/calorimetry/CalorimeterIslandCluster.h index b118c33fd0..826a1b8296 100644 --- a/src/algorithms/calorimetry/CalorimeterIslandCluster.h +++ b/src/algorithms/calorimetry/CalorimeterIslandCluster.h @@ -194,7 +194,7 @@ class CalorimeterIslandCluster { continue; } - if (is_neighbour(hit, hit2) && hit2->getEnergy() > hit->getEnergy()) { + if (is_neighbour(hit, hit2) && (hit2->getEnergy() > hit->getEnergy())) { maximum = false; break; }