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
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET