15<output>validationTestNTuple.root</output>
16<contact>Kilian Lieret, Kilian.Lieret@campus.lmu.de</contact>
25if __name__ ==
"__main__":
26 tfile = ROOT.TFile(
"validationTestNTuple.root",
"RECREATE")
31 tntuple = ROOT.TNtuple(
"ntuple_test",
"ntuple test",
"x:y:z:k")
33 array_of_values = array.array(
"f", [23.4, 4.4, 5.12, -23.0, 12, 15, 16])
34 tntuple.Fill(array_of_values)
36 tntuple.SetAlias(
"Description",
"Test default precision")
37 tntuple.SetAlias(
"Check",
"Should display the default of 4 digits.")
38 tntuple.SetAlias(
"Contact",
"Kilian Lieret, Kilian.Lieret@campus.lmu.de")
39 tntuple.SetAlias(
"MetaOptions",
"shifter, some_meta_options")
46 tntuple = ROOT.TNtuple(
"ntuple_expert",
"ntuple expert",
"x:y:z:k")
48 array_of_values = array.array(
"f", [23.4, 4.4, 5.12, -23.0, 12, 15, 16])
49 tntuple.Fill(array_of_values)
51 tntuple.SetAlias(
"Description",
"Test expert ntuple")
52 tntuple.SetAlias(
"Check",
"Should be expert.")
59 tntuple_hp = ROOT.TNtuple(
"ntuple_test_hp",
"ntuple test",
"x:y:z:k")
61 array_of_values = array.array(
"f", [23.4, 4.4, 5.12, -23.0, 12, 15, 16])
62 tntuple_hp.Fill(array_of_values)
64 tntuple_hp.SetAlias(
"Description",
"Test higher precision")
65 tntuple_hp.SetAlias(
"Check",
"Should display 8 digits per float.")
66 tntuple_hp.SetAlias(
"Contact",
"Kilian Lieret, Kilian.Lieret@campus.lmu.de")
67 tntuple_hp.SetAlias(
"MetaOptions",
"float-precision=8")
74 variables =
"l" +
"o" * 200 +
"ngvariable"
75 tntuple_hp = ROOT.TNtuple(
76 "ntuple_test_long_names",
"ntuple test", variables
79 array_of_values = array.array(
"f", [23.4, 4.4, 5.12, -23.0, 12, 15, 16])
80 tntuple_hp.Fill(array_of_values)
82 tntuple_hp.SetAlias(
"Description",
"Test loooooong ntuples")
83 tntuple_hp.SetAlias(
"Check",
"Should display horizontal scrollbar.")
84 tntuple_hp.SetAlias(
"Contact",
"Kilian Lieret, Kilian.Lieret@campus.lmu.de")