extendcreates 1 TBasket in every TBranch. (You have to supply an array for every TBranch in each call to
extend, so that they're all kept the same length at all times. TTrees don't have TBranches with different numbers of entries.)
Hej, I have a short question regarding the reading of a single integer value. I opened a root file via
root_dir = uproot.open(file_path) and try to load now a single integer value which is written into another sub-directory:
events_dir = root_dir['events'] events_dir['nbevents']
While I could swear, that a few versions ago this syntax directly returned an integer value, I now get back the following:
<TParameter<int> (version 2) at 0x7f276abefca0>
My current uproot version is 4.0.2, but I do not remember the previous one I used. I am also not sure whether I remember it correctly, but either way could you tell me how I can access the stored value? Already, thanks a lot in advance.
TParameter<int>class so that you could access the integer with
.member("fVal"), which only fetches that one).
TParameter<int>in it? (GitHub accepts ROOT files if they're renamed to end in
events/nbevents. But if you like I can also upload it in a new request for uproot4.