from AthenaCommon.AlgSequence import AlgSequence job = AlgSequence() # build GeoModel if 'DetDescrVersion' not in dir(): DetDescrVersion = 'ATLAS-P2-ITK-01-00-00' from AthenaCommon.GlobalFlags import globalflags globalflags.DetDescrVersion = DetDescrVersion from AtlasGeoModel import SetGeometryVersion from AtlasGeoModel import GeoModelInit from GeoModelSvc.GeoModelSvcConf import GeoModelSvc GeoModelSvc = GeoModelSvc() ServiceMgr += GeoModelSvc GeoModelSvc.AtlasVersion = DetDescrVersion from IOVDbSvc.CondDB import conddb conddb.setGlobalTag("OFLCOND-MC12-ITK-26-80-25") # switch the material loading off from TrkDetDescrSvc.TrkDetDescrJobProperties import TrkDetFlags TrkDetFlags.MaterialDatabaseLocal = True if TrkDetFlags.MaterialDatabaseLocal() is True: TrkDetFlags.MaterialSource = 'COOL' TrkDetFlags.MaterialVersion = 17 TrkDetFlags.MaterialSubVersion = "" # splitGeo = DetDescrVersion.split('-') # TrkDetFlags.MaterialMagicTag = splitGeo[0] + '-' + splitGeo[1] + '-' + splitGeo[2] TrkDetFlags.MaterialMagicTag = DetDescrVersion TrkDetFlags.MaterialStoreGateKey = '/GLOBAL/TrackingGeo/LayerMaterialITK'
from AthenaCommon.AlgSequence import AlgSequence job = AlgSequence() # build GeoModel if 'DetDescrVersion' not in dir(): DetDescrVersion = 'ATLAS-P2-ITK-01-00-00' from AthenaCommon.GlobalFlags import globalflags globalflags.DetDescrVersion = DetDescrVersion from AtlasGeoModel import GeoModelInit from GeoModelSvc.GeoModelSvcConf import GeoModelSvc GeoModelSvc = GeoModelSvc() ServiceMgr += GeoModelSvc GeoModelSvc.AtlasVersion = globalflags.DetDescrVersion() from AthenaCommon.AppMgr import ServiceMgr as svcMgr svcMgr += GeoModelSvc from IOVDbSvc.CondDB import conddb conddb.setGlobalTag("OFLCOND-MC12-ITK-21-80-25") # Tracking specifications #################################### from TrkDetDescrSvc.TrkDetDescrJobProperties import TrkDetFlags TrkDetFlags.MaterialVersion = 17 TrkDetFlags.MaterialSource = 'None' TrkDetFlags.SLHC_Geometry = True # material binning for ID # - longitudinal
include("LArAthenaPool/LArAthenaPool_joboptions.py") include("TileEventAthenaPool/TileEventAthenaPool_joboptions.py") include("G4SimAthenaPOOL/G4SimAthenaPOOL_joboptions.py") # # Pool input # from AthenaCommon.AppMgr import ServiceMgr as svcMgr svcMgr.EventSelector.InputCollections = ["ctb_CaloDigit.pool.root"] # the Tile, LAr and Calo detector description package from AtlasGeoModel import SetGeometryVersion from GeoModelSvc.GeoModelSvcConf import GeoModelSvc GeoModelSvc = GeoModelSvc() GeoModelSvc.AtlasVersion = "ATLAS-CTB-01" CTBforTTCellMap = True from AtlasGeoModel import GeoModelInit #configure LAr to read from OFLP200 from LArConditionsCommon.LArCondFlags import larCondFlags larCondFlags.LArDBConnection = "<dbConnection>COOLONL_LAR/OFLP200</dbConnection>" include("LArDetDescr/LArDetDescr_H8_joboptions.py") from AthenaCommon.GlobalFlags import jobproperties jobproperties.Global.DetDescrVersion = 'CTB' DetDescrVersion = "CTB" # difference is in the IDET tag which is not defined from the jo above and which is found in the input file ServiceMgr.GeoModelSvc.IgnoreTagDifference = True
# Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration from AtlasGeoModel import GeoModelInit from GeoModelSvc.GeoModelSvcConf import GeoModelSvc GeoModelSvc = GeoModelSvc() from MuonGeoModel.MuonGeoModelConf import MuonDetectorTool GeoModelSvc.DetectorTools += [ MuonDetectorTool(HasSTgc=False, HasMM=False) ] GeoModelSvc.SupportedGeometry=21 GeoModelSvc.AtlasVersion='ATLAS-R2-2016-01-00-01' try: if database_layout: GeoModelSvc.MuonVersionOverride=database_layout except NameError: pass theApp.CreateSvc += ["GeoModelSvc"] ServiceMgr += GeoModelSvc
GeoModelSvc = GeoModelSvc() ServiceMgr += GeoModelSvc theApp.CreateSvc += ["GeoModelSvc"] #load all identifiers #include( "TileIdCnv/TileIdCnv_jobOptions.py" ) #include( "CaloIdCnv/CaloIdCnv_joboptions.py" ) from TileGeoModel.TileGeoModelConf import TileDetectorTool GeoModelSvc.DetectorTools += [TileDetectorTool()] from AthenaCommon.GlobalFlags import jobproperties detDescrVersion = jobproperties.Global.DetDescrVersion() # Setup geometry version GeoModelSvc.AtlasVersion = detDescrVersion # for TileCal all versions are identical # so let's load just the DC3 default GeoModelSvc.TileVersionOverride = "TileCal-DC3-00" if (detDescrVersion.startswith("ctb") or detDescrVersion.startswith("CTB") or detDescrVersion.startswith("ATLAS-CTB")): GeoModelSvc.TileDetectorTool.TestBeam = TRUE GeoModelSvc.AtlasVersion = "ATLAS-CTB-00" GeoModelSvc.TileVersionOverride = "TileTB-3B3EB-00" ############################################################### # # End of job options file # ###############################################################
DDversion = jobproperties.Global.DetDescrVersion() from GeoModelSvc.GeoModelSvcConf import GeoModelSvc from DetDescrCnvSvc.DetDescrCnvSvcConf import DetDescrCnvSvc GeoModelSvc = GeoModelSvc() DetDescrCnvSvc = DetDescrCnvSvc() DataSrc = jobproperties.Global.DataSource() DGeo = jobproperties.Global.DetGeo() if (DGeo == "ctbh8"): DDversion = "CTB" elif (DDversion == "CTB"): GeoModelSvc.AtlasVersion = "ATLAS-CTB-01" if (DetFlags.Tile_on()): GeoModelSvc.TileVersionOverride = "TileTB-3B-00" DetDescrCnvSvc.InDetIDFileName = "IdDictParser/IdDictInnerDetector_CTB2004.xml" DetDescrCnvSvc.MuonIDFileName = "IdDictMuonSpectrometer_H8_2004.xml" elif (DDversion == "ATLAS-H6-2004-00"): GeoModelSvc.AtlasVersion = "ATLAS-H6-2004-00" DetFlags.ID_setOff() DetFlags.Muon_setOff() DetFlags.Tile_setOff() elif (DDversion == "ATLAS-H6-2003-00"): GeoModelSvc.AtlasVersion = "ATLAS-H6-2003-00" DetFlags.HEC_setOff()