#include <TEventBranch.h>
Public Member Functions | |
TEventBranch (::TTree *parent, TEvent *event, const std::type_info *ti, const char *brName, const char *brType) | |
Constructor with all the needed parameters. | |
virtual ::Int_t | GetEntry (::Long64_t entry,::Int_t getall) |
Function getting the current entry for this branch. | |
virtual ::TClass * | IsA () const |
Function returning the type of TBranchObject. |
Specialised class for browsing xAOD event interface objects in ROOT
In order to read xAOD interface objects/containers correctly, one needs to use the xAOD::TEvent class. Since the regular ROOT classes can't be taught how to use an external object for reading information, we need to do it using inheritance.
The design was pretty much stolen from the AthenaROOTAccess code. Luckily in this case the code can be a lot easier. Here we just need to ask the TEvent object for the correct pointer, and we're done.