diff --git a/Event/PyDumper/python/Dumpers.py b/Event/PyDumper/python/Dumpers.py index 588e01a1d57e8755c88db35c596d6863d2563519..704474e1e00198228700e01d929113b856840fe8 100644 --- a/Event/PyDumper/python/Dumpers.py +++ b/Event/PyDumper/python/Dumpers.py @@ -2643,7 +2643,12 @@ def dump_MVFVxTrackAtVertex (t, f): def dump_VxCandidate1 (v, f): dump_RecVertex (v.recVertex(), f) - for t in v.vxTrackAtVertex(): + # Use this rather than iterating over the tav vector directly. + # With recent pyroot versions, the object doesn't get converted + # to the dynamic type. + tav = v.vxTrackAtVertex() + for i in range(tav.size()): + t = tav[i] fprint (f, '\n ', typename(t.__class__)) if isinstance (t, PyAthena.Trk.MVFVxTrackAtVertex): dump_MVFVxTrackAtVertex (t, f)