14 : ::TTree( name, title ), m_event( &event ) {
17 fEntries = m_event->getEntries();
32 if(
m_event->getEntry( entry, getall ) < 0 ) {
34 XAOD_MESSAGE(
"Problems with loading entry %lld" ), entry );
39 return ::TTree::GetEntry( entry, getall );
50 fBranches.Add( br.release() );
Transient TTree for interactive xAOD event data access.
xAODTEventTree(xAOD::TEvent &event, const char *name="CollectionTree", const char *title="xAOD transient tree")
Constructor with all the necessary parameters.
xAOD::TEvent * m_event
Pointer to the TEvent reading the persistent tree.
void AddBranch(std::unique_ptr< xAODTEventBranch > br)
Function adding a new xAODTEventBranch to the tree.
virtual::Int_t GetEntry(::Long64_t entry, ::Int_t getall=0)
Function overriding the base class's GetEntry(...)
Tool for accessing xAOD files outside of Athena.
ClassImp(xAODTEventTree) xAODTEventTree