Definition at line 36 of file geometryXMLtoCSV.py.
def geometryXMLtoCSV.ContentHandler.endElement |
( |
|
self, |
|
|
|
tag |
|
) |
| |
Definition at line 74 of file geometryXMLtoCSV.py.
References edm.print().
75 if tag ==
"operation":
S & print(S &os, JobReport::InputFile const &f)
def endElement(self, tag)
def geometryXMLtoCSV.ContentHandler.startElement |
( |
|
self, |
|
|
|
tag, |
|
|
|
attrib |
|
) |
| |
Definition at line 38 of file geometryXMLtoCSV.py.
References cmsPerfStripChart.dict, and edm.print().
39 attrib =
dict(attrib.items())
40 if "rawId" in attrib:
raise Exception(
"Please use \"rawIds = false\"")
41 if "aa" in attrib:
raise Exception(
"Please use \"survey = false\"")
46 for a
in "wheel",
"station",
"sector",
"superlayer",
"layer":
48 print((
", %s" % attrib[a]), end=
' ')
53 elif tag[0:3] ==
"CSC":
55 for a
in "endcap",
"station",
"ring",
"chamber",
"layer":
57 print((
", %s" % attrib[a]), end=
' ')
62 elif tag ==
"setposition":
63 print((
", %(relativeto)s, %(x)s, %(y)s, %(z)s" % attrib), end=
' ')
65 print((
", phixyz, %(phix)s, %(phiy)s, %(phiz)s" % attrib), end=
' ')
67 print((
", Euler, %(alpha)s, %(beta)s, %(gamma)s" % attrib), end=
' ')
71 print((
", %(xx)s, %(xy)s, %(xz)s, %(yy)s, %(yz)s, %(zz)s" % attrib), end=
' ')
S & print(S &os, JobReport::InputFile const &f)
def startElement(self, tag, attrib)