{ TFile *f = TFile::Open("VBF_QED2_QCD2_BKG_FastME_2.root"); TTree *t = (TTree*)f->Get("VBF"); //t->Print(); struct particle{ Int_t id[6]; Double_t pt[6]; Double_t pt_res[6]; Double_t eta[6]; Double_t eta_res[6]; Double_t phi[6]; Double_t phi_res[6]; }; particle Particle; Double_t Zon_mass; t->SetBranchAddress("Particle",&Particle); t->SetBranchAddress("Zon_mass",&Zon_mass); for(int i=0; i<10; i++){ t->GetEntry(i); cout<< "Particle: " << Particle.pt[0] << " | " << Particle.eta[0] << " | " << Particle.phi[0] << endl; cout<<"Zon_mass: "<