I have a *.root file I'm trying to read into Python with uproot (uproot4). It looks like this:
>>> data = up.open('file.root')
>>> data.keys()
['ring_sums;1', 'tpc_multiplicity;1', 'impact_parameter;1']
>>> data['ring_sums']
<TMatrixT<double> (version 4) at 0x0205b219d748>
How can I read a TMatrixT type? Using .keys(), .values(), and .items() doesn't work.
>>> data['ring_sums'].values()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
AttributeError: 'Model_TMatrixT_3c_double_3e__v4' object has no attribute 'values'
What's the proper way to read out the data into an awkward array, pandas dataframe, or numpy array?