Skip to content

Commit

Permalink
Change the recommended way of getting a TTree from a TFile in python
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcarcell committed Jul 5, 2024
1 parent 02c564b commit a9a9921
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manual/trees/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ In Python you can simply use the branch name as an attribute on the tree:

{% highlight Python %}
myFile = ROOT.TFile.Open("file.root")
myTree = myFile.TreeName
myTree = myFile["TreeName"] # myFile.TreeName before 6.32.0
for entry in myTree:
print(entry.branchName)
{% endhighlight %}
Expand Down

0 comments on commit a9a9921

Please sign in to comment.