Skip to content
Snippets Groups Projects
Commit e05c2fb2 authored by Enric Tejedor Saavedra's avatar Enric Tejedor Saavedra
Browse files

[Exp PyROOT] Explain implementation of TChain::SetBranchAddress

parent c8d3e9fa
No related branches found
No related tags found
No related merge requests found
...@@ -12,6 +12,8 @@ def pythonize_tchain(klass, name): ...@@ -12,6 +12,8 @@ def pythonize_tchain(klass, name):
if name == 'TChain': if name == 'TChain':
# SetBranchAddress # SetBranchAddress
# TChain overrides TTree's SetBranchAddress, so set it again (the Python method only forwards
# onto a TTree*, so the C++ virtual function call will make sure the right method is used)
klass._OriginalSetBranchAddress = klass.SetBranchAddress klass._OriginalSetBranchAddress = klass.SetBranchAddress
klass.SetBranchAddress = TTreeSetBranchAddress klass.SetBranchAddress = TTreeSetBranchAddress
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment