]>
Commit | Line | Data |
---|---|---|
917559ee | 1 | |
2 | void drawEnergyDeposit(const char *filename) { | |
3 | ||
4 | gROOT->SetStyle("Plain"); | |
5 | gStyle->SetPadRightMargin(0.01); | |
6 | gStyle->SetPadTopMargin(0.01); | |
7 | gStyle->SetPadLeftMargin(0.07); | |
8 | gStyle->SetPadBottomMargin(0.07); | |
9 | gStyle->SetOptStat(0); | |
10 | TGaxis::SetMaxDigits(3); | |
11 | ||
12 | TFile *file = new TFile(filename, "READ"); | |
13 | if (file->IsZombie()) return; | |
14 | ||
15 | TCanvas *c = new TCanvas(); | |
16 | c->Divide(5, 4, 0.001, 0.001); | |
17 | ||
18 | for(int i=0; i<5; i++) { | |
19 | TH1 *hist = (TH1*)file->Get(Form("probPos%d", i)); | |
20 | c->cd(i+1); | |
21 | gPad->SetLogy(); | |
22 | hist->Draw(); | |
23 | } | |
24 | ||
25 | for(int i=0; i<5; i++) { | |
26 | TH1 *hist = (TH1*)file->Get(Form("ptSigPos%d", i)); | |
27 | c->cd(i+6); | |
28 | gPad->SetLogx(); | |
29 | hist->Draw("col"); | |
30 | } | |
31 | ||
32 | for(int i=0; i<5; i++) { | |
33 | TH1 *hist = (TH1*)file->Get(Form("probNeg%d", i)); | |
34 | c->cd(i+11); | |
35 | gPad->SetLogy(); | |
36 | hist->Draw(); | |
37 | } | |
38 | ||
39 | for(int i=0; i<5; i++) { | |
40 | TH1 *hist = (TH1*)file->Get(Form("ptSigNeg%d", i)); | |
41 | c->cd(i+16); | |
42 | gPad->SetLogx(); | |
43 | hist->Draw("col"); | |
44 | } | |
45 | } |