ATLAS Offline Software
|
Specialised class for browsing xAOD metadata interface objects in ROOT. More...
#include <xAODTMetaBranch.h>
Public Member Functions | |
xAODTMetaBranch (::TTree &parent, xAOD::TEvent &event, const std::type_info &ti, const char *brName, const char *brType) | |
Constructor with all the needed parameters. More... | |
virtual ::Int_t | GetEntry (::Long64_t entry, ::Int_t getall) |
Function getting the current entry/file for this branch. More... | |
virtual ::TClass * | IsA () const |
Function returning the type of ::TBranchObject. More... | |
Private Attributes | |
xAOD::TEvent * | m_event |
Pointer to the TEvent object reading the persistent tree. More... | |
const std::type_info * | m_ti |
The type of the object that needs to be read. More... | |
const void * | m_object |
Pointer to the object read in using TEvent. More... | |
Specialised class for browsing xAOD metadata interface objects in ROOT.
This is a class extremely similar to xAOD::TEventBranch. But instead of giving access to event level information, it provides a convenient view of the ROOT-readable metadata payload of xAOD files.
Definition at line 27 of file xAODTMetaBranch.h.
xAODTMetaBranch::xAODTMetaBranch | ( | ::TTree & | parent, |
xAOD::TEvent & | event, | ||
const std::type_info & | ti, | ||
const char * | brName, | ||
const char * | brType | ||
) |
Constructor with all the needed parameters.
Int_t xAODTMetaBranch::GetEntry | ( | ::Long64_t | entry, |
::Int_t | getall | ||
) |
Function getting the current entry/file for this branch.
This is the function doing the heavy lifting.
It loads the interface object for the current file (entry) requested. Only doing some minimal overhead in the meanwhile.
entry | The entry/file to be read for this object |
getall | When set to 1, read all information about the branch (Not used.) |
Definition at line 32 of file xAODTMetaBranch.cxx.
TClass * xAODTMetaBranch::IsA | ( | ) | const |
Function returning the type of ::TBranchObject.
I took this from the ARA code directly.
Apparenly TTree would not know how to handle this object if it reported its actual type. So we pretend that this is a TBranchObject object. That way TBrowser shows its contents nicely.
Definition at line 73 of file xAODTMetaBranch.cxx.
|
private |
Pointer to the TEvent object reading the persistent tree.
Definition at line 47 of file xAODTMetaBranch.h.
|
private |
Pointer to the object read in using TEvent.
Definition at line 51 of file xAODTMetaBranch.h.
|
private |
The type of the object that needs to be read.
Definition at line 49 of file xAODTMetaBranch.h.