BmnRoot 26.10.0-18-g4e3414f9
Software framework of the BM@N experiment
Loading...
Searching...
No Matches
calculate_size.C File Reference
#include "services/function_set.h"
Include dependency graph for calculate_size.C:

Go to the source code of this file.

Functions

Long64_t GetTotalSize (TBranch *b, bool ondisk, bool inclusive)
Long64_t GetBasketSize (TBranch *b, bool ondisk, bool inclusive)
Long64_t GetBasketSize (TObjArray *branches, bool ondisk, bool inclusive)
Long64_t GetTotalSize (TObjArray *branches, bool ondisk)
Long64_t GetTotalSize (TTree *t, bool ondisk)
Long64_t sizeOnDisk (TTree *t)
Long64_t sizeOnDisk (TBranch *branch, bool inclusive)
void printBranchSummary (TBranch *br)
void printTreeSummary (TTree *t)
void cloned_branch_sizez (TTree *t)
void calculate_size (TString root_file_path)

Function Documentation

◆ calculate_size()

void calculate_size ( TString root_file_path)

Definition at line 177 of file calculate_size.C.

References TChain::Add(), TString::Data(), TChain::GetEntries(), TChain::GetTree(), TChain::LoadTree(), and printTreeSummary().

Here is the call graph for this function:

◆ cloned_branch_sizez()

void cloned_branch_sizez ( TTree * t)

Definition at line 151 of file calculate_size.C.

References TTree::CloneTree(), TFile::Close(), TStopwatch::CpuTime(), TObjArray::GetEntries(), TTree::GetListOfBranches(), TNamed::GetName(), i, n, TStopwatch::RealTime(), TTree::SetBranchStatus(), TStopwatch::Start(), TStopwatch::Stop(), and TTree::Write().

Here is the call graph for this function:

◆ GetBasketSize() [1/2]

Long64_t GetBasketSize ( TBranch * b,
bool ondisk,
bool inclusive )

Definition at line 37 of file calculate_size.C.

References GetBasketSize().

Referenced by GetBasketSize(), GetBasketSize(), GetTotalSize(), and GetTotalSize().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetBasketSize() [2/2]

Long64_t GetBasketSize ( TObjArray * branches,
bool ondisk,
bool inclusive )

Definition at line 27 of file calculate_size.C.

References TObjArray::At(), GetBasketSize(), TObjArray::GetEntries(), i, and n.

Here is the call graph for this function:

◆ GetTotalSize() [1/3]

Long64_t GetTotalSize ( TBranch * b,
bool ondisk,
bool inclusive )

Definition at line 54 of file calculate_size.C.

References f, GetBasketSize(), TFile::GetCompressionSettings(), TTree::GetCurrentFile(), and TBranch::GetTree().

Referenced by GetTotalSize(), sizeOnDisk(), and sizeOnDisk().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetTotalSize() [2/3]

Long64_t GetTotalSize ( TObjArray * branches,
bool ondisk )

Definition at line 70 of file calculate_size.C.

References TObjArray::At(), TObjArray::GetEntries(), TObject::GetName(), GetTotalSize(), i, and n.

Here is the call graph for this function:

◆ GetTotalSize() [3/3]

Long64_t GetTotalSize ( TTree * t,
bool ondisk )

Definition at line 81 of file calculate_size.C.

References f, GetBasketSize(), TTree::GetBranchRef(), TFile::GetCompressionSettings(), TTree::GetCurrentFile(), TTree::GetDirectory(), TDirectory::GetKey(), TTree::GetListOfBranches(), and TNamed::GetName().

Here is the call graph for this function:

◆ printBranchSummary()

void printBranchSummary ( TBranch * br)

Definition at line 127 of file calculate_size.C.

References byte_size_to_human(), TObjArray::GetEntries(), TBranch::GetListOfBranches(), TNamed::GetName(), i, n, and sizeOnDisk().

Here is the call graph for this function:

◆ printTreeSummary()

void printTreeSummary ( TTree * t)

Definition at line 139 of file calculate_size.C.

References byte_size_to_human(), TObjArray::GetEntries(), TTree::GetListOfBranches(), TNamed::GetName(), i, n, and sizeOnDisk().

Referenced by calculate_size().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sizeOnDisk() [1/2]

Long64_t sizeOnDisk ( TBranch * branch,
bool inclusive )

Definition at line 120 of file calculate_size.C.

References GetTotalSize().

Here is the call graph for this function:

◆ sizeOnDisk() [2/2]

Long64_t sizeOnDisk ( TTree * t)

Definition at line 114 of file calculate_size.C.

References GetTotalSize().

Referenced by printBranchSummary(), and printTreeSummary().

Here is the call graph for this function:
Here is the caller graph for this function: