53 for(
size_t i = 0; i <
n; ++ i ) {
54 result += GetBasketSize( dynamic_cast<TBranch*>( branches->
At( i ) ), ondisk, inclusive );
87 return GetBasketSize(br, ondisk, inclusive) + size;
93 for(
size_t i = 0; i <
n; ++ i ) {
94 result += GetTotalSize( dynamic_cast<TBranch*>( branches->
At( i ) ), ondisk,
true );
95 cerr <<
"After " << branches->
At( i )->
GetName() <<
" " << result << endl;
122 ondiskSize += GetBasketSize(t->
GetBranchRef(),
true,
true);
124 totalSize += GetBasketSize(t->
GetBranchRef(),
false,
true);
137 return GetTotalSize(t,
true);
146 return GetTotalSize(branch,
true, inclusive);
149 void printBranchSummary(
TBranch *br)
151 cout <<
"The branch \"" << br->
GetName() <<
"\" takes " << sizeOnDisk(br,
true) <<
" bytes on disk\n";
153 for(
size_t i = 0; i <
n; ++ i ) {
155 cout <<
" Its sub-branch \"" << subbr->
GetName() <<
"\" takes " << sizeOnDisk(subbr,
true) <<
" bytes on disk\n";
159 void printTreeSummary(
TTree *t)
161 cout <<
"The TTree \"" << t->
GetName() <<
"\" takes " << sizeOnDisk(t) <<
" bytes on disk\n";
163 for(
size_t i = 0; i <
n; ++ i ) {
165 cout <<
" Its branch \"" << br->
GetName() <<
"\" takes " << sizeOnDisk(br,
true) <<
" bytes on disk\n";
Long64_t GetTotBytes(Option_t *option="") const
Return total number of bytes in the branch (excluding current buffer) if option ="*" includes all sub...
virtual TKey * GetKey(const char *name, Short_t cycle=9999) const
Return pointer to key with name,cycle.
TFile * GetCurrentFile() const
Return pointer to the current file.
virtual Int_t WriteTObject(const TObject *obj, const char *name=0, Option_t *option="", Int_t bufsize=0)
Write object obj to this directory.
A TMemFile is like a normal TFile except that it reads and writes only from memory.
virtual TKey * GetKey(const char *, Short_t=9999) const
virtual TObjArray * GetListOfBranches()
Long64_t GetZipBytes(Option_t *option="") const
Return total number of zip bytes in the branch if option ="*" includes all sub-branches of this branc...
TObjArray * GetListOfBranches()
Book space in a file, create I/O buffers, to fill them, (un)compress them.
Int_t WriteObject(const T *obj, const char *name, Option_t *option="", Int_t bufsize=0)
TDirectory * GetDirectory() const
virtual TBranchRef * GetBranchRef() const
virtual const char * GetName() const
Returns name of object.
Int_t GetCompressionSettings() const
virtual const char * GetName() const
Returns name of object.
Int_t GetEntries() const
Return the number of objects in array (i.e.
virtual void SetCompressionSettings(Int_t settings=1)
Used to specify the compression level and algorithm.
A TTree object has a header with a name and a title.
TObject * At(Int_t idx) const
A TTree is a list of TBranches.