ATLAS Offline Software
|
Tree notification handler. More...
Public Member Functions | |
TreeNotifier (TTree *tree, PyObject *treeobj_ref) | |
Constructor. More... | |
virtual | ~TreeNotifier () |
Destructor. More... | |
virtual Bool_t | Notify () override |
Root notification hook. More... | |
virtual void | Clear (Option_t *="") override |
Called when the tree we're attached to is deleted. More... | |
Private Attributes | |
PyObject * | m_treeobj_ref |
A weak reference to the Python object for the tree. More... | |
TObject * | m_chain |
Notification tree. More... | |
TTree * | m_tree |
The tree to which we're attached. More... | |
Tree notification handler.
This is the tree notification handler. When it's Notify
method is called, we need to do two things. First, clear the cached branches/leaves. Second, call any Python notification handler.
Definition at line 67 of file PyROOTTTreePatch.cxx.
RootUtils::TreeNotifier::TreeNotifier | ( | TTree * | tree, |
PyObject * | treeobj_ref | ||
) |
Constructor.
tree | The tree for which we're creating the notification. |
treeobj_ref | A weak reference to the tree for which we're creating the notification. We take ownership of the reference object. |
Definition at line 110 of file PyROOTTTreePatch.cxx.
|
virtual |
|
overridevirtual |
Called when the tree we're attached to is deleted.
Definition at line 169 of file PyROOTTTreePatch.cxx.
|
overridevirtual |
|
private |
Notification tree.
Definition at line 96 of file PyROOTTTreePatch.cxx.
|
private |
The tree to which we're attached.
Definition at line 99 of file PyROOTTTreePatch.cxx.
|
private |
A weak reference to the Python object for the tree.
Making it a reference prevents a reference cycle.
Definition at line 93 of file PyROOTTTreePatch.cxx.