Hall-D Software  alpha
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
bcal_shower.C
Go to the documentation of this file.
1 
2 
3 // hnamepath: /bcal/bcal_shower_plane
4 // hnamepath: /bcal/bcal_shower_t
5 // hnamepath: /bcal/bcal_shower_z
6 
7 
8 {
9  gStyle->SetOptStat(111110);
10  gStyle->SetStatX(0.99);
11  gStyle->SetStatY(0.99);
12  gStyle->SetStatW(0.25);
13 
14  TDirectory *dir = (TDirectory*)gDirectory->FindObjectAny("bcal");
15  if(dir) dir->cd();
16 
17  TH1I *h1 = (TH1I*)gDirectory->FindObjectAny("bcal_shower_plane");
18  TH1I *h2 = (TH1I*)gDirectory->FindObjectAny("bcal_shower_z");
19  TH1I *h3 = (TH1I*)gDirectory->FindObjectAny("bcal_shower_t");
20 
21  // Just for testing
22  if(gPad == NULL){
23  TCanvas *c1 = new TCanvas("c1");
24  c1->cd(0);
25  c1->Draw();
26  c1->Update();
27  }
28 
29  if(!gPad) return;
30  TCanvas *c1 = gPad->GetCanvas();
31  c1->Divide(2, 2);
32 
33  c1->cd(1);
34  gPad->SetTicks();
35  gPad->SetGrid();
36  if(h1) h1->Draw("colz");
37 
38  c1->cd(2);
39  gPad->SetTicks();
40  gPad->SetGrid();
41  gPad->SetLogy();
42  if(h2) h2->Draw();
43 
44  c1->cd(3);
45  gPad->SetTicks();
46  gPad->SetGrid();
47  gPad->SetLogy();
48  if(h3) h3->Draw();
49 
50 }
51 
52 
Double_t c1[2][NMODULES]
Definition: tw_corr.C:68
TDirectory * dir
Definition: bcal_hist_eff.C:31