Project
Loading...
Searching...
No Matches
o2::framework::GenericRootTreeReader< KeyType >::BranchConfigurationInterface Class Reference

#include <RootTreeReader.h>

Public Member Functions

 BranchConfigurationInterface ()=default
 
 BranchConfigurationInterface (ConstructorArgs const &)
 
virtual ~BranchConfigurationInterface ()=default
 
virtual void setup (TTree &, SpecialPublishHook *h=nullptr)
 Setup the branch configuration, namely get the branch and class information from the tree.
 
virtual void exec (ProcessingContext &ctx, int entry, std::function< o2::header::Stack()> stackcreator)
 

Static Public Attributes

static const size_t STAGE = 0
 

Detailed Description

template<typename KeyType>
class o2::framework::GenericRootTreeReader< KeyType >::BranchConfigurationInterface

The interface for the branch configuration. The branch configuration is constructed at compile time from the constructor argments of the tree reader. A mixin class is constructed from nested instances of

Definition at line 198 of file RootTreeReader.h.

Constructor & Destructor Documentation

◆ BranchConfigurationInterface() [1/2]

template<typename KeyType >
o2::framework::GenericRootTreeReader< KeyType >::BranchConfigurationInterface::BranchConfigurationInterface ( )
default

◆ BranchConfigurationInterface() [2/2]

template<typename KeyType >
o2::framework::GenericRootTreeReader< KeyType >::BranchConfigurationInterface::BranchConfigurationInterface ( ConstructorArgs const &  )
inline

Definition at line 203 of file RootTreeReader.h.

◆ ~BranchConfigurationInterface()

template<typename KeyType >
virtual o2::framework::GenericRootTreeReader< KeyType >::BranchConfigurationInterface::~BranchConfigurationInterface ( )
virtualdefault

Member Function Documentation

◆ exec()

template<typename KeyType >
virtual void o2::framework::GenericRootTreeReader< KeyType >::BranchConfigurationInterface::exec ( ProcessingContext ctx,
int  entry,
std::function< o2::header::Stack()>  stackcreator 
)
inlinevirtual

Run the reader process This will recursively run every level of the the branch configuration and fetch the object at position entry. The object is published via the DPL ProcessingContext. A creator callback for the header stack is provided to build the stack from the variadic list of header template arguments.

Definition at line 213 of file RootTreeReader.h.

◆ setup()

template<typename KeyType >
virtual void o2::framework::GenericRootTreeReader< KeyType >::BranchConfigurationInterface::setup ( TTree &  ,
SpecialPublishHook h = nullptr 
)
inlinevirtual

Setup the branch configuration, namely get the branch and class information from the tree.

Definition at line 207 of file RootTreeReader.h.

Member Data Documentation

◆ STAGE

template<typename KeyType >
const size_t o2::framework::GenericRootTreeReader< KeyType >::BranchConfigurationInterface::STAGE = 0
static

Definition at line 201 of file RootTreeReader.h.


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