SetBranchAddress in pyroot when reading from a TChain

You are trying to retrieve a subbranch “obj” which belongs to a master branch “int_BasicTupelizer_ngoodVertices_Tupelizer.” (note the dot character at the end of the master branch name), so you’ve got objects which were written with splitlevel >= 1.
I’d say this kind of games is reserved for “advanced users” only, so you’re asking for trouble.
You’ better have a look at an “analysis skeleton”: Export leaf histogram to ascii
test2.py (619 Bytes)