RE: [ROOT] TClonesArray problem with v4.00/04

From: Philippe Canal (pcanal@fnal.gov)
Date: Sat May 08 2004 - 01:42:03 MEST


Hi Kate,

Thanks for reporting this problems (which appears when a pointer to 
a TObjewct with the -> option is followed by an int).  The problem
will be fixed shortly in the CVS repository.

In the meantime you can work around the problem by adding to 
you ROOT file writer (testroot):

   myRootEvent::Class()->GetStreamerInfo()->Optimize(kFALSE);

Cheers,
Philippe.

-----Original Message-----
From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Kate Scholberg
Sent: Friday, May 07, 2004 9:32 AM
To: roottalk@pcroot.cern.ch
Subject: [ROOT] TClonesArray problem with v4.00/04


Hi,

My code which worked fine with Root 3.10/02 is now broken with Root
4.00/04 (actually, yesterday's cvs version).  I am running RH7.3 and I
built Root with gcc 3.3.2 (not standard 7.3 compiler).

I've tried to boil it down to the simplest possible program that
exercises the bug:

http://cyclo.mit.edu/~schol/testroot/

It's a simple class, based on Event in $ROOTSYS/test, that has one
TClonesArray of simple Tracks.

testroot.cc creates my.root with 1 event with 2 tracks

testread.C  reads the file.

With Root 3.10/02 it all works as expected, but for Root 4.00/04 and
later in cvs, I get

root [0] .x testread.C
nevent 1
TClonesArray::Streamer expecting class
Ntrack 0

Any ideas, before I delve deeper?

Kate



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:08 MET