ROOT Version: 6.32.08 and 6.34.04
Platform: Linux
Compiler: Not Provided
Hi experts,
I noticed a difference in how PyROOT exposes multidimensional arrays in TTrees between ROOT 6.32.x and ROOT 6.34.x.
In old version (ROOT 6.32.08), multidimensional branches are flattened automatically, while in ROOT 6.34.04 the same branches are exposed as true multidimensional.
For example, consider the branch Kappa[4][64][2][2]/F. Accessing the first value differs between ROOT versions, requiring two different approaches:
import ROOT
root_file_path = "tileCalibLAS_310666_Las.0.root"
f = ROOT.TFile.Open(root_file_path)
t = f.Get("h3000")
t.GetEntry(0)
try:
first_val = t.Kappa[0][0][0][0]
print("First element (multidim):", first_val)
except TypeError:
first_val = t.Kappa[0]
print("First element (flattened):", first_val)
Was this change intentional in PyROOT 6.34.x?