CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions | Variables
MuonGeometrySanityCheck_cfi Namespace Reference

Functions

def detectors
 

Variables

tuple MuonGeometrySanityCheck
 

Function Documentation

def MuonGeometrySanityCheck_cfi.detectors (   dt = True,
  csc = True,
  me42 = False,
  chambers = True,
  superlayers = False,
  layers = False 
)

Definition at line 13 of file MuonGeometrySanityCheck_cfi.py.

References sistrip::SpyUtilities.range().

Referenced by MTDCPEBase.MTDCPEBase(), TrackingMaterialAnalyser.split(), and DD4hep_TrackingMaterialAnalyser.split().

13 
14 def detectors(dt=True, csc=True, me42=False, chambers=True, superlayers=False, layers=False):
15  output = []
16  if dt:
17  for wheelName in "-2", "-1", "0", "+1", "+2":
18  for stationName in "1", "2", "3", "4":
19  numSectors = 12
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)
24 
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)
30 
31  for layerName in "1", "2", "3", "4":
32  name = "MB" + wheelName + "/" + stationName + "/" + sectorName + "/" + superlayerName + "/" + layerName
33  if layers: output.append(name)
34 
35  if csc:
36  for stationName in "-4", "-3", "-2", "-1", "+1", "+2", "+3", "+4":
37  ringNames = "1", "2"
38  if stationName in ("-1", "+1"): ringNames = "1", "2", "3", "4"
39  for ringName in ringNames:
40  numChambers = 36
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
44  if chambers:
45  if me42 or stationName + "/" + ringName not in ("-4/2", "+4/2"):
46  output.append(name)
47 
48  for layerName in "1", "2", "3", "4", "5", "6":
49  name = "ME" + stationName + "/" + ringName + "/" + chamberName + "/" + layerName
50  if layers:
51  if me42 or stationName + "/" + ringName not in ("-4/2", "+4/2"):
52  output.append(name)
53 
54  return output
const uint16_t range(const Frame &aFrame)

Variable Documentation

tuple MuonGeometrySanityCheck_cfi.MuonGeometrySanityCheck
Initial value:
1 = cms.EDAnalyzer(
2  "MuonGeometrySanityCheck",
3  printout = cms.string("all"),
4  tolerance = cms.double(1e-6),
5  prefix = cms.string("CHECK"),
6  frames = cms.VPSet(),
7  points = cms.VPSet(),
8  )

Definition at line 4 of file MuonGeometrySanityCheck_cfi.py.