Skip to content

Commit

Permalink
use non-static lambda in DeepTauId::CellGrid::tryGetCellIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
slava77 authored and Sebastian Wozniewski committed Feb 8, 2021
1 parent 541726e commit 6834218
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RecoTauTag/RecoTau/plugins/DeepTauId.cc
Expand Up @@ -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;
Expand Down

0 comments on commit 6834218

Please sign in to comment.