[ROOT] I/O problem with ROOT 3.00/05

From: GENTIT Francois-Xavier DAPNIA (GENTIT@dapnia.cea.fr)
Date: Fri Feb 23 2001 - 17:09:58 MET


   Dear rooters,
   In my program LITRANI [http://gentit.home.cern.ch/gentit/], I write a
file containing essentially histograms and statistics and containing 2
classes [TResults and TPublication] plus a TTree of objects of classes
TResults. TResults and TPublication are classes of Litrani, deriving from
classes of ROOT. Looking at the file it is what one sees (either with
Litrani built with ROOT 3.00/02 or ROOT 3.00/05) :

root [0] TFile f("transmission1.root");
root [1] f.ls();
TFile**         transmission1.root
 TFile*         transmission1.root
  KEY: TTree    T;1     Statistics and Histos for each run
  KEY: TResults GlobStat;1      Global statistics of all runs
  KEY: TPublication     Summary;1       wavelength of laser


   The problem is that everything works fine with Litrani built with ROOT
3.00/02 and NOT with Litrani built with ROOT 3.00/05 ! With ROOT 3.00/05 I
cannot read from the file (created with Litrani built with ROOT 3.00/05) the
class TPublication. When I do :

  TPublication *p;
   p = (TPublication *) f.Get("Summary;1");

   the program crashes without any warning. I can read the class TResults
and the tree.

   It does not happen with (the same) Litrani built with ROOT 3.00/02 and
file created by the same.

   I do not find anything wrong in my code. Does somebody have an idea ?
Thanks a lot in advance.

          F.X. Gentit
          DAPNIA/SPP CEN Saclay
          tel : 01 69 08 30 38     fax : 01 69 08 64 28
          web : http://home.cern.ch/~gentit/


   



This archive was generated by hypermail 2b29 : Fri Jun 08 2001 - 11:51:14 MEST