![]() |
Project
|
#include <RootTreeReader.h>
Classes | |
class | BranchConfigurationElement |
class | BranchConfigurationInterface |
struct | BranchDefinition |
struct | ConstructorArg |
helper structure to hold the constructor arguments for BranchConfigurationElement stages More... | |
struct | SpecialPublishHook |
Public Types | |
enum struct | PublishingMode { Single , Loop } |
Publishing mode determines what to do when the number of entries in the tree is reached. More... | |
using | self_type = GenericRootTreeReader< KeyType > |
using | key_type = KeyType |
using | BinaryDataStoreType = std::vector< char > |
using | ConstructorArgs = std::vector< ConstructorArg > |
using | ROOTSerializedByClass = o2::framework::ROOTSerialized< char, TClass > |
Public Member Functions | |
GenericRootTreeReader () | |
default constructor | |
template<typename... Args> | |
GenericRootTreeReader (const char *treename, Args &&... args) | |
void | addFile (const char *fileName) |
add a file as source for the tree | |
bool | next () |
self_type & | operator++ () |
prefix increment, move to the next entry | |
self_type & | operator++ (int)=delete |
postfix increment forbidden | |
template<typename ContextType , typename... HeaderTypes> | |
bool | operator() (ContextType &context, HeaderTypes &&... headers) const |
int | getCount () const |
return the number of published entries | |
Definition at line 141 of file RootTreeReader.h.
using o2::framework::GenericRootTreeReader< KeyType >::BinaryDataStoreType = std::vector<char> |
Definition at line 149 of file RootTreeReader.h.
using o2::framework::GenericRootTreeReader< KeyType >::ConstructorArgs = std::vector<ConstructorArg> |
Definition at line 188 of file RootTreeReader.h.
using o2::framework::GenericRootTreeReader< KeyType >::key_type = KeyType |
Definition at line 145 of file RootTreeReader.h.
using o2::framework::GenericRootTreeReader< KeyType >::ROOTSerializedByClass = o2::framework::ROOTSerialized<char, TClass> |
the type wrapper to mark the data to be ROOT serialized, object is passed by not-type-aware char*, and the actual class info is provided.
Definition at line 448 of file RootTreeReader.h.
using o2::framework::GenericRootTreeReader< KeyType >::self_type = GenericRootTreeReader<KeyType> |
Definition at line 144 of file RootTreeReader.h.
|
strong |
Publishing mode determines what to do when the number of entries in the tree is reached.
Enumerator | |
---|---|
Single | no more data after end of tree |
Loop | start over at entry 0 |
Definition at line 152 of file RootTreeReader.h.
o2::framework::GenericRootTreeReader< KeyType >::GenericRootTreeReader | ( | ) |
default constructor
|
inline |
constructor
treename | name of tree to process variable argument list of file names (const char*), the number of entries to publish (int), or the publishing mode, followed by pairs of KeyType and branch name |
Definition at line 395 of file RootTreeReader.h.
|
inline |
add a file as source for the tree
Definition at line 405 of file RootTreeReader.h.
|
inline |
return the number of published entries
Definition at line 474 of file RootTreeReader.h.
|
inline |
move to the next entry
Definition at line 413 of file RootTreeReader.h.
|
inline |
process functor It expects a context which is used by lambda capture in the snapshot function. Loop over all branch definitions and publish by using the snapshot function. The default forwards to DPL DataAllocator snapshot.
Note: For future extension we probably get rid of the context and want to use o2::snapshot, can be easily adjusted by exchanging the lambda.
Definition at line 458 of file RootTreeReader.h.
|
inline |
prefix increment, move to the next entry
Definition at line 438 of file RootTreeReader.h.
|
delete |
postfix increment forbidden