[Halld-offline] DTreeInterface

Paul Mattione pmatt at jlab.org
Wed Jun 8 13:09:44 EDT 2016

As suggested by Matt Shepherd, I have developed an interface to creating and filling ROOT TTrees in JANA.  This interface abstracts away all the nastiness of locking and sharing branch addresses between threads.  Examples can be found at:

1) In a plugin:

2) In an analysis action (DCustomAction_TrackingEfficiency):

>From now on, for thread safety, please use this interface when filling trees in JANA.  The classes used are:

DTreeInterface.* and DTreeInterfaceObjects.h at:

Please be sure to delete the interface at the end of the program to ensure that the tree is saved and the file is closed.  

 - Paul

More information about the Halld-offline mailing list