@@ -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