[ROOT] Reading a TTree

From: Marco Ajello (marajell@tin.it)
Date: Mon Jul 28 2003 - 11:08:01 MEST


Hi all.
I am reading a TTree of 200 events.
I have a TBranc called Ivfas_data[2304] of 2304 entries for each
of 200 events.
I want to do something like:

 for (i=0;i<2304;i++){
      h1->Draw("Ivfas_data1[i]","","goff",200,0);
      pedx[i]     = htemp->GetMean();
      rms_pedx[i] = htemp->GetRMS();
      htemp->Reset();

      h1->Draw("Ivfas_data2[i]","","goff",200,0);
      pedy[i]     = htemp->GetMean();
      rms_pedy[i] = htemp->GetRMS();
      htemp->Reset();
But what i get is :: UNKNOWN NAME ""i".
Could you help me?
Best Regards,
Marco



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:14 MET