Пример #1
0
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)

######################################################
############### HERE DEFINE THE SEQUENCE #############
Пример #2
0
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
if useAlign:
    MuonDetectorTool.UseConditionDb = 1
    #default is 1
else:
    MuonDetectorTool.UseConditionDb = 0
    # override default
MuonDetectorTool.UseAsciiConditionData = 0
#default is 0
#MuonDetectorTool.AlternateASZTFile='asztfile.txt' #if enabled the Alines in Oracle (if any) will not be used
# cutouts
MuonDetectorTool.IncludeCutouts = 1
MuonDetectorTool.IncludeCutoutsBog = 1
MuonDetectorTool.IncludeCtbBis = 1
MuonDetectorTool.EnableFineClashFixing = 0