From d6f9fb7cd7f11a213e4ce57824fa5a3985e51fd5 Mon Sep 17 00:00:00 2001
From: Dave Casper <dcasper@uci.edu>
Date: Wed, 5 Oct 2022 08:08:02 -0700
Subject: [PATCH] Fixes to load tracker geometry and conditions

---
 Derviation/DerivationAlgs/share/run_streaming.py | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/Derviation/DerivationAlgs/share/run_streaming.py b/Derviation/DerivationAlgs/share/run_streaming.py
index 7ec4d11aa..3ebacb789 100644
--- a/Derviation/DerivationAlgs/share/run_streaming.py
+++ b/Derviation/DerivationAlgs/share/run_streaming.py
@@ -13,6 +13,7 @@ if __name__ == "__main__":
     from CalypsoConfiguration.MainServicesConfig import MainServicesCfg
     from AthenaPoolCnvSvc.PoolReadConfig import PoolReadCfg
     from AthenaPoolCnvSvc.PoolWriteConfig import PoolWriteCfg
+    from FaserGeoModel.FaserGeoModelConfig import FaserGeometryCfg
 
     # Set up logging and new style config
     log.setLevel(DEBUG)
@@ -42,6 +43,7 @@ if __name__ == "__main__":
     cfg = MainServicesCfg(ConfigFlags)
     cfg.merge(PoolReadCfg(ConfigFlags))
     cfg.merge(PoolWriteCfg(ConfigFlags))
+    cfg.merge(FaserGeometryCfg(ConfigFlags))
 
     # Derivations
 
@@ -75,12 +77,12 @@ if __name__ == "__main__":
               )              
                                                   
 
-#     # Hack to avoid problem with our use of MC databases when isMC = False
-#     replicaSvc = acc.getService("DBReplicaSvc")
-#     replicaSvc.COOLSQLiteVetoPattern = ""
-#     replicaSvc.UseCOOLSQLite = True
-#     replicaSvc.UseCOOLFrontier = False
-#     replicaSvc.UseGeomSQLite = True
+    # Hack to avoid problem with our use of MC databases when isMC = False
+    replicaSvc = cfg.getService("DBReplicaSvc")
+    replicaSvc.COOLSQLiteVetoPattern = ""
+    replicaSvc.UseCOOLSQLite = True
+    replicaSvc.UseCOOLFrontier = False
+    replicaSvc.UseGeomSQLite = True
 
     # Execute and finish
     cfg.printConfig(withDetails = True, summariseProps = True, printDefaults = True)
-- 
GitLab