![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
64 const std::string&
name()
const;
94 const char* type_name =
typeid(
obj).
name();
95 if (strlen(type_name) == 1) {
96 std::ostringstream leaflist;
129 const char*
RootType(
const char* typeid_type);
143 const char*
TypeidType(
const char* root_type);
const char * TypeidType(const char *root_type)
Stolen from SFrame code.
TTree * m_tree
Pointer to the TTree, created by this class in the constructor.
TopConfig A simple configuration that is NOT a singleton.
int m_basketSizePrimitive
std::vector< BranchFilter > const & branchFilters() const
list of functions that control which variables are written out
const char * RootType(const char *typeid_type)
Stolen from SFrame code.
TreeManager()
Default constructor - note need to initialize the class if you use this.
void fill()
Calls TTree::Fill.
std::vector< BranchFilter > m_branchFilters
list of functions that control which variables are written out
std::vector< BranchFilter > & branchFilters()
list of functions that control which variables are written out
std::string m_name
name of the tree
void initialize(const std::string &name, TFile *outputFile, const int, const int, const int)
Initialize the class with a new output file.
std::function< int(top::TreeManager const *, std::string const &)> BranchFilter
function object type used for branch filters
TreeManager(const TreeManager &)=delete
But not to copy it.
const std::string & name() const
name of the TTree
A class that hopefully makes making a flat ntuple tree a bit easier since you don't need to worry abo...
TreeManager & operator=(TreeManager const &)=delete
Or assign it.
std::list< void * > m_outputVarPointers
Stolen from SFrame code.
void makeOutputVariable(T &obj, const std::string name)
The idea is to simplify the creation of branches so that you don't have to write tree->Branch("blah",...