27 while ((key = (
TKey*)next())) {
38 if (strstr(key->
GetName(),
".h")) nh++;
39 if (strstr(key->
GetName(),
".c")) nc++;
40 if (strstr(key->
GetName(),
".C")) nC++;
41 if (strstr(key->
GetName(),
".py")) npy++;
50 printf(
"File code.root does not exist. Run tutorial importCode.C first\n");
53 printf(
"Reading file ==> code.root\n");
54 printf(
"File size in bytes = %lld\n",
f->GetEND());
55 printf(
"File compression factor = %g\n",
f->GetCompressionFactor());
59 printf(
"Number of sub-dirs = %d\n",ndirs);
60 printf(
"Number of macro files = %d\n",nfiles);
61 printf(
"Number of lines in mac = %d\n",nlines);
62 printf(
"Number of cxx,c,cc files = %d\n",nc);
63 printf(
"Number of C files = %d\n",nC);
64 printf(
"Number of Python files = %d\n",npy);
virtual Int_t GetEntries() const
Describe directory structure in memory.
virtual Bool_t cd()
Change current directory to "this" directory.
virtual TList * GetListOfKeys() const
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
Book space in a file, create I/O buffers, to fill them, (un)compress them.
Bool_t IsFolder() const override
Check if object referenced by the key is a folder.
virtual TObject * ReadObj()
To read a TObject* from the file.
Class supporting a collection of lines with C++ code.
TList * GetListOfLines() const
const char * GetName() const override
Returns name of object.