Re: [ROOT] fBits and fUniqueID

From: Rene Brun (Rene.Brun@cern.ch)
Date: Sat Jan 12 2002 - 11:31:18 MET


Hi Axel, Pasha,

I am aware of the problem with TLorentzVector and IgnoreTObjectStreamer.
This was done before we introduced TRef/TRefArray.

I will introduce an option (or make it automatic) such that
a TLorentzVector may be referenced by a TRef.

Rene Brun



On Mon, 7 Jan 2002, Axel Naumann wrote:

> Hi,
> 
> I suppose there's an easy answer, but I can't find it:
> 
> gSystem->Load("libPhysics.so");
> TTree *t1 = new TTree("t1","t1");
> TLorentzVector *plv = new TLorentzVector(0.,1.,2.,3.);
> TClonesArray *pca = new TClonesArray("TLorentzVector");
> t1->Branch("lv1","TClonesArray",&pca,1000,99);
> t1->Branch("lv2","TLorentzVector",&plv,1000,99);
> t1->Print();
> 
> fBits and fUniqueID are gone in both cases. Why? And why doesn't it help to
> specify IgnoreObjectStreamer(kFALSE) on TLorentzVector? Is it because
> TLorentzVector has its own Streamer implementation (or an old one, without
> "+")? If so, is that really necessary? The lack of these TObject members
> means that TRef doesn't work on any class deriving from TLorentzVector...
> 
> Cheers, Axel.
> 



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:38 MET