ATLAS Offline Software
xAODTEventBranch.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_XAODTEVENTBRANCH_H
6 #define XAODROOTACCESS_TOOLS_XAODTEVENTBRANCH_H
7 
8 // System include(s):
9 #include <typeinfo>
10 
11 // ROOT include(s):
12 #include <TBranchObject.h>
13 
14 // Forward declaration(s).
15 namespace xAOD {
16  class TEvent;
17 }
18 
32 class xAODTEventBranch : public ::TBranchObject {
33 
34 public:
37  const std::type_info& ti, const char* brName,
38  const char* brType );
39 
40  // Note that the virtual functions are not marked with "override" because the
41  // functions defined by ClassDef are not marked like that either. So using
42  // "override" on just these functions would introduce a compile time warning.
43 
45  virtual ::Int_t GetEntry( ::Long64_t entry, ::Int_t getall );
46 
48  virtual ::TClass* IsA() const;
49 
50 private:
53  const std::type_info* m_ti;
55  const void* m_object;
57 
59 #define IsA IsARoot
60  ClassDef( xAODTEventBranch, 0 )
61 #undef IsA
62 
63 }; // class xAODTEventBranch
64 
65 #endif // XAODROOTACCESS_TOOLS_XAODTEVENTBRANCH_H
xAODTEventBranch::xAODTEventBranch
xAODTEventBranch(::TTree &parent, xAOD::TEvent &event, const std::type_info &ti, const char *brName, const char *brType)
Constructor with all the needed parameters.
checkxAOD.brName
brName
Definition: Tools/PyUtils/bin/checkxAOD.py:113
xAODTEventBranch::m_event
xAOD::TEvent * m_event
Pointer to the TEvent object reading the persistent tree.
Definition: xAODTEventBranch.h:52
xAOD
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.
Definition: ICaloAffectedTool.h:24
xAODTEventBranch::IsA
virtual ::TClass * IsA() const
Function returning the type of ::TBranchObject.
Definition: xAODTEventBranch.cxx:73
xAODTEventBranch::m_object
const void * m_object
Pointer to the object read in using TEvent.
Definition: xAODTEventBranch.h:56
xAODTEventBranch::m_ti
const std::type_info * m_ti
The type of the object that needs to be read.
Definition: xAODTEventBranch.h:54
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
xAODTEventBranch::GetEntry
virtual ::Int_t GetEntry(::Long64_t entry, ::Int_t getall)
Function getting the current entry for this branch.
Definition: xAODTEventBranch.cxx:32
test_pyathena.parent
parent
Definition: test_pyathena.py:15
GetAllXsec.entry
list entry
Definition: GetAllXsec.py:132
xAODTEventBranch
Specialised class for browsing xAOD event interface objects in ROOT.
Definition: xAODTEventBranch.h:32
xAOD::TEvent
Tool for accessing xAOD files outside of Athena.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:81