Definition at line 35 of file geometryXMLtoCSV.py.
def geometryXMLtoCSV.ContentHandler.endElement |
( |
|
self, |
|
|
|
tag |
|
) |
| |
def geometryXMLtoCSV.ContentHandler.startElement |
( |
|
self, |
|
|
|
tag, |
|
|
|
attrib |
|
) |
| |
Definition at line 37 of file geometryXMLtoCSV.py.
References cmsPerfStripChart.dict.
38 attrib =
dict(attrib.items())
39 if "rawId" in attrib:
raise Exception(
"Please use \"rawIds = false\"")
40 if "aa" in attrib:
raise Exception(
"Please use \"survey = false\"")
45 for a
in "wheel",
"station",
"sector",
"superlayer",
"layer":
47 print (
", %s" % attrib[a]),
52 elif tag[0:3] ==
"CSC":
54 for a
in "endcap",
"station",
"ring",
"chamber",
"layer":
56 print (
", %s" % attrib[a]),
61 elif tag ==
"setposition":
62 print (
", %(relativeto)s, %(x)s, %(y)s, %(z)s" % attrib),
64 print (
", phixyz, %(phix)s, %(phiy)s, %(phiz)s" % attrib),
66 print (
", Euler, %(alpha)s, %(beta)s, %(gamma)s" % attrib),
70 print (
", %(xx)s, %(xy)s, %(xz)s, %(yy)s, %(yz)s, %(zz)s" % attrib),
def startElement(self, tag, attrib)