Project
Loading...
Searching...
No Matches
o2::framework::GenericRootTreeReader< KeyType >::SpecialPublishHook Struct Reference

#include <RootTreeReader.h>

Public Attributes

std::function< bool(std::string_view name, ProcessingContext &context, Output const &, char *data)> hook
 

Detailed Description

template<typename KeyType>
struct o2::framework::GenericRootTreeReader< KeyType >::SpecialPublishHook

A struct holding a callback to specialize publishing based on branch name. This might be useful when the read data needs to be transformed before publishing. The hook gets the following input: name: name of branch (may be used for selecting filtering) context: The processing context (so that we can snapshot or publish) Output: The DPL output channel on which to publish data: pointer to the data object read by the TreeReader The hook should return true when publishing succeeded and false when the ordinary publishing procedure should proceed.

Definition at line 168 of file RootTreeReader.h.

Member Data Documentation

◆ hook

template<typename KeyType >
std::function<bool(std::string_view name, ProcessingContext& context, Output const&, char* data)> o2::framework::GenericRootTreeReader< KeyType >::SpecialPublishHook::hook

Definition at line 169 of file RootTreeReader.h.


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