]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWG0/trigger/show.C
small update to print the results
[u/mrichter/AliRoot.git] / PWG0 / trigger / show.C
1 void show(const char* fileName = "trigger.root")
2 {
3   TFile::Open(fileName);
4   
5   Int_t count = 0;
6   while (1)
7   {
8     hist = (TH1*) gFile->Get(Form("fStats_%d", count));
9     if (!hist)
10       break;
11     
12     c = new TCanvas;
13     hist->Draw();
14     c->SaveAs(Form("trigger_%d.png", count));
15     
16     count++;
17   }
18 }