WCSim
Functions | Variables
printSizes.C File Reference
#include "TTree.h"
#include "TBranch.h"
#include "Riostream.h"
#include "TMemFile.h"
#include "TKey.h"
#include "TBranchRef.h"
#include "TSystem.h"
#include "WCSimRootEvent.hh"
#include "WCSimRootGeom.hh"
#include "WCSimEnumerations.hh"
Include dependency graph for printSizes.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)
 
TFile * OpenFile (const char *filename)
 
Long64_t GetWCSimTreeSize (TFile *f, int itree, bool verbose)
 
int printSizes (const char *filename1="wcsimtest.root", const char *filename2="../../WCSim_clean/verification-test-scripts/wcsimtest.root", bool verbose=false)
 

Variables

const int ntrees = 3
 
string wcsimtrees [ntrees] = {"wcsimGeoT", "wcsimT", "wcsimRootOptionsT"}
 
string wcsimbranches [ntrees] = {"wcsimrootgeom", "wcsimrootevent", "wcsimrootoptions"}
 

Function Documentation

◆ GetBasketSize() [1/2]

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

Definition at line 62 of file printSizes.C.

◆ GetBasketSize() [2/2]

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

Definition at line 53 of file printSizes.C.

◆ GetTotalSize() [1/3]

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

Definition at line 78 of file printSizes.C.

◆ GetTotalSize() [2/3]

Long64_t GetTotalSize ( TObjArray *  branches,
bool  ondisk 
)

Definition at line 93 of file printSizes.C.

◆ GetTotalSize() [3/3]

Long64_t GetTotalSize ( TTree *  t,
bool  ondisk 
)

Definition at line 103 of file printSizes.C.

◆ GetWCSimTreeSize()

Long64_t GetWCSimTreeSize ( TFile *  f,
int  itree,
bool  verbose 
)

Definition at line 186 of file printSizes.C.

◆ OpenFile()

TFile* OpenFile ( const char *  filename)

Definition at line 176 of file printSizes.C.

◆ printBranchSummary()

void printBranchSummary ( TBranch *  br)

Definition at line 152 of file printSizes.C.

◆ printSizes()

int printSizes ( const char *  filename1 = "wcsimtest.root",
const char *  filename2 = "../../WCSim_clean/verification-test-scripts/wcsimtest.root",
bool  verbose = false 
)

Definition at line 197 of file printSizes.C.

◆ printTreeSummary()

void printTreeSummary ( TTree *  t)

Definition at line 162 of file printSizes.C.

◆ sizeOnDisk() [1/2]

Long64_t sizeOnDisk ( TTree *  t)

Definition at line 137 of file printSizes.C.

◆ sizeOnDisk() [2/2]

Long64_t sizeOnDisk ( TBranch *  branch,
bool  inclusive 
)

Definition at line 143 of file printSizes.C.

Variable Documentation

◆ ntrees

const int ntrees = 3

Definition at line 172 of file printSizes.C.

◆ wcsimbranches

string wcsimbranches[ntrees] = {"wcsimrootgeom", "wcsimrootevent", "wcsimrootoptions"}

Definition at line 174 of file printSizes.C.

◆ wcsimtrees

string wcsimtrees[ntrees] = {"wcsimGeoT", "wcsimT", "wcsimRootOptionsT"}

Definition at line 173 of file printSizes.C.