59 for(
size_t i = 0; i <
n; ++ i ) {
60 result += GetBasketSize(
dynamic_cast<TBranch*
>( branches->
At( i ) ), ondisk, inclusive );
68 if (ondisk &&
b->GetZipBytes() > 0) {
74 result += GetBasketSize(
b->GetListOfBranches(), ondisk,
true);
86 f.WriteObject(br,
"thisbranch");
87 TKey* key =
f.GetKey(
"thisbranch");
93 return GetBasketSize(br, ondisk, inclusive) +
size;
99 for(
size_t i = 0; i <
n; ++ i ) {
100 result += GetTotalSize(
dynamic_cast<TBranch*
>( branches->
At( i ) ), ondisk,
true );
101 cerr <<
"After " << branches->
At( i )->
GetName() <<
" " <<
result << endl;
128 ondiskSize += GetBasketSize(t->
GetBranchRef(),
true,
true);
130 totalSize += GetBasketSize(t->
GetBranchRef(),
false,
true);
143 return GetTotalSize(t,
true);
152 return GetTotalSize(branch,
true, inclusive);
155void printBranchSummary(
TBranch *br)
157 cout <<
"The branch \"" << br->
GetName() <<
"\" takes " << sizeOnDisk(br,
true) <<
" bytes on disk\n";
159 for(
size_t i = 0; i <
n; ++ i ) {
161 cout <<
" Its sub-branch \"" << subbr->
GetName() <<
"\" takes " << sizeOnDisk(subbr,
true) <<
" bytes on disk\n";
165void printTreeSummary(
TTree *t)
167 cout <<
"The TTree \"" << t->
GetName() <<
"\" takes " << sizeOnDisk(t) <<
" bytes on disk\n";
169 for(
size_t i = 0; i <
n; ++ i ) {
171 cout <<
" Its branch \"" << br->
GetName() <<
"\" takes " << sizeOnDisk(br,
true) <<
" bytes on disk\n";
size_t size(const MatrixT &matrix)
retrieve the size of a square matrix
long long Long64_t
Portable signed long integer 8 bytes.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t result
A TTree is a list of TBranches.
TObjArray * GetListOfBranches()
virtual TKey * GetKey(const char *, Short_t=9999) const
Int_t GetCompressionSettings() const
Book space in a file, create I/O buffers, to fill them, (un)compress them.
A TMemFile is like a normal TFile except that it reads and writes only from memory.
const char * GetName() const override
Returns name of object.
Int_t GetEntries() const override
Return the number of objects in array (i.e.
TObject * At(Int_t idx) const override
virtual const char * GetName() const
Returns name of object.
A TTree represents a columnar dataset.
TFile * GetCurrentFile() const
Return pointer to the current file.
TDirectory * GetDirectory() const
virtual TBranchRef * GetBranchRef() const
virtual TObjArray * GetListOfBranches()