{ gSystem->Load("EventSTL"); TFile myfile("STL.root"); EventSTL *CC = 0; TTree *T = (TTree*)myfile.Get("T"); T->SetBranchAddress("abc",&CC); for (Int_t i = 18; i < 22; i++) { T->GetEntry(i); CC->VI(); } }