121 BOOST_REQUIRE_EQUAL(common.size(), 3u);
122 BOOST_REQUIRE_EQUAL(common.size(), legacy.size());
123 for (
size_t iteration = 0; iteration < common.size(); ++iteration) {
124 const auto& commonIteration = common[iteration];
125 const auto& legacyIteration = legacy[iteration];
128 BOOST_CHECK_EQUAL(commonIteration.MinTrackLength, legacyIteration.MinTrackLength);
130 BOOST_CHECK_EQUAL(commonIteration.StartLayerMask.value(), legacyIteration.StartLayerMask.value());
131 BOOST_REQUIRE_EQUAL(commonIteration.MinPt.size(), legacyIteration.MinPt.size());
177 BOOST_REQUIRE_EQUAL(plan.iterations.size(), 1);
196 const auto checkDictionary = []<
typename Config>(
const Config&) {
197 auto* dictionary = TClass::GetClass(
typeid(Config));
198 BOOST_REQUIRE(dictionary);
199 for (
const auto*
name : {
"addTimeError",
"sysErr2Row",
"sysErr2Col"}) {
200 auto* member = dictionary->GetDataMember(
name);
201 BOOST_REQUIRE(member);
209 for (
const auto detector : {o2::detectors::DetID::ITS, o2::detectors::DetID::MFT}) {
210 const auto other = detector == o2::detectors::DetID::ITS ? o2::detectors::DetID::MFT : o2::detectors::DetID::ITS;
211 const std::string
key = detector == o2::detectors::DetID::ITS ?
"ITSCommonCATrackerParam." :
"MFTCATrackerParam.";
216 ConfigurableParam::updateFromString(
key +
"nIterations=-1;" +
key +
"startLayerMask[0]=0;" +
217 key +
"minTrackLgtIter[0]=0;" +
key +
"maxHolesIter[0]=0;" +
218 key +
"maxChi2NDF=-1;" +
key +
"addTimeError[0]=0;" +
219 key +
"sysErr2Row[0]=0");
223 ConfigurableParam::updateFromString(
key +
"nIterations=2;" +
key +
"startLayerMask[0]=64;" +
224 key +
"minTrackLgtIter[0]=5;" +
key +
"maxHolesIter[0]=1;" +
225 key +
"maxChi2NDF=12;" +
key +
"addTimeError[0]=3;" +
226 key +
"sysErr2Row[0]=0.01");
228 BOOST_REQUIRE_EQUAL(plan.iterations.size(), 2);
237 BOOST_CHECK_EQUAL(unchanged.iterations[0].MinTrackLength, baseline.iterations[0].MinTrackLength);
238 BOOST_CHECK_EQUAL(unchanged.detector.SystError2Row[0], baseline.detector.SystError2Row[0]);
240 ConfigurableParam::updateFromString(
key +
"minTrackLgtIter[0]=0;" +
key +
"nIterations=4");
242 ConfigurableParam::updateFromString(
key +
"nIterations=-1;" +
key +
"startLayerMask[0]=1024");
244 if (detector == o2::detectors::DetID::ITS) {
245 ConfigurableParam::updateFromString(
key +
"startLayerMask[0]=128");
259 o2::conf::ConfigurableParam::setValue<float>(
"ITSCommonCATrackerParam",
"diamondPos[0]", 1.5f);
260 o2::conf::ConfigurableParam::setValue<float>(
"ITSCommonCATrackerParam",
"diamondPos[1]", -2.5f);
261 o2::conf::ConfigurableParam::setValue<float>(
"ITSCommonCATrackerParam",
"diamondPos[2]", 3.5f);
262 o2::conf::ConfigurableParam::setValue<float>(
"ITSCommonCATrackerParam",
"pvRes", 0.25f);
263 o2::conf::ConfigurableParam::setValue<bool>(
"ITSCommonCATrackerParam",
"useDiamond",
true);
266 BOOST_REQUIRE_EQUAL(trackParams.size(), 1u);
267 const auto& p = trackParams[0];