58 for(
size_t i = 0; i <
n; ++ i ) {
59 result += GetBasketSize( dynamic_cast<TBranch*>( branches->
At( i ) ), ondisk, inclusive );
85 f.WriteObject(br,
"thisbranch");
86 TKey* key =
f.GetKey(
"thisbranch");
92 return GetBasketSize(br, ondisk, inclusive) + size;
98 for(
size_t i = 0; i <
n; ++ i ) {
99 result += GetTotalSize( dynamic_cast<TBranch*>( branches->
At( i ) ), ondisk,
true );
100 cerr <<
"After " << branches->
At( i )->
GetName() <<
" " << result << endl;
127 ondiskSize += GetBasketSize(t->
GetBranchRef(),
true,
true);
129 totalSize += GetBasketSize(t->
GetBranchRef(),
false,
true);
142 return GetTotalSize(t,
true);
151 return GetTotalSize(branch,
true, inclusive);
154 void printBranchSummary(
TBranch *br)
156 cout <<
"The branch \"" << br->
GetName() <<
"\" takes " << sizeOnDisk(br,
true) <<
" bytes on disk\n";
158 for(
size_t i = 0; i <
n; ++ i ) {
160 cout <<
" Its sub-branch \"" << subbr->
GetName() <<
"\" takes " << sizeOnDisk(subbr,
true) <<
" bytes on disk\n";
164 void printTreeSummary(
TTree *t)
166 cout <<
"The TTree \"" << t->
GetName() <<
"\" takes " << sizeOnDisk(t) <<
" bytes on disk\n";
168 for(
size_t i = 0; i <
n; ++ i ) {
170 cout <<
" Its branch \"" << br->
GetName() <<
"\" takes " << sizeOnDisk(br,
true) <<
" bytes on disk\n";
virtual const char * GetName() const
Returns name of object.
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...
TObject * At(Int_t idx) const
A TMemFile is like a normal TFile except that it reads and writes only from memory.
Long64_t GetTotBytes(Option_t *option="") const
Return total number of bytes in the branch (excluding current buffer) if option ="*" includes all sub...
virtual TObjArray * GetListOfBranches()
TObjArray * GetListOfBranches()
Book space in a file, create I/O buffers, to fill them, (un)compress them.
TFile * GetCurrentFile() const
Return pointer to the current file.
virtual TBranchRef * GetBranchRef() const
virtual TKey * GetKey(const char *, Short_t=9999) const
TDirectory * GetDirectory() const
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
Int_t GetEntries() const
Return the number of objects in array (i.e.
A TTree object has a header with a name and a title.
virtual const char * GetName() const
Returns name of object.
A TTree is a list of TBranches.
Int_t GetCompressionSettings() const