Skip to content
Snippets Groups Projects

Unhide counter from mc_trks

Merged Tamas Gal requested to merge add-counter-to-trk into master
1 file
+ 4
2
Compare changes
  • Side-by-side
  • Inline
+ 4
2
@@ -490,11 +490,13 @@ class TestOfflineTracks(unittest.TestCase):
self.f.events[3:5][1].tracks.fitinf[9][2],
)
class TestMisc(unittest.TestCase):
def test_mc_tracks_counter(self):
r = OfflineReader(data_path("gseagen/DAT000001.gSeaGen.1.aa.root"))
np.testing.assert_allclose([1,2,3], r.mc_tracks.counter[0])
np.testing.assert_allclose(
[0, 0, 6, 7, 0, 0, 2, 53, 0, 0, 6, 57, 0], r.mc_tracks.counter[0][:13]
)
class TestBranchIndexingMagic(unittest.TestCase):
Loading