Hi @RobS,
I’m sorry, my mistake. You need
E = np.zeros(max_candidates, dtype=np.float32)
chain.SetBranchAddress("E", E)
The float32
is important as the branch are C floats (32bit wide) and not double (64bit wide) which is the default when using np.float. I should have checked more closely.