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 TList * GetListOfKeys() const
virtual Bool_t cd(const char *path=nullptr)
Change current directory to "this" directory.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format.
Book space in a file, create I/O buffers, to fill them, (un)compress them.
Bool_t IsFolder() const
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
virtual const char * GetName() const
Returns name of object.