Hi,
I’m saving a value to a Rootfile as a TVector Object. Problem is I do not know how to retrieve the stored value. I also use uproot to read and write to files.
import ROOT
import uproot
file = uproot.recreate('myfile.root')
valueToStore = 100
vec = ROOT.TVector(valueToStore)
#Writing to rootfile
file['myvector'] = vec
file.close()
Trying to retrieve the value:
file = uproot.open('myfile.root')
value = file.get('myvector')
This prints:
<Unknown TVectorT<float> at 0x7f1037383f70>
How do I get the value from this? Appreciate the help!