27 while ((key = (
TKey*)next())) {
28 if (key->IsFolder()) {
29 dir->
cd(key->GetName());
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());
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);
TList * GetListOfLines() const
virtual TList * GetListOfKeys() const
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
virtual Int_t GetEntries() const
Class supporting a collection of lines with C++ code.
Book space in a file, create I/O buffers, to fill them, (un)compress them.
R__ALWAYS_INLINE Bool_t IsZombie() const
Describe directory structure in memory.
Float_t GetCompressionFactor()
Return the file compression factor.
virtual Long64_t GetEND() const
virtual Bool_t cd(const char *path=0)
Change current directory to "this" directory.