3 from PhysicsTools.HeppyCore.statistics.tree
import Tree
8 fi = TFile(
'tree.root',
'RECREATE')
9 tr = Tree(
'test_tree',
'A test tree')
20 fi = TFile(
'tree.root')
21 tr = fi.Get(
'test_tree')
22 self.assertEqual(tr.GetEntries(), 1)
24 self.assertEqual(tr.a, 4)
27 fi = TFile(
'tree.root')
28 tr = fi.Get(
'test_tree')
30 self.assertEqual(ev.a, 4)
34 if __name__ ==
'__main__':