GBL swaps local x and y sometimes
Currently GblTrack.cpp uses GBL coordinates for local residuals. Plane is a GBL-plane in the following from GblTrack:
residual_local_[plane.getName()] = ROOT::Math::XYPoint(gblResiduals(0), gblResiduals(1));
This assumes Gbl coordinate 0 goes with our local x, and GBL coordinate 1 goes with our local y. That does not seem to be always the case. In particular for an ATLAS Long Strip (rectangular) detector, it swaps x and y.
I have changed this in my local code to:
` ROOT::Math::XYZPoint corPosLocal = local_fitted_track_points_.at(name);
ROOT::Math::XYZPoint clusterPosLocal = plane.getCluster()->local();
residual_local_[name] = clusterPosLocal - corPosLocal;
`
which gives sensible answers in all cases I need.
Can this change be made in Master? Or should I do something else?