Skip to content
Snippets Groups Projects
Commit a1782b54 authored by Duc Ta's avatar Duc Ta
Browse files

Merge branch 'ATLASRECTS-8015' into '24.0'

work around FPE reported as ATLASRECTS-8015

See merge request atlas/athena!73254
parents 4e08d0a1 a0fbe876
No related branches found
No related tags found
2 merge requests!733302024-07-25: merge of 24.0 into main,!73254work around FPE reported as ATLASRECTS-8015
......@@ -148,6 +148,7 @@ std::optional<double> sTgcRawDataMonAlg::band2eta(double rPosAtNSW, const MuonGM
std::optional<double> status = band2theta(rPosAtNSW, muonDetectorManagerObject);
if (!status.has_value()) return std::nullopt;
double theta = status.value();
if (!std::isnormal(theta/2.)) return std::nullopt;
double eta = -std::log(std::tan(theta/2.));
return std::make_optional(eta);
}
......
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