Hi Rudi, A subset of the definition of your Tree is: *Branch :fAHits.HsN : HsN[fAHits_]/S *Branch :fT1Planes.Tpk : Tpk[fT1Planes_]/S *Branch :fT1Planes.Tu : Tu[fT1Planes_]/F *Branch :fT1Planes.Tud : Tud[fT1Planes_]/F The array HsN is indexed on fAHits, but the other arrays are indexed on fT1Planes. The query might be ambiguous and this form is not supported. Only conditions using branches indexed on the same variable are possible. Use TTree::MakeClass to generate a skeleton analysis code. Rene Brun Rudolf Wedenig wrote: > > hello Rene, > > > I cannot reproduce your problem. > > Could you send me your file giving problems with TTree::Draw? > > Coukd you add a short macro with the exact sequence of selections? > > if you execute line 5 and 6 you will get different results (you have > to execute also line 4). > > TFile *f=new TFile ("/afs/cern.ch/user/w/wru/public/DSF915_990525.root"); > TTree *T=(TTree*) f-> Get("T"); > T.Print(); > T->Draw("Tud:Tv","Tpk==9 && abs(Tud)<200 && abs(Tv)<4000"); > > T->Draw("Tud>>h","HsN>5 && Tpk==9 && abs(Tu)<1700 && abs(Tud)<200"); > T->Draw("Tud>>h"," Tpk==9 && abs(Tu)<1700 && abs(Tud)<200 && HsN>5"); > > Rudi
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:34 MET