Skip to content

Commit 3e83ca7

Browse files
committed
Please consider the following formatting changes
1 parent ccca242 commit 3e83ca7

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

Detectors/EMCAL/base/include/EMCALBase/Geometry.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -429,15 +429,13 @@ class Geometry
429429
/// \return Position (0 - phi, 1 - eta) of the cell inside teh supermodule
430430
std::tuple<int, int> GetCellPhiEtaIndexInSModule(int supermoduleID, int moduleID, int phiInModule, int etaInModule) const;
431431

432-
433432
/// \brief Get topological row and column of cell in SM (same as for clusteriser with artifical gaps)
434433
/// \param supermoduleID super module number
435434
/// \param moduleID module number
436435
/// \param phiInModule index in phi direction in module
437436
/// \param etaInModule index in phi direction in module
438437
/// \return tuple with (row, column) of the cell, which is global numbering scheme
439-
std::tuple<int,int> GetTopologicalRowColumn(int supermoduleID, int moduleID, int phiInModule, int etaInModule) const;
440-
438+
std::tuple<int, int> GetTopologicalRowColumn(int supermoduleID, int moduleID, int phiInModule, int etaInModule) const;
441439

442440
/// \brief Adapt cell indices in supermodule to online indexing
443441
/// \param supermoduleID super module number of the channel/cell

Detectors/EMCAL/base/src/ClusterFactory.cxx

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)