27 from xml.sax
import handler, make_parser
31 print "Alignable, wheel, station, sector, superlayer, layer, relativeto, x, y, z, angletype, phix, phiy, phiz, xx, xy, xz, yy, yz, zz"
32 print ", endcap, station, ring, chamber, layer, , , , , , alpha, beta, gamma, , , , , , "
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),
74 if tag ==
"operation":
78 parser = make_parser()