Skip to content
Snippets Groups Projects
Commit a66b0bbf authored by scott snyder's avatar scott snyder Committed by scott snyder
Browse files

STgcClusterization: Fix compilation with gcc11.

Get isnan from std::.
parent 7c95b060
No related branches found
No related tags found
7 merge requests!69091Fix correlated smearing bug in JER in JetUncertainties in 22.0,!58791DataQualityConfigurations: Modify L1Calo config for web display,!51674Fixing hotSpotInHIST for Run3 HIST,!50012RecExConfig: Adjust log message levels from GetRunNumber and GetLBNumber,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!46532STgcClusterization: Fix compilation with gcc11.
......@@ -172,7 +172,7 @@ StatusCode Muon::CaruanaSTgcClusterBuilderTool::getClusters(std::vector<Muon::sT
if (!caruanaFail){
Amg::Vector3D caruanaPars = (elementPosMatrix.inverse())*chargeVector;
reconstructedPosX = clusterCenter - caruanaPars(1)/(2*caruanaPars(2));
if (isnan(reconstructedPosX)) caruanaFail = true; // In the event that the caruanaPars(2) parameter is 0 we reconstruct and infinite position. In this case we must revert back to the weighted mean method.
if (std::isnan(reconstructedPosX)) caruanaFail = true; // In the event that the caruanaPars(2) parameter is 0 we reconstruct and infinite position. In this case we must revert back to the weighted mean method.
if (!caruanaFail){
// Find the channel that the cluster position reconstructs on top of and set the cluster id to it's id
......
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