test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
geometrydata.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 
3 ##########################################################################
4 # Geometry data
5 ##
6 
8  """ Class which holds the geometry data of a ObjId
9  """
10 
11  def __init__(self, name, subdetid, discriminator, ndiscriminator):
12  self.name = name
13  self.subdetid = subdetid
14  self.discriminator = discriminator
15  self.ndiscriminator = ndiscriminator
16 
17 # ObjId names from http://cmslxr.fnal.gov/lxr/source/Alignment/CommonAlignment/interface/StructureType.h
18 data = {-1: GeometryData("notfound", 0, [], []),
19  0: GeometryData("invalid", 0, [], []),
20  1: GeometryData("AlignableDetUnit", 0, [], []),
21  2: GeometryData("AlignableDet", 0, [], []),
22  3: GeometryData("TPBModule", 1, [], []),
23  4: GeometryData("TPBLadder", 1, ["half", "layer", "rod"], [2, 3, 44]),
24  5: GeometryData("TPBLayer", 1, ["half", "layer"], [2, 3]),
25  6: GeometryData("TPBHalfBarrel", 1, ["half"], [2]),
26  7: GeometryData("TPBBarrel", 1, [], []),
27  8: GeometryData("TPEModule", 2, [], []),
28  9: GeometryData("TPEPanel", 2, ["side", "half", "layer", "blade", "panel"], [2, 2, 2, 24, 2]),
29  10: GeometryData("TPEBlade", 2, ["side", "half", "layer", "blade"], [2, 2, 2, 24]),
30  11: GeometryData("TPEHalfDisk", 2, ["side", "half", "layer"], [2, 2, 2]),
31  12: GeometryData("TPEHalfCylind", 2, ["side", "half"], [2, 2]),
32  13: GeometryData("TPEEndcap", 2, ["side"], [2]),
33  14: GeometryData("TIBModule", 3, [], []),
34  15: GeometryData("TIBString", 3, [], []),
35  16: GeometryData("TIBSurface", 3, ["side", "layer", "half", "outerinner"], [2, 4, 2, 2]),
36  17: GeometryData("TIBHalfShell", 3, ["side", "layer", "half"], [2, 4, 2]),
37  18: GeometryData("TIBLayer", 3, ["side", "layer"], [2, 4]),
38  19: GeometryData("TIBHalfBarrel", 3, ["side"], [2]),
39  20: GeometryData("TIBBarrel", 3, [], []),
40  21: GeometryData("TIDModule", 4, [], []),
41  22: GeometryData("TIDSide", 4, ["side", "layer", "ring", "outerinner"], [2, 3, 3, 2]),
42  23: GeometryData("TIDRing", 4, ["side", "layer", "ring"], [2, 3, 3]),
43  24: GeometryData("TIDDisk", 4, ["side", "layer"], [2, 3]),
44  25: GeometryData("TIDEndcap", 4, ["side"], [2]),
45  26: GeometryData("TOBModule", 5, [], []),
46  27: GeometryData("TOBRod", 5, ["side", "layer", "rod"], [2, 6, 74]),
47  28: GeometryData("TOBLayer", 5, ["side", "layer"], [2, 6]),
48  29: GeometryData("TOBHalfBarrel", 5, ["side"], [2]),
49  30: GeometryData("TOBBarrel", 5, [], []),
50  31: GeometryData("TECModule", 6, [], []),
51  32: GeometryData("TECRing", 6, ["side", "layer", "outerinner", "petal", "ring"], [2, 9, 2, 7]),
52  33: GeometryData("TECPetal", 6, ["side", "layer", "outerinner", "petal"], [2, 9, 2, 8]),
53  34: GeometryData("TECSide", 6, ["side", "layer", "outerinner"], [2, 9, 2]),
54  35: GeometryData("TECDisk", 6, ["side", "layer"], [2, 9]),
55  36: GeometryData("TECEndcap", 6, ["side"], [2]),
56  37: GeometryData("Pixel", 0, [], []),
57  38: GeometryData("Strip", 0, [], []),
58  39: GeometryData("Tracker", 0, [], []),
59  100: GeometryData("AlignableDTBarrel", 0, [], []),
60  101: GeometryData("AlignableDTWheel", 0, [], []),
61  102: GeometryData("AlignableDTStation", 0, [], []),
62  103: GeometryData("AlignableDTChamber", 0, [], []),
63  104: GeometryData("AlignableDTSuperLayer", 0, [], []),
64  105: GeometryData("AlignableDTLayer", 0, [], []),
65  106: GeometryData("AlignableCSCEndcap", 0, [], []),
66  107: GeometryData("AlignableCSCStation", 0, [], []),
67  108: GeometryData("AlignableCSCRing", 0, [], []),
68  109: GeometryData("AlignableCSCChamber", 0, [], []),
69  110: GeometryData("AlignableCSCLayer", 0, [], []),
70  111: GeometryData("AlignableMuon", 0, [], []),
71  112: GeometryData("Detector", 0, [], []),
72  1000: GeometryData("Extras", 0, [], []),
73  1001: GeometryData("BeamSpot", 0, [], [])
74  }