Definition at line 36 of file geometryXMLtoCSV.py.
◆ endElement()
def geometryXMLtoCSV.ContentHandler.endElement |
( |
|
self, |
|
|
|
tag |
|
) |
| |
Definition at line 74 of file geometryXMLtoCSV.py.
References print().
74 def endElement(self, tag):
75 if tag ==
"operation":
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)
◆ startElement()
def geometryXMLtoCSV.ContentHandler.startElement |
( |
|
self, |
|
|
|
tag, |
|
|
|
attrib |
|
) |
| |
Definition at line 38 of file geometryXMLtoCSV.py.
References print().
38 def startElement(self, tag, attrib):
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=
' ')
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)