Skip to content
Snippets Groups Projects
Commit 265262a6 authored by Vakhtang Tsulaia's avatar Vakhtang Tsulaia
Browse files

Fixed Clang warnings

1. `MuonReadoutGeometryR4/RadialStripDesign.icc`: lambda capture 'this' is not used (triggered warnings in 19 client packages)
2. `DiTauRec/ElMuFinder.h`: unused private data member
parent d7909617
No related branches found
No related tags found
No related merge requests found
......@@ -83,11 +83,11 @@ namespace MuonGMR4{
}
const Eigen::Rotation2D normalRot{(m_reversedStripOrder ? 90 : -90)*Gaudi::Units::deg};
stripEdgeVecItr itr = std::lower_bound(m_strips.begin(), m_strips.end(), extPos,
[this, & normalRot](const stripEdges& stripPos, const Amg::Vector2D& pos) {
const Amg::Vector2D dir = stripPos.fromBottomToTop().unit();
const Amg::Vector2D normal = normalRot * dir;
std::optional<double> distFromBotEdge = Amg::intersect<2>(stripPos.bottomMounting(), dir, pos, normal);
return distFromBotEdge.value_or(1.) < 0;
[& normalRot](const stripEdges& stripPos, const Amg::Vector2D& pos) {
const Amg::Vector2D dir = stripPos.fromBottomToTop().unit();
const Amg::Vector2D normal = normalRot * dir;
std::optional<double> distFromBotEdge = Amg::intersect<2>(stripPos.bottomMounting(), dir, pos, normal);
return distFromBotEdge.value_or(1.) < 0;
});
if (itr == m_strips.end() || m_strips.begin() == itr) {
......@@ -97,4 +97,4 @@ namespace MuonGMR4{
}
}
#undef CHECK_STRIPRANGE
#endif
\ No newline at end of file
#endif
/*
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
*/
#ifndef DITAUREC_ELMUFINDER_H
......@@ -43,7 +43,6 @@ class ElMuFinder : public DiTauToolBase {
{ this, "MuonContainer", "Muons", "" };
float m_muMinPt;
float m_muMaxEta;
int m_muQual;
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment