13 const std::type_info& ti,
14 const char* brName,
const char* brType )
16 m_event( &event ), m_ti( &ti ), m_object( nullptr ) {
19 Init( &parent, 0, brName, brType, &m_object, 32000, 0, -1, kTRUE );
35 if( TestBit( kDoNotProcess ) ) {
40 if( fReadEntry == entry ) {
45 if(
m_event->getEntry( entry ) < 0 ) {
47 XAOD_MESSAGE(
"Problems with loading entry %lld" ), entry );
52 static constexpr bool SILENT =
false;
53 static constexpr bool METADATA =
false;
57 XAOD_MESSAGE(
"Failed to read variable of type \"%s\" with "
59 GetClassName(), GetName() );
77 return ::TBranchObject::IsA();
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.
ClassImp(xAODTEventBranch) xAODTEventBranch