Extract TLorentVector from a TClonesArray

Dear all,

I’m using rootple produced with a code that store a series of TLorentzVector* inside TClonesArray and I would like to retrieve back
the TLorentzVector* in my analysis code.

What I have to do?

What I have tried without success is:

for(int i=0;i<InclusiveJet->GetSize();++i)
  {
if(fabs((InclusiveJet->At(i))->Eta())<etaRegion)
  nIncJet++;
  }

where InclusiveJet is a TClonesArray* but when I tried to build the library
I get the following error:
error: ‘class TObject’ has no member named ‘Eta’

Cheers,
Filippo

Do:

for(int i=0;i<InclusiveJet->GetSize();++i) { TLorentzVector *v = (TLorentzVector*)InclusiveJet->At(i); f(fabs(v->Eta())<etaRegion) nIncJet++; }

Rene