Hi Nuno, I cannot reproduce your problem. Could you try the following in $ROOTSYS/test Event 200 0 99 1 root [0] gSystem.Load("libTreePlayer") root [1] TFile *f=new TFile("Event.root") root [2] TTree *mytree=(TTree*)f->Get("T"); root [3] TTreeFormula *formule=new TTreeFormula("formule","fPx<1",mytree); root [4] formule.Print() formule : fPx<1 Ndim= 1, Npar= 0, Noper= 3 fExpr[0] = fPx fOper = 100000 fExpr[1] = 1 fOper = 50000 fExpr[2] = < fOper = 64 If you still have a problem, tell me where I can access a very small file that I can use to test. Rene Brun On Thu, 28 Nov 2002, Nuno Almeida wrote: > Hi all, > > I'm trying to use TTreeFormula in a Tree, and i have the following code: > > TFile *f=new TFile("Evento_teste.root"); > TTree *mytree=(TTree*)f->Get("T"); > TTreeFormula *formule=new TTreeFormula("formule","bx<180",mytree); > > And in the constrution of TTreeFormula i have the following problem: > > 0x40db4121 in TTreeFormula::GetLeafWithDatamember () from > /usr/local/root/lib/libTreePlayer.so > #1 0x40dad8ae in TTreeFormula::DefinedVariable () from > /usr/local/root/lib/libTreePlayer.so > #2 0x407594bf in TFormula::Analyze () from /usr/local/root/lib/libHist.so > #3 0x407583fa in TFormula::Analyze () from /usr/local/root/lib/libHist.so > #4 0x4075e049 in TFormula::Compile () from /usr/local/root/lib/libHist.so > #5 0x40dabae2 in TTreeFormula::TTreeFormula () from > /usr/local/root/lib/libTreePlayer.so > > I'm using rootV3.03/09 with suse linux 7.2 > > I don't understand the problem because i have a leaf called bx and i can > access to him without any problem. > > Anyone as a idea ? > > Best Regards > > Nuno Almeida > >
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:21 MET