Hi, see new lines below: Rene Brun On Tue, 13 Aug 2002, Takefumi SORA wrote: > Hi, > > As for the mail I sent before, I have a trouble. > > TH1F *hnew = new TH1F("hnew","hnew",100,0,1000); > > Int_t N_entry = tree->GetEntries(); > Float_t ThresholdEntry = N_entry*0.005; > Int_t i; > Int_t number=0; > for(i=100,number<ThresholdEntry,i++){ char cut[2]; <======== sprintf(cut(,"ch0 > %d",i); //<=========== > tree->Draw("ch0 >> hnew", cut ); //<============= > number = hnew->GetEntries(); > } > > Error message : Unknown name : "i" > What should I do to compare Leaf with a variable ? > > > -- > Takefumi SORA <tak-sora@bg7.so-net.ne.jp> >
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:04 MET