Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TreeReadBuffer.h File Reference
#include <TTree.h>
Include dependency graph for TreeReadBuffer.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  TreeReadBuffer
 
struct  TypedTreeReadBuffer< T >
 Helper for reading branches with various types from a TTree, and convert all to double. More...
 

Functions

template<typename T >
std::unique_ptr< TreeReadBuffercreateTreeReadBuffer (const TString &branchName, TTree &tree)
 Create a TreeReadBuffer to hold the specified type, and attach to the branch passed as argument.
 

Function Documentation

◆ createTreeReadBuffer()

template<typename T >
std::unique_ptr< TreeReadBuffer > createTreeReadBuffer ( const TString branchName,
TTree tree 
)

Create a TreeReadBuffer to hold the specified type, and attach to the branch passed as argument.

Template Parameters
TType of branch to be read.
Parameters
[in]branchNameAttach to this branch.
[in]treeTree to attach to.

Definition at line 37 of file TreeReadBuffer.h.