RAPIDO
Repeatable Analysis Programming for Interpretability, Durability, and Organization
All Classes Functions Variables Pages
Arbusto Class Reference

#include <arbusto.h>

Inheritance diagram for Arbusto:
Arbol

Public Member Functions

 Arbusto ()
 
 Arbusto (TFile *new_tfile, TChain *tchain, std::vector< TString > branch_names)
 
 Arbusto (HEPCLI &cli, std::vector< TString > branch_names)
 
virtual ~Arbusto ()
 
void init (TTree *next_ttree)
 
void fill (int entry)
 
- Public Member Functions inherited from Arbol
 Arbol ()
 
 Arbol (TFile *tfile, TString ttree_name="tree")
 
 Arbol (TString tfile_name, TString ttree_name="tree")
 
 Arbol (HEPCLI &cli)
 
virtual ~Arbol ()
 
template<typename Type >
void newBranch (TString new_branch_name)
 
template<typename Type >
void newBranch (TString new_branch_name, Type new_reset_value)
 
template<typename Type >
void setBranchResetValue (TString branch_name, Type new_reset_value)
 
template<typename Type >
Type getLeaf (TString branch_name)
 
template<typename Type >
void setLeaf (TString branch_name, Type new_value)
 
template<typename Type >
void newVecBranch (TString new_branch_name)
 
template<typename Type >
void newVecBranch (TString new_branch_name, std::vector< Type > new_reset_vector)
 
template<typename Type >
void setVecBranchResetValue (TString branch_name, std::vector< Type > new_reset_vector)
 
template<typename Type >
std::vector< Type > getVecLeaf (TString branch_name)
 
template<typename Type >
void setVecLeaf (TString branch_name, std::vector< Type > new_vector)
 
template<typename Type >
void appendToVecLeaf (TString branch_name, Type new_value)
 
template<typename Type >
void prependToVecLeaf (TString branch_name, Type new_value)
 
template<typename Type >
void insertIntoVecLeaf (TString branch_name, Type new_value, int index)
 
template<typename Type >
void sortVecLeaf (TString branch_name, std::function< bool(Type, Type)> &lambda)
 
void resetBranches ()
 
virtual void fill ()
 
virtual void write (bool close=true)
 

Protected Attributes

std::vector< TString > keep_branch_names
 
TTree * orig_ttree
 
- Protected Attributes inherited from Arbol
std::map< TString, Utilities::Dynamic * > branches
 
std::map< TString, std::function< void()> > branch_resetters
 

Additional Inherited Members

- Public Attributes inherited from Arbol
TTree * ttree
 
TFile * tfile
 
- Protected Member Functions inherited from Arbol
template<typename Type >
Branch< Type > * getBranch (TString branch_name)
 

Detailed Description

Wraps Arbol object with functionality for skimming

Constructor & Destructor Documentation

◆ Arbusto() [1/3]

Arbusto::Arbusto ( )

Arbusto object constructor

Returns
none

◆ Arbusto() [2/3]

Arbusto::Arbusto ( TFile * new_tfile,
TChain * tchain,
std::vector< TString > branch_names )

Arbusto object overload constructor

Parameters
new_tfilepointer to output TFile
tchainpointer to TChain of input TFiles
branch_namesstd::vector of branch names to keep
Returns
none

◆ Arbusto() [3/3]

Arbusto::Arbusto ( HEPCLI & cli,
std::vector< TString > branch_names )

Arbusto object overload constructor

Parameters
cliHEPCLI object
branch_namesstd::vector of branch names to keep
Returns
none

◆ ~Arbusto()

virtual Arbusto::~Arbusto ( )
virtual

Arbusto object destructor

Returns
none

Member Function Documentation

◆ fill()

void Arbusto::fill ( int entry)

Fill TTree with all current leaves

Parameters
entrycurrent entry
Returns
none

◆ init()

void Arbusto::init ( TTree * next_ttree)

Initialize Arbusto for current file

Parameters
next_ttreepointer to the next of the original TTree objects
Returns
none

Member Data Documentation

◆ keep_branch_names

std::vector<TString> Arbusto::keep_branch_names
protected

Names of branches in original ROOT TTree to keep

◆ orig_ttree

TTree* Arbusto::orig_ttree
protected

Pointer to current TTree to skim


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