Hi Rooters, The problem is the following: I am creating a TTree with many branches, most of them added by hand using TBranch::GetListOfBranches()->Add(...), once the tree is created i fill it with some data. Then i've used TTree::Print() for debugging; in the output of the tree and i get some branches with "Total size=0" and "Baskets=0", so i thought the data were not stored. However if i do a histogram (with TTree::Draw()) the data are there and they seem to be right (i get the expected histogram...) Am i missunderstunding the info given by TTree::Print()?, if not, What do you think the problem can be? This is part of the output of TTree::Print().- *Branch :mdc.r.S1.LA1 : mdc.r.S1.LA1 * *Entries : 10 : BranchObject (see below) * *..................................................................................* *Branch :mdc.r.S1.LA1.fName.*fData : fData * *Entries : 10 : Total Size = 1100 bytes File Size = 1130 * *Baskets : 10 : Basket Size = 100 bytes Compression= 0.97 * *............................................................................* *Branch :mdc.r.S1.LA1.fTitle.*fData : fData * *Entries : 10 : Total Size = 1030 bytes File Size = 1110 * *Baskets : 10 : Basket Size = 100 bytes Compression= 0.93 * *............................................................................* *Branch :mdc.r.S1.LA1.fUniqueID : fUniqueID * *Entries : 10 : Total Size = 196 bytes File Size = 184 * *Baskets : 2 : Basket Size = 100 bytes Compression= 1.07 * *............................................................................* *Branch :mdc.r.S1.LA1.fBits : fBits * *Entries : 10 : Total Size = 98 bytes File Size = 91 * *Baskets : 1 : Basket Size = 100 bytes Compression= 1.08 * *............................................................................* *Branch :mdc.r.S1.LA1.HMdcRaw_ : mdc.r.S1.LA1.HMdcRaw_/I * *Entries : 10 : Total Size = 0 bytes File Size = 0 * *Baskets : 0 : Basket Size = 4000 bytes Compression= 1.00 * ************************************************************************* *Branch :mdc.r.S1.LA1.HMdcRaw.fTime1 : fTime1[mdc.r.S1.LA1.HMdcRaw_]/F * *Entries : 10 : Total Size = 0 bytes File Size = 0 * *Baskets : 0 : Basket Size = 4000 bytes Compression= 1.00 * ************************************************************************* *Branch :mdc.r.S1.LA1.HMdcRaw.fTime2 : fTime2[mdc.r.S1.LA1.HMdcRaw_]/F * *Entries : 10 : Total Size = 0 bytes File Size = 0 * *Baskets : 0 : Basket Size = 4000 bytes Compression= 1.00 * *............................................................................* *Branch :mdc.r.S1.LA1.HMdcRaw.fUniqueID : fUniqueID[mdc.r.S1.LA1.HMdcRaw_]/i* *Entries : 10 : Total Size = 0 bytes File Size = 0 * *Baskets : 0 : Basket Size = 4000 bytes Compression= 1.00 * *............................................................................* *Branch :mdc.r.S1.LA1.HMdcRaw.fBits : fBits[mdc.r.S1.LA1.HMdcRaw_]/i * *Entries : 10 : Total Size = 0 bytes File Size = 0 * *Baskets : 0 : Basket Size = 4000 bytes Compression= 1.00 * *............................................................................* And this is what i use to get the histogram: root [0] TFile ("test.root") root [1] T->Draw("mdc.r.S1.LA1.HMdcRaw.fTime1") Thanks in advance, Manuel
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:32 MET