1 import FWCore.ParameterSet.Config
as cms
3 MuonGeometrySanityCheck = cms.EDAnalyzer(
4 "MuonGeometrySanityCheck",
5 printout = cms.string(
"all"),
6 tolerance = cms.double(1e-6),
7 prefix = cms.string(
"CHECK"),
12 def detectors(dt=True, csc=True, me42=False, chambers=True, superlayers=False, layers=False):
15 for wheelName
in "-2",
"-1",
"0",
"+1",
"+2":
16 for stationName
in "1",
"2",
"3",
"4":
18 if stationName ==
"4": numSectors = 14
19 for sectorName
in map(str, range(1, numSectors+1)):
20 name =
"MB" + wheelName +
"/" + stationName +
"/" + sectorName
21 if chambers: output.append(name)
23 superlayerNames =
"1",
"2",
"3" 24 if stationName ==
"4": superlayerNames =
"1",
"3" 25 for superlayerName
in superlayerNames:
26 name =
"MB" + wheelName +
"/" + stationName +
"/" + sectorName +
"/" + superlayerName
27 if superlayers: output.append(name)
29 for layerName
in "1",
"2",
"3",
"4":
30 name =
"MB" + wheelName +
"/" + stationName +
"/" + sectorName +
"/" + superlayerName +
"/" + layerName
31 if layers: output.append(name)
34 for stationName
in "-4",
"-3",
"-2",
"-1",
"+1",
"+2",
"+3",
"+4":
36 if stationName
in (
"-1",
"+1"): ringNames =
"1",
"2",
"3",
"4" 37 for ringName
in ringNames:
39 if stationName +
"/" + ringName
in (
"-4/1",
"-3/1",
"-2/1",
"+2/1",
"+3/1",
"+4/1"): numChambers = 18
40 for chamberName
in map(str, range(1, numChambers+1)):
41 name =
"ME" + stationName +
"/" + ringName +
"/" + chamberName
43 if me42
or stationName +
"/" + ringName
not in (
"-4/2",
"+4/2"):
46 for layerName
in "1",
"2",
"3",
"4",
"5",
"6":
47 name =
"ME" + stationName +
"/" + ringName +
"/" + chamberName +
"/" + layerName
49 if me42
or stationName +
"/" + ringName
not in (
"-4/2",
"+4/2"):
def detectors(dt=True, csc=True, me42=False, chambers=True, superlayers=False, layers=False)