@@ -139,6 +139,7 @@ struct OnTheFlyTracker {
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" };
141141 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" };
142143 Configurable<bool > applyZacceptance{" applyZacceptance" , false , " apply z limits to detector layers or not" };
143144 Configurable<bool > applyMSCorrection{" applyMSCorrection" , true , " apply ms corrections for secondaries or not" };
144145 Configurable<bool > applyElossCorrection{" applyElossCorrection" , true , " apply eloss corrections for secondaries or not" };
@@ -413,22 +414,26 @@ struct OnTheFlyTracker {
413414 fastTracker.SetApplyMSCorrection (fastTrackerSettings.applyMSCorrection );
414415 fastTracker.SetApplyElossCorrection (fastTrackerSettings.applyElossCorrection );
415416
416- switch (fastTrackerSettings.alice3detector ) {
417- case 0 :
418- fastTracker.AddSiliconALICE3v2 (fastTrackerSettings.pixelRes );
419- break ;
417+ if (fastTrackerSettings.alice3geo .value .empty ()) {
418+ switch (fastTrackerSettings.alice3detector ) {
419+ case 0 :
420+ fastTracker.AddSiliconALICE3v2 (fastTrackerSettings.pixelRes );
421+ break ;
420422
421- case 1 :
422- fastTracker.AddSiliconALICE3v4 (fastTrackerSettings.pixelRes );
423- fastTracker.AddTPC (0.1 , 0.1 );
424- break ;
423+ case 1 :
424+ fastTracker.AddSiliconALICE3v4 (fastTrackerSettings.pixelRes );
425+ fastTracker.AddTPC (0.1 , 0.1 );
426+ break ;
425427
426- case 2 :
427- fastTracker.AddSiliconALICE3 (fastTrackerSettings.scaleVD , fastTrackerSettings.pixelRes );
428- break ;
428+ case 2 :
429+ fastTracker.AddSiliconALICE3 (fastTrackerSettings.scaleVD , fastTrackerSettings.pixelRes );
430+ break ;
429431
430- default :
431- break ;
432+ default :
433+ break ;
434+ }
435+ } else {
436+ fastTracker.AddGenericDetector (fastTrackerSettings.alice3geo , ccdb.operator ->());
432437 }
433438
434439 // print fastTracker settings
0 commit comments