conddb.addFolderSplitOnline('MUONALIGN','/MUONALIGN/Onl/TGC/SIDEC','/MUONALIGN/TGC/SIDEC') from MuonCondTool.MuonCondToolConf import MuonAlignmentDbTool MuonAlignmentDbTool = MuonAlignmentDbTool("MGM_AlignmentDbTool") MuonAlignmentDbTool.ParlineFolders = ["/MUONALIGN/MDT/BARREL", "/MUONALIGN/MDT/ENDCAP/SIDEA", "/MUONALIGN/MDT/ENDCAP/SIDEC", "/MUONALIGN/TGC/SIDEA", "/MUONALIGN/TGC/SIDEC"] ToolSvc += MuonAlignmentDbTool MGM_AlignmentDbTool = ToolSvc.MGM_AlignmentDbTool MGM_AlignmentDbTool.OutputLevel = DEBUG #***************************************************** HERE setup MuonDetectorManager from MuonGeoModel.MuonGeoModelConf import MuonDetectorTool MuonDetectorTool = MuonDetectorTool() MuonDetectorTool.StationSelection = 0 MuonDetectorTool.SelectedStations = [ "EIL", "B" ] MuonDetectorTool.ControlAlines = GeneralControlAlines MuonDetectorTool.ForceSwitchOnOff_BUILDINERTMATERIALS = 1000; # avoid building the dead matter MuonDetectorTool.ForceSwitchOnOff_MINIMALGEO = 1001; # IMPORTANT: do not account for cutouts (Amdc does not) if useAlign: MuonDetectorTool.UseConditionDb = 1; #default is 1 else: MuonDetectorTool.UseConditionDb = 0; # override default MuonDetectorTool.UseAsciiConditionData = 0; #default is 0 MuonDetectorTool.OutputLevel = DEBUG print MuonDetectorTool MessageSvc.setDebug+=["MGM::MuonDetectorManager::updateAlignment"]
from AthenaCommon.AlgSequence import AthSequencer condSequence = AthSequencer("AthCondSeq") from MuonCondAlg.MuonCondAlgConf import MuonAlignmentCondAlg condSequence += MuonAlignmentCondAlg('MuonAlignmentCondAlg') MuonAlignmentCondAlg.ParlineFolders = [ "/MUONALIGN/MDT/BARREL", "/MUONALIGN/MDT/ENDCAP/SIDEA", "/MUONALIGN/MDT/ENDCAP/SIDEC", "/MUONALIGN/TGC/SIDEA", "/MUONALIGN/TGC/SIDEC" ] MuonAlignmentCondAlg.DumpALines = True MuonAlignmentCondAlg.OutputLevel = DEBUG #***************************************************** HERE setup MuonDetectorManager from MuonGeoModel.MuonGeoModelConf import MuonDetectorTool MuonDetectorTool = MuonDetectorTool() MuonDetectorTool.StationSelection = 0 MuonDetectorTool.SelectedStations = ["EIL", "B"] MuonDetectorTool.ControlAlines = GeneralControlAlines MuonDetectorTool.ForceSwitchOnOff_BUILDINERTMATERIALS = 1000 # avoid building the dead matter MuonDetectorTool.ForceSwitchOnOff_MINIMALGEO = 1001 # IMPORTANT: do not account for cutouts (Amdc does not) if useAlign: MuonDetectorTool.UseConditionDb = 1 #default is 1 else: MuonDetectorTool.UseConditionDb = 0 # override default MuonDetectorTool.UseAsciiConditionData = 0 #default is 0
#***************************************************** HERE override MuonSpectrometer tag from AtlasGeoModel import SetGeometryVersion from GeoModelSvc.GeoModelSvcConf import GeoModelSvc GeoModelSvc = GeoModelSvc() if DetDescrVersion=="ATLAS-GEOTEST" or DetDescrVersion=="ATLAS-GEO-21-00-01": # do nothing print 'NSWGeoSetup: no need to override tag on the MuonSpectrometer Node with ATLAS tag ', DetDescrVersion print 'Be aware that the job is running with NSW TDR setup!' else: GeoModelSvc.MuonVersionOverride="MuonSpectrometer-R.07.00-NSW" print GeoModelSvc #***************************************************** HERE setup MuonDetectorManager from MuonGeoModel.MuonGeoModelConf import MuonDetectorTool MuonDetectorTool = MuonDetectorTool() MuonDetectorTool.StationSelection = 2 MuonDetectorTool.SelectedStations = [ "EIL1" ] MuonDetectorTool.SelectedStations += [ "EIL2" ] MuonDetectorTool.SelectedStations += [ "EIS*" ] MuonDetectorTool.SelectedStations += [ "EIL10" ] MuonDetectorTool.SelectedStations += [ "EIL11" ] MuonDetectorTool.SelectedStations += [ "CSS*" ] MuonDetectorTool.SelectedStations += [ "CSL*" ] MuonDetectorTool.SelectedStations += [ "T4E*" ] MuonDetectorTool.SelectedStations += [ "T4F*" ] from AGDD2GeoSvc.AGDD2GeoSvcConf import AGDDtoGeoSvc Agdd2GeoSvc = AGDDtoGeoSvc() if not "NSWAGDDTool/NewSmallWheel" in Agdd2GeoSvc.Builders:
from AthenaCommon.AlgSequence import AthSequencer condSequence = AthSequencer("AthCondSeq") from MuonCondAlg.MuonCondAlgConf import MuonAlignmentCondAlg condSequence += MuonAlignmentCondAlg('MuonAlignmentCondAlg') MuonAlignmentCondAlg.ParlineFolders = [ "/MUONALIGN/MDT/BARREL", "/MUONALIGN/MDT/ENDCAP/SIDEA", "/MUONALIGN/MDT/ENDCAP/SIDEC", "/MUONALIGN/TGC/SIDEA", "/MUONALIGN/TGC/SIDEC" ] MuonAlignmentCondAlg.DumpALines = False MuonAlignmentCondAlg.OutputLevel = DEBUG #***************************************************** HERE setup MuonDetectorManager from MuonGeoModel.MuonGeoModelConf import MuonDetectorTool MuonDetectorTool = MuonDetectorTool() MuonDetectorTool.StationSelection = 0 MuonDetectorTool.SelectedStations = ["EIL", "B"] MuonDetectorTool.ControlAlines = GeneralControlAlines MuonDetectorTool.ForceSwitchOnOff_BUILDINERTMATERIALS = 1000 # avoid building the dead matter MuonDetectorTool.MinimalGeoFlag = 1 # IMPORTANT: do not account for cutouts in tube position and length (Amdc does not) if sect5: MuonDetectorTool.StationSelection = 1 # default is 0 MuonDetectorTool.SelectedStations = [ "BOL", "EML" ] # irrelevant if stationselection is 0 #MuonDetectorTool.SelectedStations = [ "BOL" ] # irrelevant if stationselection is 0 #MuonDetectorTool.SelectedStations = [ "EML" ] # irrelevant if stationselection is 0 MuonDetectorTool.SelectedStJzz = [1, -1] ######2, 3, 4, 5, 6, 7, 8] MuonDetectorTool.SelectedStJff = [3]
# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration from AthenaCommon.JobProperties import jobproperties from AthenaCommon.DetFlags import DetFlags if (jobproperties.Global.DetGeo() == "ctbh8" or jobproperties.Global.DetGeo() == "ctbh6"): print " CTB layout for Muon Spectrometer is not supported anymore" elif (DetFlags.detdescr.Muon_on()): from GeoModelSvc.GeoModelSvcConf import GeoModelSvc GeoModelSvc = GeoModelSvc() from MuonGeoModel.MuonGeoModelConf import MuonDetectorTool GeoModelSvc.DetectorTools += [MuonDetectorTool()] GeoModelSvc.DetectorTools["MuonDetectorTool"].BuildFromNova = 0 if (not DetFlags.simulate.any_on() or DetFlags.overlay.any_on()): GeoModelSvc.DetectorTools[ "MuonDetectorTool"].TheMuonAlignmentTool = "MuonAlignmentDbTool/MGM_AlignmentDbTool" else: GeoModelSvc.DetectorTools["MuonDetectorTool"].TheMuonAlignmentTool = "" GeoModelSvc.DetectorTools["MuonDetectorTool"].UseConditionDb = 0 GeoModelSvc.DetectorTools["MuonDetectorTool"].UseAsciiConditionData = 0
include("AmdcAth/AmdcAth_jobOptions.py") ###################### try here the DB stuff from IOVDbSvc.CondDB import conddb conddb.addFolder("MUONALIGN", "/MUONALIGN/MDT/BARREL <tag>HEAD</tag>", className='CondAttrListCollection') from AthenaCommon.AlgSequence import AthSequencer condSequence = AthSequencer("AthCondSeq") from MuonCondAlg.MuonCondAlgConf import MuonAlignmentCondAlg condSequence += MuonAlignmentCondAlg('MuonAlignmentCondAlg') MuonAlignmentCondAlg.ParlineFolders = ["/MUONALIGN/MDT/BARREL"] from MuonGeoModel.MuonGeoModelConf import MuonDetectorTool MuonDetectorTool = MuonDetectorTool() MuonDetectorTool.UseConditionDb = 1 MuonDetectorTool.OutputLevel = VERBOSE #MuonDetectorTool.CachingFlag = 1 # default is 1 MuonDetectorTool.FillCacheInitTime = 1 # default is 0 #MuonDetectorTool.StationSelection = 0 # default is 0 #MuonDetectorTool.SelectedStations = [ "EIL", "T", "CSS", "BMS" ] # irrelevant if stationselection is 0 #MuonDetectorTool.ControlAlines = GeneralControlAlines # default is 111111 ############################################################################################### ################################################################### from MuonGeoModelTest.MuonGeoModelTestConf import MuonGMTestOnPrd MuonGMTestOnPrd = MuonGMTestOnPrd() MuonGMTestOnPrd.OutputLevel = DEBUG ###################################################################
def _do_external(self): """Place to handle the external services: GeoModel, IOVDb, frozen showers, etc """ AtlasG4Eng.G4Eng.log.verbose( 'AtlasSimSkeleton._do_external :: starting') from AthenaCommon.AppMgr import ToolSvc, ServiceMgr from Geo2G4.Geo2G4Conf import Geo2G4Svc geo2G4Svc = Geo2G4Svc() theApp.CreateSvc += ["Geo2G4Svc"] ServiceMgr += geo2G4Svc ## Enable top transforms for the ATLAS geometry geo2G4Svc.GetTopTransform = True ## Configure access to the BeamCondSvc if necessary. Assuming ## it should be on always as BeamEffectTransformation is ## currently always switched on, else something like this will ## be required here. from G4AtlasApps.SimFlags import simFlags include("InDetBeamSpotService/BeamCondSvc.py") ## GeoModel stuff ## TODO: Tidy imports etc. from GeoModelSvc.GeoModelSvcConf import GeoModelSvc from AthenaCommon.GlobalFlags import jobproperties from AtlasGeoModel import SetGeometryVersion ## Forward Region Twiss files - needed before geometry setup! if simFlags.ForwardDetectors.statusOn: if DetFlags.geometry.FwdRegion_on(): from AthenaCommon.CfgGetter import getPublicTool from AthenaCommon.AppMgr import ToolSvc ToolSvc += getPublicTool("ForwardRegionProperties") from AtlasGeoModel import GeoModelInit from AtlasGeoModel import SimEnvelopes from GeoModelSvc.GeoModelSvcConf import GeoModelSvc gms = GeoModelSvc() ## Cosmics GeoModel tweaks if jobproperties.Beam.beamType() == 'cosmics' or \ (simFlags.CavernBG.statusOn and not 'Signal' in simFlags.CavernBG.get_Value() ): from CavernInfraGeoModel.CavernInfraGeoModelConf import CavernInfraDetectorTool gms.DetectorTools += [CavernInfraDetectorTool()] ## Protects GeoModelSvc in the simulation from the AlignCallbacks gms.AlignCallbacks = False ## Muon GeoModel tweaks if DetFlags.Muon_on(): ## Turn off caching in the muon system from MuonGeoModel.MuonGeoModelConf import MuonDetectorTool MuonDetectorTool = MuonDetectorTool() MuonDetectorTool.FillCacheInitTime = 0 # default is 1 ## Additional material in the muon system from AGDD2GeoSvc.AGDD2GeoSvcConf import AGDDtoGeoSvc AGDD2Geo = AGDDtoGeoSvc() from AthenaCommon import CfgGetter if not "MuonAGDDTool/MuonSpectrometer" in AGDD2Geo.Builders: ToolSvc += CfgGetter.getPublicTool("MuonSpectrometer", checkType=True) AGDD2Geo.Builders += ["MuonAGDDTool/MuonSpectrometer"] from AtlasGeoModel.MuonGMJobProperties import MuonGeometryFlags if (MuonGeometryFlags.hasSTGC() and MuonGeometryFlags.hasMM()): if not "NSWAGDDTool/NewSmallWheel" in AGDD2Geo.Builders: ToolSvc += CfgGetter.getPublicTool("NewSmallWheel", checkType=True) AGDD2Geo.Builders += ["NSWAGDDTool/NewSmallWheel"] theApp.CreateSvc += ["AGDDtoGeoSvc"] ServiceMgr += AGDD2Geo ## Add configured GeoModelSvc to service manager ServiceMgr += gms ## Run the geometry envelope setup earlier than GeoSD self._do_GeoEnv() #TODO remove AtlasG4Eng.G4Eng.log.verbose('AtlasSimSkeleton._do_external :: done')
conddb.addFolderSplitOnline('MUONALIGN', '/MUONALIGN/Onl/TGC/SIDEC', '/MUONALIGN/TGC/SIDEC') from MuonCondTool.MuonCondToolConf import MuonAlignmentDbTool MuonAlignmentDbTool = MuonAlignmentDbTool("MGM_AlignmentDbTool") MuonAlignmentDbTool.ParlineFolders = [ "/MUONALIGN/MDT/BARREL", "/MUONALIGN/MDT/ENDCAP/SIDEA", "/MUONALIGN/MDT/ENDCAP/SIDEC", "/MUONALIGN/TGC/SIDEA", "/MUONALIGN/TGC/SIDEC" ] ToolSvc += MuonAlignmentDbTool MGM_AlignmentDbTool = ToolSvc.MGM_AlignmentDbTool MGM_AlignmentDbTool.OutputLevel = DEBUG #***************************************************** HERE setup MuonDetectorManager from MuonGeoModel.MuonGeoModelConf import MuonDetectorTool MuonDetectorTool = MuonDetectorTool() # memory management MuonDetectorTool.FillCacheInitTime = 0 # default is 0 #MuonDetectorTool.DumpMemoryBreakDown = True # default is false # selection of active stations MuonDetectorTool.StationSelection = 0 # default is 0 #MuonDetectorTool.SelectedStations = [ "X" ] # irrelevant if stationselection is 0 - this will switch off all stations MuonDetectorTool.SelectedStations = ["EIL", "T", "CSS", "BMS" ] # irrelevant if stationselection is 0 MuonDetectorTool.SelectedStations = ["BOL" ] # irrelevant if stationselection is 0 MuonDetectorTool.SelectedStJzz = [1, -1] MuonDetectorTool.SelectedStJff = [3] # alignment control MuonDetectorTool.ControlAlines = GeneralControlAlines # default is 111111 MuonDetectorTool.DumpAlines = False
# 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
conddb.addFolderSplitOnline('MUONALIGN', '/MUONALIGN/Onl/TGC/SIDEC', '/MUONALIGN/TGC/SIDEC') from MuonCondTool.MuonCondToolConf import MuonAlignmentDbTool MuonAlignmentDbTool = MuonAlignmentDbTool("MGM_AlignmentDbTool") MuonAlignmentDbTool.ParlineFolders = [ "/MUONALIGN/MDT/BARREL", "/MUONALIGN/MDT/ENDCAP/SIDEA", "/MUONALIGN/MDT/ENDCAP/SIDEC", "/MUONALIGN/TGC/SIDEA", "/MUONALIGN/TGC/SIDEC" ] ToolSvc += MuonAlignmentDbTool MGM_AlignmentDbTool = ToolSvc.MGM_AlignmentDbTool MGM_AlignmentDbTool.OutputLevel = DEBUG #***************************************************** HERE setup MuonDetectorManager from MuonGeoModel.MuonGeoModelConf import MuonDetectorTool MuonDetectorTool = MuonDetectorTool() # memory management MuonDetectorTool.FillCacheInitTime = 0 # default is 0 #MuonDetectorTool.DumpMemoryBreakDown = True # default is false # selection of active stations MuonDetectorTool.StationSelection = 1 # default is 0 #MuonDetectorTool.SelectedStations = [ "X" ] # irrelevant if stationselection is 0 - this will switch off all stations #MuonDetectorTool.SelectedStations = [ "EIL", "T", "CSS", "BMS" ] # irrelevant if stationselection is 0 MuonDetectorTool.SelectedStations = ["CSL" ] # irrelevant if stationselection is 0 MuonDetectorTool.SelectedStJzz = [-1, 1] MuonDetectorTool.SelectedStJff = [3] # alignment control MuonDetectorTool.ControlAlines = GeneralControlAlines # default is 111111 MuonDetectorTool.DumpAlines = True if useAlign:
# Set output level threshold #(0=NIL 1=VERBOSE, 2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL ) MessageSvc.OutputLevel = INFO #***************************************************** HERE override MuonSpectrometer tag from AtlasGeoModel import SetGeometryVersion from GeoModelSvc.GeoModelSvcConf import GeoModelSvc GeoModelSvc = GeoModelSvc() #GeoModelSvc.MuonVersionOverride = "MuonSpectrometer-R.01.01.Initial.Light" printfunc(GeoModelSvc) #***************************************************** HERE setup MuonDetectorManager from MuonGeoModel.MuonGeoModelConf import MuonDetectorTool MuonDetectorTool = MuonDetectorTool() MuonDetectorTool.StationSelection = 0 MuonDetectorTool.SelectedStations = ["BOG"] MuonDetectorTool.SelectedStJzz = [3] MuonDetectorTool.SelectedStJff = [6] MuonDetectorTool.ControlAlines = GeneralControlAlines MuonDetectorTool.ForceSwitchOnOff_BUILDINERTMATERIALS = 1000 # avoid building the dead matter MuonDetectorTool.FillCacheInitTime = 1 MuonDetectorTool.DumpMemoryBreakDown = True printfunc(MuonDetectorTool) #***************************************************** HERE setup MuonGMCheck from MuonGeoModelTest.MuonGeoModelTestConf import MuonGMCheck MuonGMCheck = MuonGMCheck()
# Turn off all detector systems except the Muon Spectrometer from AthenaCommon.DetFlags import DetFlags DetFlags.detdescr.all_setOff() DetFlags.detdescr.Muon_setOn() # Select geometry version from AthenaCommon.JobProperties import jobproperties jobproperties.Global.DetDescrVersion = "ATLAS-GEO-08-00-00" # AtlasGeoModel from AtlasGeoModel import SetGeometryVersion from AtlasGeoModel import GeoModelInit # MuonGeoModel from MuonGeoModel.MuonGeoModelConf import MuonDetectorTool MuonDetectorTool = MuonDetectorTool() MuonDetectorTool.UseConditionDb = 0 MuonDetectorTool.OutputLevel = INFO # Setup cabling svc import MuonCnvExample.MuonCablingConfig # Input data set import AthenaPoolCnvSvc.ReadAthenaPool ServiceMgr.EventSelector.InputCollections = [ 'rfio:/castor/cern.ch/grid/atlas/atlasgroupdisk/proj-sit/willocq/1510/digi/MC8.107233.singlepart_mu100.digi.pool.1.root' ] # The number of events to be processed theApp.EvtMax = 100
GeoModelSvc = GeoModelSvc() from AtlasGeoModel.MuonGMJobProperties import MuonGeometryFlags # initialize the MuonIdHelperService from MuonIdHelpers.MuonIdHelpersConf import Muon__MuonIdHelperSvc svcMgr += Muon__MuonIdHelperSvc("MuonIdHelperSvc", HasCSC=MuonGeometryFlags.hasCSC(), HasSTgc=MuonGeometryFlags.hasSTGC(), HasMM=MuonGeometryFlags.hasMM()) # create the MuonDetectorTool (which creates the MuonDetectorManager needed by PadTdsOfflineTool) from MuonGeoModel.MuonGeoModelConf import MuonDetectorTool GeoModelSvc.DetectorTools += [ MuonDetectorTool(HasCSC=MuonGeometryFlags.hasCSC(), HasSTgc=MuonGeometryFlags.hasSTGC(), HasMM=MuonGeometryFlags.hasMM()) ] ####################################### ####################################### # now the trigger related things ####################################### from RegionSelector.RegSelSvcDefault import RegSelSvcDefault svcMgr += RegSelSvcDefault() include('TrigT1NSW/TrigT1NSW_jobOptions.py') #Switch on and off trigger simulaton components sTGC / MicroMegas #October 2019 : MM not working so keep it False until fixed
from AtlasGeoModel import SimEnvelopes from GeoModelSvc.GeoModelSvcConf import GeoModelSvc gms = GeoModelSvc() ## Cosmics GeoModel tweaks if jobproperties.Beam.beamType() == 'cosmics' or \ (simFlags.CavernBG.statusOn and not 'Signal' in simFlags.CavernBG.get_Value() ): from CavernInfraGeoModel.CavernInfraGeoModelConf import CavernInfraDetectorTool gms.DetectorTools += [CavernInfraDetectorTool()] ## Protects GeoModelSvc in the simulation from the AlignCallbacks gms.AlignCallbacks = False ## Muon GeoModel tweaks if DetFlags.Muon_on(): ## Turn off caching in the muon system from MuonGeoModel.MuonGeoModelConf import MuonDetectorTool MuonDetectorTool = MuonDetectorTool() MuonDetectorTool.FillCacheInitTime = 0 # default is 1 if hasattr(simFlags, 'SimulateNewSmallWheel'): if simFlags.SimulateNewSmallWheel(): MuonDetectorTool.StationSelection = 2 MuonDetectorTool.SelectedStations = ["EIL1"] MuonDetectorTool.SelectedStations += ["EIL2"] MuonDetectorTool.SelectedStations += ["EIL6"] MuonDetectorTool.SelectedStations += ["EIL7"] MuonDetectorTool.SelectedStations += ["EIS*"] MuonDetectorTool.SelectedStations += ["EIL10"] MuonDetectorTool.SelectedStations += ["EIL11"] MuonDetectorTool.SelectedStations += ["EIL12"] MuonDetectorTool.SelectedStations += ["EIL17"] MuonDetectorTool.SelectedStations += ["CSS*"] MuonDetectorTool.SelectedStations += ["CSL*"]
conddb.addFolderSplitOnline('MUONALIGN', '/MUONALIGN/Onl/TGC/SIDEC', '/MUONALIGN/TGC/SIDEC') from MuonCondTool.MuonCondToolConf import MuonAlignmentDbTool MuonAlignmentDbTool = MuonAlignmentDbTool("MGM_AlignmentDbTool") MuonAlignmentDbTool.ParlineFolders = [ "/MUONALIGN/MDT/BARREL", "/MUONALIGN/MDT/ENDCAP/SIDEA", "/MUONALIGN/MDT/ENDCAP/SIDEC", "/MUONALIGN/TGC/SIDEA", "/MUONALIGN/TGC/SIDEC" ] ToolSvc += MuonAlignmentDbTool MGM_AlignmentDbTool = ToolSvc.MGM_AlignmentDbTool MGM_AlignmentDbTool.OutputLevel = DEBUG #***************************************************** HERE setup MuonDetectorManager from MuonGeoModel.MuonGeoModelConf import MuonDetectorTool MuonDetectorTool = MuonDetectorTool() # memory management MuonDetectorTool.FillCacheInitTime = 0 # default is 0 #MuonDetectorTool.DumpMemoryBreakDown = True # default is false # selection of active stations MuonDetectorTool.StationSelection = 1 # default is 0 MuonDetectorTool.SelectedStations = [ "X" ] # irrelevant if stationselection is 0 - this will switch off all stations #MuonDetectorTool.SelectedStations = [ "EIL", "T", "CSS", "BMS" ] # irrelevant if stationselection is 0 #MuonDetectorTool.SelectedStations = [ "BIS" ] # irrelevant if stationselection is 0 MuonDetectorTool.SelectedStations = ["T1E", "T4E" ] # irrelevant if stationselection is 0 MuonDetectorTool.SelectedStJzz = [1, 2] MuonDetectorTool.SelectedStJff = [3] # alignment control
DetFlags.detdescr.ID_setOff() DetFlags.detdescr.LAr_setOff() DetFlags.detdescr.Tile_setOff() DetFlags.detdescr.Muon_setOn() # Select geometry version DetDescrVersion = "ATLAS-CSC-01-02-00" from AthenaCommon.JobProperties import jobproperties jobproperties.Global.DetDescrVersion = DetDescrVersion from AtlasGeoModel import SetGeometryVersion from AtlasGeoModel import GeoModelInit ######################################################################## end setup GeoModel from MuonGeoModel.MuonGeoModelConf import MuonDetectorTool MuonDetectorTool = MuonDetectorTool() MuonDetectorTool.UseConditionDb = 0 MuonDetectorTool.OutputLevel = INFO MuonDetectorTool.CachingFlag = 1 # default is 1 MuonDetectorTool.FillCacheInitTime = 1 # default is 0 #MuonDetectorTool.StationSelection = 0 # default is 0 #MuonDetectorTool.SelectedStations = [ "EIL", "T", "CSS", "BMS" ] # irrelevant if stationselection is 0 #MuonDetectorTool.ControlAlines = GeneralControlAlines # default is 111111 ############################################################################################### theApp.EvtMax = 10 import AthenaPoolCnvSvc.ReadAthenaPool ServiceMgr.EventSelector.InputCollections = [ # '/afs/usatlas.bnl.gov/users/dladams/data/calib0.005145.PythiaZmumu.simul.HITS.v12003101_tid003432._00001.pool.root.1'
'/MUONALIGN/TGC/SIDEC', className='CondAttrListCollection') from AthenaCommon.AlgSequence import AthSequencer condSequence = AthSequencer("AthCondSeq") from MuonCondAlg.MuonCondAlgConf import MuonAlignmentCondAlg condSequence += MuonAlignmentCondAlg('MuonAlignmentCondAlg') MuonAlignmentCondAlg.ParlineFolders = [ "/MUONALIGN/MDT/BARREL", "/MUONALIGN/MDT/ENDCAP/SIDEA", "/MUONALIGN/MDT/ENDCAP/SIDEC", "/MUONALIGN/TGC/SIDEA", "/MUONALIGN/TGC/SIDEC" ] #***************************************************** HERE setup MuonDetectorManager from MuonGeoModel.MuonGeoModelConf import MuonDetectorTool MuonDetectorTool = MuonDetectorTool() # memory management MuonDetectorTool.FillCacheInitTime = 0 # default is 0 #MuonDetectorTool.DumpMemoryBreakDown = True # default is false # selection of active stations MuonDetectorTool.StationSelection = 1 # default is 0 #MuonDetectorTool.SelectedStations = [ "X" ] # irrelevant if stationselection is 0 - this will switch off all stations #MuonDetectorTool.SelectedStations = [ "EIL", "T", "CSS", "BMS" ] # irrelevant if stationselection is 0 if sect5: MuonDetectorTool.StationSelection = 1 # default is 0 MuonDetectorTool.SelectedStations = [ "BOL", "EML" ] # irrelevant if stationselection is 0 #MuonDetectorTool.SelectedStations = [ "BOL" ] # irrelevant if stationselection is 0 #MuonDetectorTool.SelectedStations = [ "EML" ] # irrelevant if stationselection is 0 MuonDetectorTool.SelectedStJzz = [-1, 1]
# Set output level threshold #(0=NIL 1=VERBOSE, 2=DEBUG, 3=INFO, 4=WARNING, 5=ERROR, 6=FATAL ) MessageSvc.OutputLevel = INFO #***************************************************** HERE override MuonSpectrometer tag from AtlasGeoModel import SetGeometryVersion from GeoModelSvc.GeoModelSvcConf import GeoModelSvc GeoModelSvc = GeoModelSvc() #GeoModelSvc.MuonVersionOverride = "MuonSpectrometer-R.01.01.Initial.Light" printfunc(GeoModelSvc) #***************************************************** HERE setup MuonDetectorManager from MuonGeoModel.MuonGeoModelConf import MuonDetectorTool MuonDetectorTool = MuonDetectorTool() MuonDetectorTool.StationSelection = 0 MuonDetectorTool.SelectedStations = ["EIL", "B"] MuonDetectorTool.ControlAlines = GeneralControlAlines printfunc(MuonDetectorTool) #***************************************************** HERE setup MuonGMCheck from MuonGeoModelTest.MuonGeoModelTestConf import MuonGMCheck MuonGMCheck = MuonGMCheck() MuonGMCheck.buildMdtRegionSelectorMap = 1 MuonGMCheck.buildRpcRegionSelectorMap = 1 MuonGMCheck.buildTgcRegionSelectorMap = 1 MuonGMCheck.buildCscRegionSelectorMap = 1 printfunc(MuonGMCheck)
MGM_AlignmentDbTool.OutputLevel = DEBUG #***************************************************** HERE override MuonSpectrometer tag from AtlasGeoModel import SetGeometryVersion from GeoModelSvc.GeoModelSvcConf import GeoModelSvc GeoModelSvc = GeoModelSvc() GeoModelSvc.MuonVersionOverride = "MuonSpectrometer-R.07.00" GeoModelSvc.IgnoreTagDifference = True print GeoModelSvc #***************************************************** HERE setup MuonDetectorManager from MuonGeoModel.MuonGeoModelConf import MuonDetectorTool MuonDetectorTool = MuonDetectorTool() MuonDetectorTool.StationSelection = 0 MuonDetectorTool.SelectedStations = ["EIL", "B"] MuonDetectorTool.OutputLevel = VERBOSE MuonDetectorTool.UseConditionDb = 0 print MuonDetectorTool #***************************************************** HERE setup MuonGMCheck from MuonGeoModelTest.MuonGeoModelTestConf import MuonHitRelocation MuonHitRelocation = MuonHitRelocation() MuonHitRelocation.OutputLevel = INFO print MuonHitRelocation