Definition at line 13 of file MuonGeometrySanityCheck_cfi.py.
References sistrip::SpyUtilities.range().
Referenced by MTDCPEBase.MTDCPEBase(), TrackingMaterialAnalyser.split(), and DD4hep_TrackingMaterialAnalyser.split().
14 def detectors(dt=True, csc=True, me42=False, chambers=True, superlayers=False, layers=False):
17 for wheelName
in "-2",
"-1",
"0",
"+1",
"+2":
18 for stationName
in "1",
"2",
"3",
"4":
20 if stationName ==
"4": numSectors = 14
21 for sectorName
in map(str, list(
range(1, numSectors+1))):
22 name =
"MB" + wheelName +
"/" + stationName +
"/" + sectorName
23 if chambers: output.append(name)
25 superlayerNames =
"1",
"2",
"3"
26 if stationName ==
"4": superlayerNames =
"1",
"3"
27 for superlayerName
in superlayerNames:
28 name =
"MB" + wheelName +
"/" + stationName +
"/" + sectorName +
"/" + superlayerName
29 if superlayers: output.append(name)
31 for layerName
in "1",
"2",
"3",
"4":
32 name =
"MB" + wheelName +
"/" + stationName +
"/" + sectorName +
"/" + superlayerName +
"/" + layerName
33 if layers: output.append(name)
36 for stationName
in "-4",
"-3",
"-2",
"-1",
"+1",
"+2",
"+3",
"+4":
38 if stationName
in (
"-1",
"+1"): ringNames =
"1",
"2",
"3",
"4"
39 for ringName
in ringNames:
41 if stationName +
"/" + ringName
in (
"-4/1",
"-3/1",
"-2/1",
"+2/1",
"+3/1",
"+4/1"): numChambers = 18
42 for chamberName
in map(str, list(
range(1, numChambers+1))):
43 name =
"ME" + stationName +
"/" + ringName +
"/" + chamberName
45 if me42
or stationName +
"/" + ringName
not in (
"-4/2",
"+4/2"):
48 for layerName
in "1",
"2",
"3",
"4",
"5",
"6":
49 name =
"ME" + stationName +
"/" + ringName +
"/" + chamberName +
"/" + layerName
51 if me42
or stationName +
"/" + ringName
not in (
"-4/2",
"+4/2"):
const uint16_t range(const Frame &aFrame)