Re: [ROOT] Save list of objects on Ttree

From: Sebastien Greder (greder@in2p3.fr)
Date: Mon Nov 17 2003 - 13:59:52 MET


 Hi Pavel,

 I guess you should decrease your buffer size in the branch 
 constructor (it is more than 2000 times bigger than the default value)

 replace : 

  tree->Branch(list,70000000,2);

 by : 

  tree->Branch(list,32000,2);

 cheers,

 seb

On Mon, 17 Nov 2003, Pavel Golubev wrote:

> Hi rooters,
> I have problem to save list of objects (TH2F histograms) on Ttree.
> I am running ROOT Version 3.02/07
> After
> 
> TFile f_out(out_file,"recreate");
> TTree *tree = new TTree("tree","2D matrix");
> 
> TList *list = new TList;
> 
> I create and fill number of TH2F histograms in the TList *list.
> 
> list->Add(hist);
> hist -> Fill(x, y, 1);
> 
> Than I use special branch constructor TTree::Branch(TList*list, Int_t
> bufsize, Int_t splitlevel)
> as suggested on ROOTtalk.
> 
> tree->Branch(list,70000000,2);
> tree->Fill();
> 
> But the output file seem to me does not contain any TH2F histograms.
> Also I get messages "R__zip: source buffer too big".
> Best regards,
> /Pavel
> 
> 

------------------------------
 GREDER Sebastien, Doctorant.
 Group D0 IReS.
 IReS, 23 rue du Loess
 67000 STRASBOURG

 mail: greder@in2p3.fr, 
       greder@fnal.gov, 

 tel : (+33) (0)3.88.10.63.54 
-----------------------------



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET