Hi Francesco, see Users Guide page 249. example: root [0] gSystem.Load("libPhysics") root [1] TLorentzVector::Class()->IgnoreTObjectStreamer() root [2] TTree T("T","test") root [3] TClonesArray *c = new TClonesArray("TLorentzVector") root [4] T.Branch("e","TClonesArray",&c) root [5] T.Print() Rene Brun Perfetto Francesco wrote: > > Hi, > > I use root 3.05/07 on linux 2.4.18-18.7.x.cern Red Hat 7.3 (Valhalla) > > My problem is that after run my program of analysis in which there are > TLorentzVector and TCloneArray: > > ... > > TClonesArray *p4_pi_ini_recA = new TClonesArray("TLorentzVector", 3); > TClonesArray *p4_ph_ini_recA = new TClonesArray("TLorentzVector", 7); > > TLorentzVector *p4_eta_gen = new TLorentzVector(); > TLorentzVector *p4_eta_fin = new TLorentzVector(); > > TTree *res = new TTree("res","res di prova"); > > res->Branch("p4_ph_ini_recA." ,"TClonesArray" ,&p4_ph_ini_recA,32000,99); > res->Branch("p4_pi_ini_recA." ,"TClonesArray" ,&p4_pi_ini_recA,32000,99); > > res->Branch("p4_eta_gen." ,"TLorentzVector",&p4_eta_gen); > res->Branch("p4_eta_fin." ,"TLorentzVector",&p4_eta_fin); > > ... > > when I open the browser, with the right variable (leaf) "p4_eta_fin.fE" > and (branch) "p4_eta_fin.fP" there is too the variable (branch) > "p4_eta_fin.TObject" that I haven't create and I would like that it not > exist. clicking on "p4_eta_fin.TObject", I see two leaf > "p4_eta_fin.TObject.fBits" and "p4_eta_fin.TObject.fUniqueID". > Same for the p4_eta_fin_fP.fBits and ...fP.fUniqueID > > What is it ? > why there is this leaf (branch) ? > how can I do to haven't this ? > > Thanks > Francesco.
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:15 MET