Skip to content
Snippets Groups Projects
Commit 693ce2ff authored by John Derek Chapman's avatar John Derek Chapman Committed by Graeme Stewart
Browse files

python/InDetGM.py: Autosetup to run Argon/Krypton simulation for the TRT....

python/InDetGM.py: Autosetup to run Argon/Krypton simulation for the TRT. Requires TRT_GeoModel-00-02-67 or later. ATLASRECTS-2725. AtlasGeoModel-00-03-42 (AtlasGeoModel-00-03-42)

	* python/InDetGM.py: Autosetup to run Argon/Krypton simulation for
	the TRT. Requires TRT_GeoModel-00-02-67 or later. ATLASRECTS-2725
	* AtlasGeoModel-00-03-42

2016-03-07  John Chapman  <John.Chapman@cern.ch>
	* python/GeoModelInit.py - fix try/except block for
	AthSimulationBase.
	* AtlasGeoModel-00-03-41
parent 580943c0
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,8 @@ def _setupGeoModel(): ...@@ -13,7 +13,8 @@ def _setupGeoModel():
import DetDescrCnvSvc.DetStoreConfig import DetDescrCnvSvc.DetStoreConfig
svcMgr.DetDescrCnvSvc.IdDictFromRDB = True svcMgr.DetDescrCnvSvc.IdDictFromRDB = True
except ImportError: except ImportError:
pass import DetDescrCnvSvc.DetStoreConfig
svcMgr.DetDescrCnvSvc.IdDictFromRDB = True
# Conditions DB setup and TagInfo # Conditions DB setup and TagInfo
from IOVDbSvc.CondDB import conddb from IOVDbSvc.CondDB import conddb
......
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration # Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
# #
# InDet GeoModel initialization # InDet GeoModel initialization
# #
from AthenaCommon.GlobalFlags import globalflags from AthenaCommon.GlobalFlags import globalflags
from AthenaCommon.JobProperties import jobproperties from AthenaCommon.JobProperties import jobproperties
from AthenaCommon.DetFlags import DetFlags from AthenaCommon.DetFlags import DetFlags
from AthenaCommon.AppMgr import ServiceMgr as svcMgr from AthenaCommon.AppMgr import ServiceMgr as svcMgr
from AtlasGeoModel.InDetGMJobProperties import GeometryFlags from AtlasGeoModel.InDetGMJobProperties import GeometryFlags
if GeometryFlags.isSLHC(): if GeometryFlags.isSLHC():
#SLHC specific code #SLHC specific code
from AthenaCommon.AppMgr import ToolSvc from AthenaCommon.AppMgr import ToolSvc
# Treat CTB separately # Treat CTB separately
if ( jobproperties.Global.DetGeo() == "ctbh8" or jobproperties.Global.DetGeo() == "ctbh6" ): if ( jobproperties.Global.DetGeo() == "ctbh8" or jobproperties.Global.DetGeo() == "ctbh6" ):
from AtlasGeoModel import InDetGMCTB from AtlasGeoModel import InDetGMCTB
elif ( DetFlags.detdescr.ID_on() ): elif ( DetFlags.detdescr.ID_on() ):
from GeoModelSvc.GeoModelSvcConf import GeoModelSvc from GeoModelSvc.GeoModelSvcConf import GeoModelSvc
GeoModelSvc = GeoModelSvc() GeoModelSvc = GeoModelSvc()
if not hasattr(svcMgr,'InDetGeometryDBSvc'): if not hasattr(svcMgr,'InDetGeometryDBSvc'):
from GeometryDBSvc.GeometryDBSvcConf import GeometryDBSvc from GeometryDBSvc.GeometryDBSvcConf import GeometryDBSvc
svcMgr+=GeometryDBSvc("InDetGeometryDBSvc") svcMgr+=GeometryDBSvc("InDetGeometryDBSvc")
if GeometryFlags.isSLHC(): if GeometryFlags.isSLHC():
#SLHC specific code #SLHC specific code
# General service builder tool for SLHC # General service builder tool for SLHC
from InDetServMatGeoModel.InDetServMatGeoModelConf import InDetServMatBuilderToolSLHC from InDetServMatGeoModel.InDetServMatGeoModelConf import InDetServMatBuilderToolSLHC
InDetServMatBuilderToolSLHC = InDetServMatBuilderToolSLHC() InDetServMatBuilderToolSLHC = InDetServMatBuilderToolSLHC()
ToolSvc+=InDetServMatBuilderToolSLHC ToolSvc+=InDetServMatBuilderToolSLHC
if ( DetFlags.detdescr.pixel_on() ): if ( DetFlags.detdescr.pixel_on() ):
from AthenaCommon import CfgGetter from AthenaCommon import CfgGetter
GeoModelSvc.DetectorTools += [ CfgGetter.getPrivateTool("PixelDetectorTool", checkType=True) ] GeoModelSvc.DetectorTools += [ CfgGetter.getPrivateTool("PixelDetectorTool", checkType=True) ]
if (DetFlags.detdescr.BCM_on() ) : if (DetFlags.detdescr.BCM_on() ) :
from AthenaCommon.AppMgr import ToolSvc from AthenaCommon.AppMgr import ToolSvc
from BCM_GeoModel.BCM_GeoModelConf import InDetDD__BCM_Builder from BCM_GeoModel.BCM_GeoModelConf import InDetDD__BCM_Builder
bcmTool = InDetDD__BCM_Builder() bcmTool = InDetDD__BCM_Builder()
ToolSvc += bcmTool ToolSvc += bcmTool
GeoModelSvc.DetectorTools['PixelDetectorTool'].BCM_Tool = bcmTool GeoModelSvc.DetectorTools['PixelDetectorTool'].BCM_Tool = bcmTool
from BLM_GeoModel.BLM_GeoModelConf import InDetDD__BLM_Builder from BLM_GeoModel.BLM_GeoModelConf import InDetDD__BLM_Builder
blmTool = InDetDD__BLM_Builder() blmTool = InDetDD__BLM_Builder()
ToolSvc += blmTool ToolSvc += blmTool
GeoModelSvc.DetectorTools['PixelDetectorTool'].BLM_Tool = blmTool GeoModelSvc.DetectorTools['PixelDetectorTool'].BLM_Tool = blmTool
if ( DetFlags.detdescr.SCT_on() ): if ( DetFlags.detdescr.SCT_on() ):
if GeometryFlags.isSLHC(): if GeometryFlags.isSLHC():
#SLHC specific code #SLHC specific code
from SCT_SLHC_GeoModel.SCT_SLHC_GeoModelConf import SCT_SLHC_DetectorTool from SCT_SLHC_GeoModel.SCT_SLHC_GeoModelConf import SCT_SLHC_DetectorTool
sctSLHCTool = SCT_SLHC_DetectorTool() sctSLHCTool = SCT_SLHC_DetectorTool()
GeoModelSvc.DetectorTools += [ sctSLHCTool ] GeoModelSvc.DetectorTools += [ sctSLHCTool ]
...@@ -61,23 +61,27 @@ elif ( DetFlags.detdescr.ID_on() ): ...@@ -61,23 +61,27 @@ elif ( DetFlags.detdescr.ID_on() ):
UseMagFieldSvc = False, UseMagFieldSvc = False,
DetectorName = "SCT") DetectorName = "SCT")
svcMgr+=SCTLorentzAngleSvc svcMgr+=SCTLorentzAngleSvc
else: else:
# Current atlas specific code # Current atlas specific code
from AthenaCommon import CfgGetter from AthenaCommon import CfgGetter
GeoModelSvc.DetectorTools += [ CfgGetter.getPrivateTool("SCT_DetectorTool", checkType=True) ] GeoModelSvc.DetectorTools += [ CfgGetter.getPrivateTool("SCT_DetectorTool", checkType=True) ]
if ( DetFlags.detdescr.TRT_on() ): if ( DetFlags.detdescr.TRT_on() ):
from TRT_GeoModel.TRT_GeoModelConf import TRT_DetectorTool from TRT_GeoModel.TRT_GeoModelConf import TRT_DetectorTool
GeoModelSvc.DetectorTools += [ TRT_DetectorTool() ] trtDetectorTool = TRT_DetectorTool()
if ( DetFlags.simulate.TRT_on() ):
from InDetServMatGeoModel.InDetServMatGeoModelConf import InDetServMatTool trtDetectorTool.DoXenonArgonMixture = True
trtDetectorTool.DoKryptonMixture = True
GeoModelSvc.DetectorTools += [ trtDetectorTool ]
from InDetServMatGeoModel.InDetServMatGeoModelConf import InDetServMatTool
if GeometryFlags.isSLHC(): if GeometryFlags.isSLHC():
#SLHC specific code #SLHC specific code
servMatTool = InDetServMatTool() servMatTool = InDetServMatTool()
GeoModelSvc.DetectorTools += [ servMatTool ] GeoModelSvc.DetectorTools += [ servMatTool ]
servMatTool.ServiceBuilderTool = InDetServMatBuilderToolSLHC servMatTool.ServiceBuilderTool = InDetServMatBuilderToolSLHC
else: else:
GeoModelSvc.DetectorTools += [ InDetServMatTool() ] GeoModelSvc.DetectorTools += [ InDetServMatTool() ]
# Make alignable # Make alignable
from InDetCondFolders import InDetAlignFolders from InDetCondFolders import InDetAlignFolders
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