Example #1
0
# 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)
Example #2
0
        "/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
if useAlign:
    MuonDetectorTool.UseConditionDb = 1
    #default is 1
else:
    MuonDetectorTool.UseConditionDb = 0