Hi Rene I am trying to create a tree with a branch containing a TLorentzVector, but it doesn't fill the variable (its components Px(),Py(),Pz(),E() in the tree. What is correct for to use TTree::Branch ? (if possible a example). {... TFile *file = new TFile("data.root","RECREATE"); TLorentzVector p4datrad; TTree *tdat = new TTree("tdat","Tree for resolution"); tdat->Branch("p4datrad","TLorentzVector",&p4datrad); ... tdat->fill() } p.s. All others variables ( Double_t,Float_t...) are regularry filled Regards.
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:07 MET