ATLAS Offline Software
Loading...
Searching...
No Matches
xAODTMetaBranch.h
Go to the documentation of this file.
1// Dear emacs, this is -*- c++ -*-
2//
3// Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
4//
5#ifndef XAODROOTACCESS_TOOLS_XAODTMETABRANCH_H
6#define XAODROOTACCESS_TOOLS_XAODTMETABRANCH_H
7
8// System include(s):
9#include <typeinfo>
10
11// ROOT include(s):
12#include <TBranchObject.h>
13
14// Forward declaration(s).
15namespace xAOD {
16 class TEvent;
17}
18
27class xAODTMetaBranch : public ::TBranchObject {
28
29public:
31 xAODTMetaBranch( ::TTree& parent, xAOD::TEvent& event,
32 const std::type_info& ti, const char* brName,
33 const char* brType );
34
35 // Note that the virtual functions are not marked with "override" because the
36 // functions defined by ClassDef are not marked like that either. So using
37 // "override" on just these functions would introduce a compile time warning.
38
40 virtual ::Int_t GetEntry( ::Long64_t entry, ::Int_t getall );
41
43 virtual ::TClass* IsA() const;
44
45private:
49 const std::type_info* m_ti;
51 const void* m_object;
52
54#define IsA IsARoot
55 ClassDef( xAODTMetaBranch, 0 )
56#undef IsA
57
58}; // class xAODTMetaBranch
59
60#endif // XAODROOTACCESS_TOOLS_XAODTMETABRANCH_H
Specialised class for browsing xAOD metadata interface objects in ROOT.
virtual::Int_t GetEntry(::Long64_t entry, ::Int_t getall)
Function getting the current entry/file for this branch.
xAOD::TEvent * m_event
Pointer to the TEvent object reading the persistent tree.
xAODTMetaBranch(::TTree &parent, xAOD::TEvent &event, const std::type_info &ti, const char *brName, const char *brType)
Constructor with all the needed parameters.
virtual::TClass * IsA() const
Function returning the type of TBranchObject.
const std::type_info * m_ti
The type of the object that needs to be read.
const void * m_object
Pointer to the object read in using TEvent.
Tool for accessing xAOD files outside of Athena.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.