int maketree() { const Int_t maxmul=8; Int_t mul; Float_t Eg[maxmul]; TTree *t = new TTree("t","mytree"); TBranch *b = t->Branch("mul",&mul,"mul/I"); TBranch *b1 = t->Branch("Eg",Eg,"Eg[mul]/F"); for (Int_t i=0; i<10000; i++) { Int_t mul1 = int(gRandom->Rndm()*10); mul = mul1%4; for (Int_t j=0; jRndm()*1000; } t->Fill(); } f = new TFile("treehouse.root","recreate"); t->Write(); f->Close(); return 1; }