1 void showAll(const char* fileName = "trigger.root")
10 hist = (TH1*) gFile->Get(Form("fStats_%d", count));
17 c->SaveAs(Form("trigger_%d.png", count));
18 Printf("%s: %d", hist->GetTitle(), (Int_t) hist->GetEntries());
26 base = (Int_t) fStats[0]->Integral(0, fStats[0]->GetNbinsX()+1);
28 for (Int_t i=0; i<count; i++)
33 Printf("%s: %d triggers | %f %% of all triggered", fStats[i]->GetTitle(), (UInt_t) fStats[i]->Integral(0, fStats[i]->GetNbinsX()+1), 100.0 * fStats[i]->Integral(0, fStats[i]->GetNbinsX()+1) / base);
38 void show(const char* fileName = "trigger.root")
40 TFile::Open(fileName);
42 c = new TCanvas("c", "c", 1500, 1000);
45 for (Int_t i=0; i<4; i++)
47 for (Int_t j=6; j<=8; j++)
49 hist = (TH1*) gFile->Get(Form("fStats_%d_%d", i, j));
58 c->SaveAs("trigger_rates.png");