EventAnalysis  1.0.0
Public Member Functions | List of all members
RootOutputStruct Struct Referenceabstract

Base struct for Root output. More...

#include <RootOutputStruct.h>

Public Member Functions

virtual ~RootOutputStruct ()
 
virtual const char * GetDescriptor ()=0
 Getter method for the leaf list descriptor. More...
 
RootOutputStructGetAddress ()
 The actual data member address. More...
 

Detailed Description

Base struct for Root output.

In order to create an output branch with a leaf list using RootPersistenceService it is necessary that the booked struct inherits from RootOutputStruct. This base struct defines the interface that the Root persistence service will use to retrieve the leaf list. Concrete implementations can have any member field, and must implement GetDescriptor properly in order to conform to the members list.

Constructor & Destructor Documentation

◆ ~RootOutputStruct()

virtual RootOutputStruct::~RootOutputStruct ( )
inlinevirtual

Member Function Documentation

◆ GetAddress()

RootOutputStruct* RootOutputStruct::GetAddress ( )
inline

The actual data member address.

This method returns the address of the first data member of children classes. It works by adding to the base address of the object the offset due to the pointer to the vtable (works with compilers implementing the Itanium C++ ABI, e.g. gcc and clang).

Returns

◆ GetDescriptor()

virtual const char* RootOutputStruct::GetDescriptor ( )
pure virtual

Getter method for the leaf list descriptor.

Concrete implementations must conform with the actual set of members of the concrete struct. The returned string will be used as argument of TTree::Branch; for the format of the returned string please refer to the Root documentation of TTree.

Returns
The leaf list descriptor.

The documentation for this struct was generated from the following file: