Hi, This is supposed to be working in root-3.01.05. Could you send me you root file so that I can reproduce the problem (which might be that you 'forgot' to initialize fH .... or ROOT forgot to check for zeros :( ). Cheers, Philippe. -----Original Message----- From: owner-roottalk@pcroot.cern.ch [mailto:owner-roottalk@pcroot.cern.ch]On Behalf Of Mike Kordosky Sent: Friday, June 29, 2001 1:36 AM To: ROOTtalk Mailing List Subject: [ROOT] TTreeFormula: Should this work? Hi, I have a tree with a TClonesArray branch, named fSummary. The array contains objects of type: class TestSummary: public TObject{ private: UShort_t fType; Double_t fMean; Float_t fHV; TH1F* fH; public: TestSummary(): fH(0) { } // ... // } I am writing this in split mode 2, root-3.01.05. I find that I can do such things as: tree->Draw("fSummary[1].fMean"); but not: tree->Draw("fSummary[3].fH.GetMean()"); tree->Draw("fSummary.fH.GetMean()"); which give a segv. Is this the expected behaviour? Based on examples I have found, the problem appears to be the clones array. Is there any plan to support such queries in the future? Mike Kordosky /////////////////////////////////////////////////////////////////// // Graduate Research Assistant // High Energy Physics // // RLM Office: (512) 471-8426 // University of Texas, Austin // // RLM Lab: (512) 471-3526 // kordosky@hep.utexas.edu // // ENS Lab: (512) 475-8673 // kordosky@fnal.gov // ///////////////////////////////////////////////////////////////////
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:50 MET