@@ -504,33 +504,34 @@ void ClusterFactory<InputType>::evalNExMax(gsl::span<const int> inputsIndices, A
504504 int column;
505505 double energy;
506506 };
507-
507+
508508 std::vector<CellInfo> cellInfos;
509509 cellInfos.reserve (inputsIndices.size ());
510-
510+
511511 for (auto iInput : inputsIndices) {
512512 auto [nSupMod, nModule, nIphi, nIeta] = mGeomPtr ->GetCellIndex (mInputsContainer [iInput].getTower ());
513-
513+
514514 // get a nice topological indexing that is done in exactly the same way as used by the clusterizer
515515 // this way we can handle the shared cluster cases correctly
516516 auto [row, column] = mGeomPtr ->GetTopologicalRowColumn (nSupMod, nModule, nIphi, nIeta);
517517 cellInfos.push_back ({row, column, mInputsContainer [iInput].getEnergy ()});
518518 }
519-
519+
520520 // Now find local maxima using pre-computed data
521521 int nExMax = 0 ;
522522 for (size_t i = 0 ; i < cellInfos.size (); i++) {
523523 // this cell is assumed to be local maximum unless we find a higher energy cell in the neighborhood
524524 bool isExMax = true ;
525-
525+
526526 // loop over all other cells in cluster
527527 for (size_t j = 0 ; j < cellInfos.size (); j++) {
528- if (i == j) continue ;
529-
528+ if (i == j)
529+ continue ;
530+
530531 // adjacent cell is any cell with adjacent phi or eta index
531- if (std::abs (cellInfos[i].row - cellInfos[j].row ) <= 1 &&
532+ if (std::abs (cellInfos[i].row - cellInfos[j].row ) <= 1 &&
532533 std::abs (cellInfos[i].column - cellInfos[j].column ) <= 1 ) {
533-
534+
534535 // if there is a cell with higher energy than the current cell, it is not a local maximum
535536 if (cellInfos[j].energy > cellInfos[i].energy ) {
536537 isExMax = false ;
0 commit comments