I have several ROOT files containing a TTree with (among others) some branches that are TVector3 objects. I am trying to load the vector components (x, y, z) into a Pandas DataFrame, but I keep getting this error, no matter what I try:
ValueError: cannot interpret branch b'hitPosExtrap' as a Python type
I am trying to use uproot.pandas.iterate
, but also tried with the tree's f[tree_name].array('hitPosExtrap')
method to no avail. Reading the uproot README it looked to me as if it would be able to understand TVector3 objects, but but I guess I am missing something.
Does anyone know a way for me to get the vector components (or some TVector3-like objects) out of these trees?