Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Detectors/EMCAL/base/src/ClusterFactory.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ void ClusterFactory<InputType>::evalNExMax(gsl::span<const int> inputsIndices, A
std::vector<short> rows;
std::vector<short> columns;
std::vector<double> energies;

rows.reserve(n);
columns.reserve(n);
energies.reserve(n);
Expand All @@ -514,15 +514,15 @@ void ClusterFactory<InputType>::evalNExMax(gsl::span<const int> inputsIndices, A
// get a nice topological indexing that is done in exactly the same way as used by the clusterizer
// this way we can handle the shared cluster cases correctly
const auto [row, column] = mGeomPtr->GetTopologicalRowColumn(nSupMod, nModule, nIphi, nIeta);

rows.push_back(row);
columns.push_back(column);
energies.push_back(mInputsContainer[iInput].getEnergy());
}

// Now find local maxima using pre-computed data
int nExMax = 0;
for (size_t i = 0; i < n; i++) {
for (size_t i = 0; i < n; i++) {
// this cell is assumed to be local maximum unless we find a higher energy cell in the neighborhood
bool isExMax = true;

Expand Down
Loading