{ TFile *f = new TFile("testt.root", "UPDATE"); TTree *t = new TTree("t", "TestTree"); int i; char C[128][2304]; unsigned char c[128][2304]; int m[128][2304]; t->Branch("i", &i, "i/I"); t->Branch("C", C, "C[128][2304]/B"); t->Branch("c", c, "c[128][2304]/b"); t->Branch("m", m, "m[128][2304]/I"); for(int j=0; j<128; j++) { i=j; for(int n=0; n<128; n++) { for(int k=0; k<2304; ++k) { c[n][k]=n; C[n][k]=n; m[n][k]=n; } } t->Fill(); } t->Write(); f->Close(); }