Re: [ROOT] TTree->GetEntry() Problem

From: Rene Brun (Rene.Brun@cern.ch)
Date: Thu Feb 12 2004 - 20:52:40 MET


Hi Claus,

You have a missing "+" in the statement;
       Int_t ientry(signal->LoadTree(jentry));

Rene Brun

On Thu, 12 Feb 2004, Claus 
Horn 
wrote:

> Hi Rooters,
> 
> why does:
> 
>     nSignalEvents = 1000;
>     for (Int_t jentry=0; jentry < nSignalEvents; jentry++) {
> 	Int_t ientry(signal->LoadTree(jentry));
> //	cout << "ientry: " << ientry << endl;  //is OK
> 
> 	signal->b_ptmiss->GetEntry(ientry) << endl;
> 
> 	cout << "ptmiss: " << signal->ptmiss << endl;
>     }
> 
> give 1000 times the same value for ptmiss ?
> The ntuple is OK, just GetEntry() does not work.
> 
> I would be very happy for any help,
> 
> Claus
> 



This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:05 MET