Skip to content
Snippets Groups Projects
Commit d3e18d0e authored by Christos Anastopoulos's avatar Christos Anastopoulos Committed by Frank Winklmeier
Browse files

Another try to fix ATLASRECTS-5407

Another try to fix ATLASRECTS-5407
parent 8dd79f4e
No related branches found
No related tags found
No related merge requests found
......@@ -43,10 +43,15 @@ elif ( DetFlags.detdescr.ID_on() ):
GeoModelSvc.DetectorTools['SCT_DetectorTool'].useDynamicAlignFolders = InDetGeometryFlags.useDynamicAlignFolders()
if ( DetFlags.detdescr.TRT_on() ):
if (DetFlags.detdescr.TRT_on()):
from TRT_GeoModel.TRT_GeoModelConf import TRT_DetectorTool
trtDetectorTool = TRT_DetectorTool()
trtDetectorTool.useDynamicAlignFolders = InDetGeometryFlags.useDynamicAlignFolders()
# Use default TRT active gas in geo model unless in simulation.
if not DetFlags.simulate.TRT_on():
trtDetectorTool.DoXenonArgonMixture = False
trtDetectorTool.DoKryptonMixture = False
GeoModelSvc.DetectorTools += [ trtDetectorTool ]
from InDetServMatGeoModel.InDetServMatGeoModelConf import InDetServMatTool
......
......@@ -14,6 +14,13 @@ def TRT_GeoModelCfg(flags):
trtDetectorTool = CompFactory.TRT_DetectorTool()
trtDetectorTool.GeometryDBSvc = db.getPrimary()
trtDetectorTool.useDynamicAlignFolders = flags.GeoModel.Align.Dynamic
# Use default TRT active gas in geo model unless in simulation.
from AthenaConfiguration.Enums import Project, ProductionStep
if (flags.Common.Project is not Project.AthSimulation
and flags.Common.ProductionStep is not ProductionStep.Simulation):
trtDetectorTool.DoXenonArgonMixture = False
trtDetectorTool.DoKryptonMixture = False
from TRT_ConditionsServices.TRT_ConditionsServicesConfig import TRT_StrawStatusSummaryToolCfg
acc.popToolsAndMerge(TRT_StrawStatusSummaryToolCfg(flags, forceLegacyAccess=True)) # FIXME: if we set the tool, things break for unknown reasons
geoModelSvc.DetectorTools += [ trtDetectorTool ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment