Skip to content
Snippets Groups Projects
Commit 0106cc55 authored by Nicholas Styles's avatar Nicholas Styles
Browse files

Add intial ITk flags implementation, and use to steer loading of local Geometry XML files

parent cbfb9e66
6 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!36629Add intial ITk flags implementation, and use to steer loading of local Geometry XML files
......@@ -167,7 +167,12 @@ def _createCfgFlags():
def __indet():
from InDetConfig.InDetConfigFlags import createInDetConfigFlags
return createInDetConfigFlags()
_addFlagsCategory(acf, "InDet", __indet, 'InDetConfig' )
_addFlagsCategory(acf, "InDet", __indet, 'InDetConfig' )
def __itk():
from InDetConfig.ITkConfigFlags import createITkConfigFlags
return createITkConfigFlags()
_addFlagsCategory(acf, "ITk", __itk, 'InDetConfig' )
def __muon():
from MuonConfig.MuonConfigFlags import createMuonConfigFlags
......
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
from AthenaConfiguration.AthConfigFlags import AthConfigFlags
# TODO: clean up flags, should only contain general settings but no alg config
# TODO : Add some exta levels?
def createITkConfigFlags():
itkcf=AthConfigFlags()
itkcf.addFlag("ITk.useLocalGeometry", False) #take geometry XML files from local instance rather than Detector Database, for development
itkcf.addFlag("ITk.stripGeometryFilename", 'ITkStrip.gmx')
return itkcf
......@@ -15,6 +15,9 @@ def ITkStripGeometryCfg( flags ):
#ITkStripDetectorTool.useDynamicAlignFolders = flags.GeoModel.Align.Dynamic
ITkStripDetectorTool.Alignable = False # make this a flag? Set true as soon as decided on folder structure
ITkStripDetectorTool.DetectorName = "ITkStrip"
if flags.ITk.useLocalGeometry:
#Setting this filename triggers reading from local file rather than DB
ITkStripDetectorTool.GmxFilename = flags.ITk.stripGeometryFilename
geoModelSvc.DetectorTools += [ ITkStripDetectorTool ]
"""
......
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