Skip to content
Snippets Groups Projects
Commit 88585364 authored by Scott Snyder's avatar Scott Snyder Committed by Tadej Novak
Browse files

MuonReadoutGeometry: Fix warning in archflagtest nightly.

MuonReadoutGeometry: Fix warning in archflagtest nightly.

In the archflagtest nightly, we get a (apparently bogus) warning
about an out-of-bounds access when applying head(2) to a Vector3D.
However, since the 2 is constant, we can use head<2>() instead;
that in passing gets rid of the warning.
parent d56ff48c
No related branches found
No related tags found
No related merge requests found
...@@ -825,7 +825,7 @@ namespace MuonGM { ...@@ -825,7 +825,7 @@ namespace MuonGM {
//********************* //*********************
const NswAsBuilt::StgcStripCalculator* sc = manager()->getStgcAsBuiltCalculator(); const NswAsBuilt::StgcStripCalculator* sc = manager()->getStgcAsBuiltCalculator();
if(manager()->getsTGCAsBuilt2() && design->type == MuonChannelDesign::ChannelType::etaStrip){ if(manager()->getsTGCAsBuilt2() && design->type == MuonChannelDesign::ChannelType::etaStrip){
pos.head(2) = manager()->getsTGCAsBuilt2()->correctPosition(layerId, pos.head(2)); pos.head<2>() = manager()->getsTGCAsBuilt2()->correctPosition(layerId, pos.head<2>());
} else if (sc && design->type == MuonChannelDesign::ChannelType::etaStrip) { } else if (sc && design->type == MuonChannelDesign::ChannelType::etaStrip) {
......
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