root [] printTreeSummary(tree);
Its branch
"event" takes 3760313
bytes on disk
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
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 Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t bytes
A TTree represents a columnar dataset.
void printSizes() {
}
for(
size_t i = 0; i <
n; ++ i ) {
result += GetBasketSize(
dynamic_cast<TBranch*
>( branches->
At( i ) ), ondisk, inclusive );
}
}
if (ondisk &&
b->GetZipBytes() > 0) {
} else {
}
if (inclusive) {
result += GetBasketSize(
b->GetListOfBranches(), ondisk,
true);
}
}
}
}
f.WriteObject(br,
"thisbranch");
TKey* key =
f.GetKey(
"thisbranch");
if (ondisk)
else
return GetBasketSize(br, ondisk, inclusive) +
size;
}
for(
size_t i = 0; i <
n; ++ i ) {
result += GetTotalSize(
dynamic_cast<TBranch*
>( branches->
At( i ) ), ondisk,
true );
}
}
}
if (key) {
} else {
}
}
if (ondisk) {
} else {
}
}
if (ondisk) {
} else {
}
}
return GetTotalSize(t, true);
}
{
return GetTotalSize(branch, true, inclusive);
}
void printBranchSummary(
TBranch *br)
{
cout <<
"The branch \"" << br->
GetName() <<
"\" takes " << sizeOnDisk(br,
true) <<
" bytes on disk\n";
for(
size_t i = 0; i <
n; ++ i ) {
cout <<
" Its sub-branch \"" << subbr->
GetName() <<
"\" takes " << sizeOnDisk(subbr,
true) <<
" bytes on disk\n";
}
}
void printTreeSummary(
TTree *t)
{
cout <<
"The TTree \"" << t->
GetName() <<
"\" takes " << sizeOnDisk(t) <<
" bytes on disk\n";
for(
size_t i = 0; i <
n; ++ i ) {
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
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.
TFile * GetCurrentFile() const
Return pointer to the current file.
TDirectory * GetDirectory() const
virtual TBranchRef * GetBranchRef() const
virtual TObjArray * GetListOfBranches()