diff --git a/RecoTauTag/RecoTau/plugins/DeepTauId.cc b/RecoTauTag/RecoTau/plugins/DeepTauId.cc index 2bfd03c5da7f3..b33fabd88d1b3 100644 --- a/RecoTauTag/RecoTau/plugins/DeepTauId.cc +++ b/RecoTauTag/RecoTau/plugins/DeepTauId.cc @@ -1039,7 +1039,7 @@ namespace { int getPhiTensorIndex(const CellIndex& cellIndex) const { return cellIndex.phi + maxPhiIndex(); } bool tryGetCellIndex(double deltaEta, double deltaPhi, CellIndex& cellIndex) const { - static auto getCellIndex = [this](double x, double maxX, double size, int& index) { + const auto getCellIndex = [this](double x, double maxX, double size, int& index) { const double absX = std::abs(x); if (absX > maxX) return false;