Skip to content

Commit 5a9cf83

Browse files
committed
Use only one configurable for fasttracker geo
1 parent 8eaad0a commit 5a9cf83

File tree

2 files changed

+20
-30
lines changed

2 files changed

+20
-30
lines changed

ALICE3/Core/FastTracker.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ void FastTracker::AddSiliconALICE3(float scaleX0VD, std::vector<float> pixelReso
180180
AddLayer("B03", 7., 250, x0OT, xrhoOT, resRPhiOT, resZOT, eff, 1);
181181
AddLayer("B04", 9., 250, x0OT, xrhoOT, resRPhiOT, resZOT, eff, 1);
182182
AddLayer("B05", 12., 250, x0OT, xrhoOT, resRPhiOT, resZOT, eff, 1);
183-
AddLayer("iTOF", 19, 250, x0iTOF, xrhoiTOF, resRPhiOT, resZOT, eff, 0);
183+
AddLayer("iTOF", 19, 250, x0iTOF, xrhoiTOF, resRPhiOT, resZOT, 0.0f, 0);
184184
AddLayer("B06", 20., 250, x0OT, xrhoOT, resRPhiOT, resZOT, eff, 1);
185185
AddLayer("B07", 30., 250, x0OT, xrhoOT, resRPhiOT, resZOT, eff, 1);
186186
AddLayer("B08", 45., 250, x0OT, xrhoOT, resRPhiOT, resZOT, eff, 1);

ALICE3/TableProducer/OTF/onTheFlyTracker.cxx

Lines changed: 19 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,7 @@ struct OnTheFlyTracker {
138138
Configurable<int> minSiliconHits{"minSiliconHits", 6, "minimum number of silicon hits to accept track"};
139139
Configurable<int> minSiliconHitsIfTPCUsed{"minSiliconHitsIfTPCUsed", 2, "minimum number of silicon hits to accept track in case TPC info is present"};
140140
Configurable<int> minTPCClusters{"minTPCClusters", 70, "minimum number of TPC hits necessary to consider minSiliconHitsIfTPCUsed"};
141-
Configurable<int> alice3detector{"alice3detector", 2, "0: ALICE 3 v1, 1: ALICE 3 v4, 2: ALICE 3 Sep 2025"};
142-
Configurable<std::string> alice3geo{"alice3geo", "", "Path to ccdb with a3 geo. If empty, fallback to pre-defined geometry"};
141+
Configurable<std::string> alice3geo{"alice3geo", "2", "0: ALICE 3 v1, 1: ALICE 3 v4, 2: ALICE 3 Sep 2025, or path to ccdb with a3 geo"};
143142
Configurable<bool> applyZacceptance{"applyZacceptance", false, "apply z limits to detector layers or not"};
144143
Configurable<bool> applyMSCorrection{"applyMSCorrection", true, "apply ms corrections for secondaries or not"};
145144
Configurable<bool> applyElossCorrection{"applyElossCorrection", true, "apply eloss corrections for secondaries or not"};
@@ -409,35 +408,26 @@ struct OnTheFlyTracker {
409408
rand.SetSeed(seed);
410409

411410
// configure FastTracker
412-
fastTracker.SetMagneticField(magneticField);
413-
fastTracker.SetApplyZacceptance(fastTrackerSettings.applyZacceptance);
414-
fastTracker.SetApplyMSCorrection(fastTrackerSettings.applyMSCorrection);
415-
fastTracker.SetApplyElossCorrection(fastTrackerSettings.applyElossCorrection);
416-
417-
if (fastTrackerSettings.alice3geo.value.empty()) {
418-
switch (fastTrackerSettings.alice3detector) {
419-
case 0:
420-
fastTracker.AddSiliconALICE3v2(fastTrackerSettings.pixelRes);
421-
break;
422-
423-
case 1:
424-
fastTracker.AddSiliconALICE3v4(fastTrackerSettings.pixelRes);
425-
fastTracker.AddTPC(0.1, 0.1);
426-
break;
427-
428-
case 2:
429-
fastTracker.AddSiliconALICE3(fastTrackerSettings.scaleVD, fastTrackerSettings.pixelRes);
430-
break;
431-
432-
default:
433-
break;
411+
if (enableSecondarySmearing) {
412+
fastTracker.SetMagneticField(magneticField);
413+
fastTracker.SetApplyZacceptance(fastTrackerSettings.applyZacceptance);
414+
fastTracker.SetApplyMSCorrection(fastTrackerSettings.applyMSCorrection);
415+
fastTracker.SetApplyElossCorrection(fastTrackerSettings.applyElossCorrection);
416+
417+
if (fastTrackerSettings.alice3geo.value == "0") {
418+
fastTracker.AddSiliconALICE3v2(fastTrackerSettings.pixelRes);
419+
} else if (fastTrackerSettings.alice3geo.value == "1") {
420+
fastTracker.AddSiliconALICE3v4(fastTrackerSettings.pixelRes);
421+
fastTracker.AddTPC(0.1, 0.1);
422+
} else if (fastTrackerSettings.alice3geo.value == "2") {
423+
fastTracker.AddSiliconALICE3(fastTrackerSettings.scaleVD, fastTrackerSettings.pixelRes);
424+
} else {
425+
fastTracker.AddGenericDetector(fastTrackerSettings.alice3geo, ccdb.operator->());
434426
}
435-
} else {
436-
fastTracker.AddGenericDetector(fastTrackerSettings.alice3geo, ccdb.operator->());
437-
}
438427

439-
// print fastTracker settings
440-
fastTracker.Print();
428+
// print fastTracker settings
429+
fastTracker.Print();
430+
}
441431
}
442432

443433
/// Function to decay the xi

0 commit comments

Comments
 (0)