Functions | |
def | detectors |
Variables | |
tuple | MuonGeometrySanityCheck |
def MuonGeometrySanityCheck_cfi::detectors | ( | dt = True , |
|
csc = True , |
|||
me42 = False , |
|||
chambers = True , |
|||
superlayers = False , |
|||
layers = False |
|||
) |
Definition at line 12 of file MuonGeometrySanityCheck_cfi.py.
Referenced by TrackingMaterialAnalyser::split().
00013 : 00014 output = [] 00015 if dt: 00016 for wheelName in "-2", "-1", "0", "+1", "+2": 00017 for stationName in "1", "2", "3", "4": 00018 numSectors = 12 00019 if stationName == "4": numSectors = 14 00020 for sectorName in map(str, range(1, numSectors+1)): 00021 name = "MB" + wheelName + "/" + stationName + "/" + sectorName 00022 if chambers: output.append(name) 00023 00024 superlayerNames = "1", "2", "3" 00025 if stationName == "4": superlayerNames = "1", "3" 00026 for superlayerName in superlayerNames: 00027 name = "MB" + wheelName + "/" + stationName + "/" + sectorName + "/" + superlayerName 00028 if superlayers: output.append(name) 00029 00030 for layerName in "1", "2", "3", "4": 00031 name = "MB" + wheelName + "/" + stationName + "/" + sectorName + "/" + superlayerName + "/" + layerName 00032 if layers: output.append(name) 00033 00034 if csc: 00035 for stationName in "-4", "-3", "-2", "-1", "+1", "+2", "+3", "+4": 00036 ringNames = "1", "2" 00037 if stationName in ("-1", "+1"): ringNames = "1", "2", "3", "4" 00038 for ringName in ringNames: 00039 numChambers = 36 00040 if stationName + "/" + ringName in ("-4/1", "-3/1", "-2/1", "+2/1", "+3/1", "+4/1"): numChambers = 18 00041 for chamberName in map(str, range(1, numChambers+1)): 00042 name = "ME" + stationName + "/" + ringName + "/" + chamberName 00043 if chambers: 00044 if me42 or stationName + "/" + ringName not in ("-4/2", "+4/2"): 00045 output.append(name) 00046 00047 for layerName in "1", "2", "3", "4", "5", "6": 00048 name = "ME" + stationName + "/" + ringName + "/" + chamberName + "/" + layerName 00049 if layers: 00050 if me42 or stationName + "/" + ringName not in ("-4/2", "+4/2"): 00051 output.append(name) 00052 00053 return output
00001 cms.EDAnalyzer( 00002 "MuonGeometrySanityCheck", 00003 printout = cms.string("all"), 00004 tolerance = cms.double(1e-6), 00005 prefix = cms.string("CHECK"), 00006 frames = cms.VPSet(), 00007 points = cms.VPSet(), 00008 )
Definition at line 3 of file MuonGeometrySanityCheck_cfi.py.