{ //#include "TFile.h" //#include "TTree.h" auto f = new TFile("f.root", "recreate"); auto t = new TTree("t", "t"); int a=0, b=0; t->Branch("a", &a, "a/I"); t->Branch("b", &b, "b/I"); t->Fill(); t->Write(); f->Close(); }