14 const UInt_t NMAXTREES = 50;
31 TTree*
GetTree(
const std::string& name);
37 void ReadTree(
const std::string& file, Int_t index);
40 void ReadTree(
const std::string& file,
const std::string& name);
43 void ReadFile(
const std::string& file);
67 bool HasTree(
const std::string& tree_name);
std::vector< Int_t > _trees_indices
Vector of indices for the non NULL TTree in previous vector.
TTree * GetTree(Int_t index)
Returns the a tree with a given index.
Int_t GetCurrentTree() const
Retuns the current tree index.
std::string GetTreeName(Int_t index)
Retuns the tree name provided the index.
std::string GetCurrentTreeName()
Retuns the current tree name.
void ReadFile(const std::string &file)
Read all trees from a file.
void SetCurrentTree(Int_t index)
Sets the current tree provided the index.
Int_t GetTreeIndex(const std::string &tree_name)
Retuns the tree index provided the name.
bool HasTree(Int_t index)
Check the existence of a tree provided the index.
std::vector< TTree *> _trees
Vector of trees.
void ReadTree(const std::string &file, Int_t index)
Read a tree from a file provided the index.
TFile * _file
Root input or output file.
std::vector< TTree *> & GetTrees()
Returns the map of trees.
std::vector< TTree *> _trees_nonull
Vector of non NULL trees.
TTree * GetTree()
Returns the a tree set as current.
Int_t _current_tree
The current tree.