[ROOT] Reading of rootfiles....

From: zaldy (zaldy@neutrino.kek.jp)
Date: Tue Jul 01 2003 - 08:57:25 MEST


Dear Root Experts,


I chain 35 root file using the script below. The Code is OK (because
it is working and I got some output plots), but one thing that I noticed 
and for which I would like to verify is the line which I indicated below.


Only the Name of the last file appears. I just want to make sure if 
root have really read all the 35 files or just the lastfile. 

Is the appearance of the last filename normal for this version?
 
Afterall, root could have read the first file only or maybe the 5th file 
only.

I just want to make sure that I analyzed the WHOLE data.

Is there a way/command in root to verify that all the root files under 
TChain are read? (i.e., similar to "f.ls()" or "f.Print()" )


Thank you very much.




//--------------------------------------
    //FileName:  ChainScriptLoader.C
{
   gROOT->Reset();

   TChain Cosmic("hh");
   char file_name[128];

   for (Int_t ii=1; ii<36; ii++ ) {
    if (ii<=9)
    sprintf(file_name,"hit000541.00000%d.cr.root",ii);
    else
    sprintf(file_name,"hit000541.0000%d.cr.root",ii);

    Cosmic.Add(file_name);

}

//---------------------------------------
//          Compiler: gcc 2.91.66
            ^^^^^^^^^^^^^^^^^^^^^
  *******************************************
  *                                         *
  *        W E L C O M E  to  R O O T       *
  *                                         *
  *   Version   3.04/02  18 December 2002   *
  *                                         *
  *  You are welcome to visit our Web site  *
  *          http://root.cern.ch            *
  *                                         *
  *******************************************

Compiled for linux with thread support.

CINT/ROOT C/C++ Interpreter version 5.15.68, Dec 12 2002
Type ? for help. Commands must be C++ statements.
Enclose multiple statements between { }.
root [0] .x ChainScriptLoader.C
tv__tree = (TTree *) gROOT->FindObject("h1");
tv__tree_list->Add(tv__tree);
File name : hit000541.000035.cr.root   <==================| this line |=====
root [1] 

-- 

--------------------------------------------------------
                   Zaldy A. Nawang 
                   PS Users Room 2
                   Yon Gokan, 
                   E362, Neutrino Group, 
                   IPNS, KEK, 
                   Japan 
                    
                   e-mail: zaldy@neutrino.kek.jp
                   Tel. No. : (81) 029864 - 5387
--------------------------------------------------------



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:12 MET