diff --git a/reco/L1/L1Algo/L1CATrackFinder.cxx b/reco/L1/L1Algo/L1CATrackFinder.cxx index 0bca23f37ad6e8f716cc794b4cb6d189585c4c2c..8cfb1912b1df2f783ec6074d8260621242977cc5 100644 --- a/reco/L1/L1Algo/L1CATrackFinder.cxx +++ b/reco/L1/L1Algo/L1CATrackFinder.cxx @@ -2461,8 +2461,9 @@ void L1Algo::CATrackFinder() L1HitPoint tempPoint = CreateHitPoint(hit); //TODO take number of station from hit const L1Station& stah = fParameters.GetStation(hit.iSt); - auto [xcoor, ycoor] = stah.ConvUVtoXY<fscal>(tempPoint.U(), tempPoint.V()); - float zcoor = tempPoint.Z() - fParameters.GetTargetPositionZ()[0]; + auto [xcoor, ycoor] = stah.ConvUVtoXY<fscal>(tempPoint.U(), tempPoint.V()); + + float zcoor = tempPoint.Z() - fParameters.GetTargetPositionZ()[0]; float timeFlight = sqrt(xcoor * xcoor + ycoor * ycoor + zcoor * zcoor) / 30.f; // c = 30[cm/ns] sumTime += (hit.t - timeFlight); diff --git a/reco/L1/L1Algo/L1TrackFitter.cxx b/reco/L1/L1Algo/L1TrackFitter.cxx index 2e10696e8b805660c397a5791db5464bde28edf7..4bb81544777656e05e50d741074c4eda5c887d40 100644 --- a/reco/L1/L1Algo/L1TrackFitter.cxx +++ b/reco/L1/L1Algo/L1TrackFitter.cxx @@ -1199,8 +1199,8 @@ void L1Algo::L1KFTrackFitterMuch() for (--i; i >= 0; i--) { fmask initialised = (z[i] < z_end) & (z_start <= z[i]); - fvec w1 = masked(w[i], initialised); - fvec wIn = masked(fvec::One(), initialised); + fvec w1 = masked(w[i], initialised); + fvec wIn = masked(fvec::One(), initialised); if (i >= fNfieldStations - 1) { @@ -1229,7 +1229,7 @@ void L1Algo::L1KFTrackFitterMuch() for (int iStep = 0; iStep < max_steps + 1; iStep++) { const fmask maskLastStep = (nofSteps == nofSteps1); - z_cur = if3(maskLastStep, z_last, T1.fz - stepSize); + z_cur = if3(maskLastStep, z_last, T1.fz - stepSize); // fvec v_mc = fabs(1/qp01)/sqrt(mass2+fabs(1/qp01)*fabs(1/qp01)); // T1.ExtrapolateLine1( z_cur, &w2, v_mc);