Hi,
use e.g.
TCanvas* canv[8];
for (Int_t count1=0; count1<8; ++count1) {
TString title("Canvas number ");
title+=count1;
canv[count1]=new TCanvas(Form("canv%d",count1), title);
canv[count1]->Divide(10,8);
for (Int_t count2=0; count2<80; ++count2) {
canv[count1]->cd(count2);
spt->Draw(Form("count[%d][%d]:time", count1, count2));
}
}
Axel.
Zhu FengRong wrote:
> hi,
> I now begin use TTree,the script is like this:
> TFile fr("spt.root","new");
> TTree *spt=new TTree("spt","spt check");
> spt->Branch("time",&timee,"time/D");
> spt->Branch("count",grbEvent.r,"count[8][80]/I");
> ......
> spt->Fill();
> ......
> fr.Write();
> fr.Close();
> After open the spt.root file,I can draw figures one by one with the
> command:spt->Draw("count[0][0]:time");
> spt->Draw("count[0][1]:time");
> spt->Draw("count[0][2]:time");
> ............................
> but 640(8*80) figures will cost much too time.
> I want to know if there are methods to draw these figures and save
> quickly?
>
> Thanks a lot
>
>
> with best wishes,
> Fengrong Zhu
> Institute of High Energy Physics,
> C.A.S P.R.C
> zhufr_at_ihep.ac.cn
> --
> Open WebMail Project (http://openwebmail.org)
>
Received on Fri Sep 30 2005 - 09:10:48 MEST
This archive was generated by hypermail 2.2.0 : Tue Jan 02 2007 - 14:45:12 MET