13<output>validationTestNTuple.root</output>
14<contact>Kilian Lieret, Kilian.Lieret@campus.lmu.de</contact>
23if __name__ ==
"__main__":
24 tfile = ROOT.TFile(
"validationTestNTuple.root",
"RECREATE")
29 tntuple = ROOT.TNtuple(
"ntuple_test",
"ntuple test",
"x:y:z:k")
31 array_of_values = array.array(
"f", [23.4, 4.4, 5.12, -23.0, 12, 15, 16])
32 tntuple.Fill(array_of_values)
34 tntuple.SetAlias(
"Description",
"Test default precision")
35 tntuple.SetAlias(
"Check",
"Should display the default of 4 digits.")
36 tntuple.SetAlias(
"Contact",
"Kilian Lieret, Kilian.Lieret@campus.lmu.de")
37 tntuple.SetAlias(
"MetaOptions",
"shifter, some_meta_options")
44 tntuple = ROOT.TNtuple(
"ntuple_expert",
"ntuple expert",
"x:y:z:k")
46 array_of_values = array.array(
"f", [23.4, 4.4, 5.12, -23.0, 12, 15, 16])
47 tntuple.Fill(array_of_values)
49 tntuple.SetAlias(
"Description",
"Test expert ntuple")
50 tntuple.SetAlias(
"Check",
"Should be expert.")
57 tntuple_hp = ROOT.TNtuple(
"ntuple_test_hp",
"ntuple test",
"x:y:z:k")
59 array_of_values = array.array(
"f", [23.4, 4.4, 5.12, -23.0, 12, 15, 16])
60 tntuple_hp.Fill(array_of_values)
62 tntuple_hp.SetAlias(
"Description",
"Test higher precision")
63 tntuple_hp.SetAlias(
"Check",
"Should display 8 digits per float.")
64 tntuple_hp.SetAlias(
"Contact",
"Kilian Lieret, Kilian.Lieret@campus.lmu.de")
65 tntuple_hp.SetAlias(
"MetaOptions",
"float-precision=8")
72 variables =
"l" +
"o" * 200 +
"ngvariable"
73 tntuple_hp = ROOT.TNtuple(
74 "ntuple_test_long_names",
"ntuple test", variables
77 array_of_values = array.array(
"f", [23.4, 4.4, 5.12, -23.0, 12, 15, 16])
78 tntuple_hp.Fill(array_of_values)
80 tntuple_hp.SetAlias(
"Description",
"Test loooooong ntuples")
81 tntuple_hp.SetAlias(
"Check",
"Should display horizontal scrollbar.")
82 tntuple_hp.SetAlias(
"Contact",
"Kilian Lieret, Kilian.Lieret@campus.lmu.de")