This macro can be used to get aggregate information on the size take on disk or in memory by the various branches in a TTree.
For example:
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
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.
}
for(
size_t i = 0; i <
n; ++ i ) {
}
}
if (
ondisk &&
b->GetZipBytes() > 0) {
} else {
}
}
}
}
if (
br->GetTree()->GetCurrentFile()) {
f.SetCompressionSettings(
br->GetTree()->GetCurrentFile()->GetCompressionSettings());
}
f.WriteObject(
br,
"thisbranch");
TKey* key =
f.GetKey(
"thisbranch");
else
}
for(
size_t i = 0; i <
n; ++ i ) {
}
}
}
if (key) {
} else {
}
}
} else {
}
}
} else {
}
}
return GetTotalSize(t, true);
}
{
}
{
cout <<
"The branch \"" <<
br->GetName() <<
"\" takes " <<
sizeOnDisk(
br,
true) <<
" bytes on disk\n";
size_t n =
br->GetListOfBranches()->GetEntries();
for(
size_t i = 0; i <
n; ++ i ) {
cout <<
" Its sub-branch \"" <<
subbr->GetName() <<
"\" takes " <<
sizeOnDisk(
subbr,
true) <<
" bytes on disk\n";
}
}
{
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.
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.
TFile * GetCurrentFile() const
Return pointer to the current file.
TDirectory * GetDirectory() const
virtual TBranchRef * GetBranchRef() const
virtual TObjArray * GetListOfBranches()
- Author
Definition in file printSizes.C.