#include <TMetaTree.h>
Public Member Functions | |
TMetaTree (TEvent *event, const char *name="MetaData", const char *title="xAOD metadata transient tree") | |
Constructor with all the necessary parameters. | |
virtual ::Int_t | GetEntry (::Long64_t entry,::Int_t getall=0) |
Function overriding the base class's GetEntry(...). | |
void | AddBranch (xAOD::TMetaBranch *br) |
Function adding a new xAOD::TBranch to the tree. |
Transient TTree for interactive xAOD metadata access
This is pretty much the same sort of thing that ARA's TTreeTrans was designed for. In order to implement everything that we need from the transient tree, we need to override some functions within the class. But to the outside user we still want to present the usual TTree interface.
This class is only meant for interactive and PyROOT access to an xAOD file. It should not be used in compiled analysis code, or for writing information into a file. (The first one will be slow, the second one just impossible.)