RE: problem on ROOT I/O with TClonesArray of TVector3

From: Philippe Canal <pcanal_at_fnal.gov>
Date: Sat, 18 Feb 2006 00:54:32 -0600


Hi Hajime,

I was able to correct this problem. It is now fixed in the CVS repository, Thanks for reporting this issue.

Cheers,
Philippe.

-----Original Message-----
From: owner-roottalk_at_pcroot.cern.ch [mailto:owner-roottalk_at_pcroot.cern.ch] On Behalf Of Hajime Nanjo
Sent: Thursday, February 02, 2006 4:37 AM To: roottalk_at_pcroot.cern.ch
Subject: [ROOT] problem on ROOT I/O with TClonesArray of TVector3

Dear ROOT developers,

A class named "B" has a member "fA", which is a TClonesArray of a class "A". The class "A" has two members, "int val" and "TVector3 tv".

I succeeded in ROOT I/O with the class "B" but found a strange behavior as follows.

Two operations,  "tree->Draw("B.fA.tv.fZ")"
and              "tree->Draw("B.fA.tv.Z()")"
return the same result as expected.

But "tree->Draw("B.fA.tv.Z()","B.fA.val==1")" returns a wrong result,
which is differ from the result of
"tree->Draw("B.fA.tv.fZ","B.fA.val==1")".

Could you fix the strange behavior?

I use ROOT version 5.09/01 under Scientific Linux 4.1. The source file are attached.
The usage is as follows.

tar xvzf test.tgz
cd test
source make.sh
./write

root
root [0] .x draw.C

Best Regards,
Hajime

	Department of Physics, Kyoto University
				Hajime Nanjo
Received on Sat Feb 18 2006 - 08:07:31 MET

This archive was generated by hypermail 2.2.0 : Mon Jan 01 2007 - 16:31:57 MET