示例#1
0
class EventsTFileTestCase(unittest.TestCase):
    def setUp(self):
        self.fname = create_tree()
        rootfile = TFile(self.fname)
        self.events = Events(testfname, 'test_tree')

    def test(self):
        event = self.events.to(2)
        for iev, ev in enumerate(self.events):
            self.assertEqual(iev, ev.var1)
示例#2
0
class EventsTFileTestCase(unittest.TestCase):

    def setUp(self):
        self.fname = create_tree()
        rootfile = TFile(self.fname)
        self.events = Events(testfname, 'test_tree')

    def test(self):
        event = self.events.to(2)
        for iev, ev in enumerate(self.events):
            self.assertEqual(iev, ev.var1)
示例#3
0
 def setUp(self):
     self.fname = create_tree()
     rootfile = TFile(self.fname)
     self.events = Events(testfname, 'test_tree')
示例#4
0
 def test(self):
     events = Events(testfname, 'test_tree')
     event = events.to(2)
     for iev, ev in enumerate(events):
         self.assertEqual(iev, ev.var1)
示例#5
0
 def test(self):
     events = Events(testfname, 'test_tree')
     event = events.to(2)
     for iev, ev in enumerate(events):
         self.assertEqual(iev, ev.var1)