![]() |
AliRoot Core
edcc906 (edcc906)
|
#include "TFile.h"
#include "TTree.h"
#include "TBranch.h"
#include "TMath.h"
#include "TArrayF.h"
#include "TObjArray.h"
#include "TObjString.h"
Go to the source code of this file.
Functions | |
void | MakeStat (TTree *tree, Bool_t zipSort) |
void | PrintSorted (Bool_t zipSort) |
void | AddToReport (const char *prefix, const char *name, Float_t size[2], Float_t ratio) |
void | MakeStat (const char *prefix, TBranch *branch, Float_t *size, Float_t mratio) |
Variables | |
TTree * | fTree |
TObjArray | aReport |
TArrayF | totSize |
TArrayF | zipSize |
TArrayF | zipRatio |
Macro to get the size of the Tree As a improvment to tree->Print() function, this algorithm gives the size of all of the branchces and in addition print them sorted according total tree size (MEMORY USAGE if one event in tree) or zip size (THE storage size on disk)
Printed statistic:
Usage:
Definition in file MakeTreeStat.C.
void AddToReport | ( | const char * | prefix, |
const char * | name, | ||
Float_t | size[2], | ||
Float_t | ratio | ||
) |
void MakeStat | ( | TTree * | tree, |
Bool_t | zipSort | ||
) |
make recursve loop over tree branches
Definition at line 120 of file MakeTreeStat.C.
Referenced by AddToReport(), and MakeStat().
void MakeStat | ( | const char * | prefix, |
TBranch * | branch, | ||
Float_t * | size, | ||
Float_t | mratio | ||
) |
Recursive function to get size of the branches and ratios
Definition at line 140 of file MakeTreeStat.C.
void PrintSorted | ( | Bool_t | zipSort | ) |
TObjArray aReport |
Definition at line 56 of file MakeTreeStat.C.
Referenced by AddToReport(), MakeStat(), and PrintSorted().
TTree* fTree |
Definition at line 55 of file MakeTreeStat.C.
Referenced by TTreeStream::GetSize(), TTreeStream::GetTree(), and MakeStat().
TArrayF totSize |
Definition at line 57 of file MakeTreeStat.C.
Referenced by AddToReport(), MakeTree(), and PrintSorted().
TArrayF zipRatio |
Definition at line 59 of file MakeTreeStat.C.
Referenced by AddToReport(), and PrintSorted().
TArrayF zipSize |
Definition at line 58 of file MakeTreeStat.C.
Referenced by AddToReport(), MakeTree(), and PrintSorted().