ATLAS Offline Software
Loading...
Searching...
No Matches
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).
15namespace xAOD {
16 class TEvent;
17}
18
32class xAODTEventBranch : public ::TBranchObject {
33
34public:
36 xAODTEventBranch( ::TTree& parent, xAOD::TEvent& event,
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
50private:
54 const std::type_info* m_ti;
56 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
Specialised class for browsing xAOD event interface objects in ROOT.
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.
xAOD::TEvent * m_event
Pointer to the TEvent object reading the persistent tree.
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.
xAODTEventBranch(::TTree &parent, xAOD::TEvent &event, const std::type_info &ti, const char *brName, const char *brType)
Constructor with all the needed parameters.
Tool for accessing xAOD files outside of Athena.
ICaloAffectedTool is abstract interface for tools checking if 4 mom is in calo affected region.