diff --git a/reco/L1/L1Algo/L1CATrackFinder.cxx b/reco/L1/L1Algo/L1CATrackFinder.cxx index 7f9632f9366f28ce9bad9edb156c6120e3f649f9..0bca23f37ad6e8f716cc794b4cb6d189585c4c2c 100644 --- a/reco/L1/L1Algo/L1CATrackFinder.cxx +++ b/reco/L1/L1Algo/L1CATrackFinder.cxx @@ -2460,7 +2460,7 @@ void L1Algo::CATrackFinder() fRecoHits_local[num_thread].push_back(*phIt); L1HitPoint tempPoint = CreateHitPoint(hit); //TODO take number of station from hit - L1Station stah = fParameters.GetStation(0); // TODO: Why is it a copy? + const L1Station& stah = fParameters.GetStation(hit.iSt); auto [xcoor, ycoor] = stah.ConvUVtoXY<fscal>(tempPoint.U(), tempPoint.V()); float zcoor = tempPoint.Z() - fParameters.GetTargetPositionZ()[0];