13#ifndef RooFit_TreeReadBuffer_h
14#define RooFit_TreeReadBuffer_h
21 virtual operator int() = 0;
40 tree.SetBranchAddress(branchName.
Data(), &buf->_value);
41 return std::unique_ptr<TreeReadBuffer>(buf);
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.
const char * Data() const
A TTree represents a columnar dataset.
virtual ~TreeReadBuffer()=default
Helper for reading branches with various types from a TTree, and convert all to double.