Example #1
0
 def setUp(self):
     self.rfile = ROOT.TFile.Open('/tmp/testtree.root')
     self.tree = self.rfile.Get('testtree')
     self.nentries = self.tree.GetEntries()
     # total no of elements in data
     self.ndata = nplotted(self.tree, 'data')
     self.splice = Tsplice(self.tree)
Example #2
0
 def test_layered(self):
     splice = Tsplice(self.splice.reset(), layered=True)
     splice.make_splice('pos_bar', 'bar>0')
     tree = splice.make_splice('data_gt_500', 'data>500')
     self.assertLess(nplotted(tree, 'bar'), 0.5 * self.nentries)