{ Float_t tccdx, tccdy, tra, tdec, tmag; UShort_t tpval[15][15], tframe; TTree *stars_tree = new TTree("stars_tree", "Stars Tree"); stars_tree->Branch("frame", &tframe, "frame/s"); stars_tree->Branch("ccdx", &tccdx, "ccdx/F"); stars_tree->Branch("ccdy", &tccdy, "ccdy/F"); stars_tree->Branch("ra", &tra, "ra/F"); stars_tree->Branch("dec", &tdec, "dec/F"); stars_tree->Branch("mag", &tmag, "mag/F"); for(int i=1800; i<1803; i++) { for(int j=0; j<14000; j++) { tframe=(UShort_t)i; tmag=0.1*j; tccdx=j/5.; tccdy=j/7.; tra = tccdx*3.5; tdec=tccdy*5.5; stars_tree->Fill(); } TFile *fntp = new TFile("frames_tree.root", "RECREATE"); stars_tree->Write(); // fntp->Close(); delete fntp; } /* TFile *fntp = new TFile("frames_tree.root", "RECREATE"); stars_tree->Write(); // fntp->Close(); delete fntp; */ }