Hi,
I don't quite remember what the issue was but it was related the splitting of some type of object and has abviously it has been fixed :)
Anyway, you can work-around the problem by using:
tt->Branch("fitA","TClonesArray",&_fitA,32000,-1); (which prevents the splitting of the clones array).
Cheers,
Philippe
-----Original Message-----
From: owner-roottalk_at_pcroot.cern.ch [mailto:owner-roottalk_at_pcroot.cern.ch]
On Behalf Of Anyes Taffard
Sent: Monday, May 02, 2005 11:57 AM
To: roottalk_at_pcroot.cern.ch
Subject: [ROOT] Problem with array of TLorentzVector in branch of
TClonesArray
Hi,
I am trying to put into a TTree a TClonesArray of a class that contains an array of TLorentzVector.
The content of the array of TLorentzVector is fine when the TTree has a
branch of the class.
With root version 3.05/07, if the branch is a TClonesArray of that
class, the LorentzVector are mostly empty apart for the 1st one.
With root version 4.00/08, it's working fine.
I attached the code to make such a TTree.
Is there a way that I can get this to work with root 3.05/07 ?
Thanks
Anyes
.x run.C
tree(0); //to make tree
tree(1); //to read tree
Received on Tue May 03 2005 - 09:12:12 MEST
This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:07 MET