TRefArray in JetEvent example

Hi,
I found this interesting example called JetEvent and tried to test it. I run jets.C and got JetEvent.root file.
Now I want to access information written there:

root [0] TFile f("JetEvent.root"); Warning in <TClass::TClass>: no dictionary for class JetEvent is available Warning in <TClass::TClass>: no dictionary for class Jet is available Warning in <TClass::TClass>: no dictionary for class Track is available Warning in <TClass::TClass>: no dictionary for class Hit is available root [1] TTree *T = (TTree*)f.Get("T"); root [2] .L JetEvent.h root [3] JetEvent *event = 0; root [4] T->SetBranchAddress("event", &event); root [6] Int_t nentries = (Int_t)T->GetEntries(); root [7] nentries (Int_t)(100) root [8] T->GetEntry(56); root [12] Int_t Ntr = event->GetNtrack() root [13] Ntr (Int_t)(29) root [14] Int_t Nje = event->GetNjet() root [15] Nje (Int_t)(4)
And that looks fine if I compare it with T->Show(56). But when I try to access information in paricular Jet:

root [16] Jet *j0 = (Jet*)(event->GetJets())->At(0) root [21] j0.fPt (Double_t)2.89474899144763032e-142
I get this extremly small value instead of -3.3144 which is in T->Show(56)…
What am I doing here wrong?

root [2] .L JetEvent.h
You can not use interpreted classes to read information from a TTree. You need to use

Cheers,
Philippe.

Lol, havent noticed that, thanks for a good hint !
I should do:

Now I get correct numbers.

Cheers!