Re: [ROOT] Problem with TF1

From: Takefumi SORA (tak-sora@bg7.so-net.ne.jp)
Date: Tue Aug 13 2002 - 14:28:08 MEST


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++){
  tree->Draw("ch0 >> hnew", "ch0 > i" );
  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