@@ -207,6 +207,19 @@ std::vector<o2::its::TrackingParameters> TrackerDPL::createTrackingParamsFromCon
207207 params.CorrType = static_cast <o2::base::PropagatorImpl<float >::MatCorrType>(corrTypeInt);
208208 }
209209
210+ const auto nLayers = static_cast <size_t >(params.NLayers );
211+ LOG_IF (fatal, params.LayerZ .size () != nLayers) << " Invalid ALICE3 TRK tracking parameter LayerZ: expected " << nLayers << " entries, got " << params.LayerZ .size ();
212+ LOG_IF (fatal, params.LayerRadii .size () != nLayers) << " Invalid ALICE3 TRK tracking parameter LayerRadii: expected " << nLayers << " entries, got " << params.LayerRadii .size ();
213+ LOG_IF (fatal, params.LayerxX0 .size () != nLayers) << " Invalid ALICE3 TRK tracking parameter LayerxX0: expected " << nLayers << " entries, got " << params.LayerxX0 .size ();
214+ LOG_IF (fatal, params.LayerResolution .size () != nLayers) << " Invalid ALICE3 TRK tracking parameter LayerResolution: expected " << nLayers << " entries, got " << params.LayerResolution .size ();
215+ LOG_IF (fatal, params.SystErrorY2 .size () != nLayers) << " Invalid ALICE3 TRK tracking parameter SystErrorY2: expected " << nLayers << " entries, got " << params.SystErrorY2 .size ();
216+ LOG_IF (fatal, params.SystErrorZ2 .size () != nLayers) << " Invalid ALICE3 TRK tracking parameter SystErrorZ2: expected " << nLayers << " entries, got " << params.SystErrorZ2 .size ();
217+ LOG_IF (fatal, params.AddTimeError .size () != nLayers) << " Invalid ALICE3 TRK tracking parameter AddTimeError: expected " << nLayers << " entries, got " << params.AddTimeError .size ();
218+
219+ LOG_IF (fatal, params.MinTrackLength > params.NLayers ) << " Invalid ALICE3 TRK tracking parameter MinTrackLength: expected <= NLayers (" << params.NLayers << " ), got " << params.MinTrackLength ;
220+ const auto minPtSize = static_cast <size_t >(params.NLayers - params.MinTrackLength + 1 );
221+ LOG_IF (fatal, params.MinPt .size () != minPtSize) << " Invalid ALICE3 TRK tracking parameter MinPt: expected " << minPtSize << " entries, got " << params.MinPt .size ();
222+
210223 trackingParams.push_back (params);
211224 }
212225 };
0 commit comments