27 from __future__
import print_function
28 from xml.sax
import handler, make_parser
32 print(
"Alignable, wheel, station, sector, superlayer, layer, relativeto, x, y, z, angletype, phix, phiy, phiz, xx, xy, xz, yy, yz, zz")
33 print(
", endcap, station, ring, chamber, layer, , , , , , alpha, beta, gamma, , , , , , ")
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=
' ')
75 if tag ==
"operation":
79 parser = make_parser()
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)