Accessing each Leaf in a .root file over a loop to extract its data

BTW. When you post “source code” or “output” here, do remember to enclose them into two lines which contain just three characters ```.