13from ROOT
import Belle2
15 sys.exit(
"No input .root file with VXDAlignment payload specified!")
17inputroot = sys.argv[1]
18file = ROOT.TFile(inputroot,
"OPEN")
19vxd = file.Get(
"VXDAlignment_CORRECTIONS")
21errfile = ROOT.TFile(str(inputroot).replace(
'VXDAlignment_CORRECTIONS',
'VXDAlignment_ERRORS'),
"OPEN")
22errvxd = errfile.Get(
"VXDAlignment_ERRORS")
29shells = [ying, yang, pat, mat]
30shellnames = [
'PXD Ying',
'PXD Yang',
'SVD Pat',
'SVD Mat']
32params = [1, 2, 3, 4, 5, 6]
33paramnames = [
'x',
'y',
'z',
'alpha',
'beta',
'gamma']
35for ishell, shell
in enumerate(shells):
36 print(
'Half-shell: ', shellnames[ishell])
37 for ipar, param
in enumerate(params):
38 print(paramnames[ipar],
' = ', vxd.get(shell.getID(), param),
' +/- ', errvxd.get(shell.getID(), param))
Class to uniquely identify a any structure of the PXD and SVD.