15 TDirectory *
dir = (TDirectory*)gDirectory->FindObjectAny(
"tof");
18 TH2I *
planeHor = (TH2I*)gDirectory->FindObjectAny(
"planeHor");
19 TH2I *
planeVer = (TH2I*)gDirectory->FindObjectAny(
"planeVer");
21 TH1I *
histPed = (TH1I*)gDirectory->FindObjectAny(
"histPed");
22 TH1I *
hTimeAdc = (TH1I*)gDirectory->FindObjectAny(
"hTimeAdc");
23 TH1I *
hTimeTdc = (TH1I*)gDirectory->FindObjectAny(
"hTimeTdc");
25 TH1I *ha_s = (TH1I*)gDirectory->FindObjectAny(
"adcOccS");
26 TH1I *ha_n = (TH1I*)gDirectory->FindObjectAny(
"adcOccN");
27 TH1I *ha_u = (TH1I*)gDirectory->FindObjectAny(
"adcOccU");
28 TH1I *ha_d = (TH1I*)gDirectory->FindObjectAny(
"adcOccD");
30 TH1I *h_s = (TH1I*)gDirectory->FindObjectAny(
"tdcOccS");
31 TH1I *h_n = (TH1I*)gDirectory->FindObjectAny(
"tdcOccN");
32 TH1I *h_u = (TH1I*)gDirectory->FindObjectAny(
"tdcOccU");
33 TH1I *h_d = (TH1I*)gDirectory->FindObjectAny(
"tdcOccD");
35 TLegend *legend_sa =
new TLegend(0.1,0.85,0.3,0.9);
36 TLegend *legend_na =
new TLegend(0.3,0.85,0.5,0.9);
37 TLegend *legend_ua =
new TLegend(0.5,0.85,0.7,0.9);
38 TLegend *legend_da =
new TLegend(0.7,0.85,0.9,0.9);
40 TLegend *legend_s =
new TLegend(0.1,0.85,0.3,0.9);
41 TLegend *legend_n =
new TLegend(0.3,0.85,0.5,0.9);
42 TLegend *legend_u =
new TLegend(0.5,0.85,0.7,0.9);
43 TLegend *legend_d =
new TLegend(0.7,0.85,0.9,0.9);
45 ha_s->SetBarWidth(0.5);
46 ha_s->SetBarOffset(0);
47 ha_s->SetFillColor(2);
49 ha_s->SetXTitle(
"Module number");
50 ha_s->SetYTitle(
"fADC occupancy");
51 ha_s->SetTitleSize(0.05,
"X");
52 ha_s->GetXaxis()->CenterTitle();
53 ha_s->SetTitleSize(0.05,
"Y");
54 ha_s->GetYaxis()->CenterTitle();
56 ha_n->SetBarWidth(0.5);
57 ha_n->SetBarOffset(0.5);
58 ha_n->SetFillColor(3);
61 ha_u->SetBarWidth(0.5);
62 ha_u->SetBarOffset(1.0);
63 ha_u->SetFillColor(4);
66 ha_d->SetBarWidth(0.5);
67 ha_d->SetBarOffset(1.5);
68 ha_d->SetFillColor(6);
71 h_s->SetBarWidth(0.5);
75 h_s->SetXTitle(
"Module number");
76 h_s->SetYTitle(
"TDC occupancy");
77 h_s->SetTitleSize(0.05,
"X");
78 h_s->GetXaxis()->CenterTitle();
79 h_s->SetTitleSize(0.05,
"Y");
80 h_s->GetYaxis()->CenterTitle();
82 h_n->SetBarWidth(0.5);
83 h_n->SetBarOffset(0.5);
87 h_u->SetBarWidth(0.5);
88 h_u->SetBarOffset(1.0);
92 h_d->SetBarWidth(0.5);
93 h_d->SetBarOffset(1.5);
97 planeHor->SetXTitle(
"X, cm");
98 planeHor->SetYTitle(
"Y, cm");
99 planeHor->SetStats(0);
100 planeHor->SetTitleSize(0.05,
"X");
101 planeHor->GetXaxis()->CenterTitle();
102 planeHor->SetTitleSize(0.05,
"Y");
103 planeHor->GetYaxis()->CenterTitle();
105 planeVer->SetXTitle(
"X, cm");
106 planeVer->SetYTitle(
"Y, cm");
107 planeVer->SetStats(0);
108 planeVer->SetTitleSize(0.05,
"X");
109 planeVer->GetXaxis()->CenterTitle();
110 planeVer->SetTitleSize(0.05,
"Y");
111 planeVer->GetYaxis()->CenterTitle();
113 legend_sa->AddEntry(ha_s,
"South",
"f");
114 legend_na->AddEntry(ha_n,
"North",
"f");
115 legend_ua->AddEntry(ha_u,
"Up",
"f");
116 legend_da->AddEntry(ha_d,
"Down",
"f");
118 legend_s->AddEntry(h_s,
"South",
"f");
119 legend_n->AddEntry(h_n,
"North",
"f");
120 legend_u->AddEntry(h_u,
"Up",
"f");
121 legend_d->AddEntry(h_d,
"Down",
"f");
126 TCanvas *
c1 =
new TCanvas(
"c1");
133 TCanvas *c1 = gPad->GetCanvas();
136 if(ha_s) ha_s->Draw(
"BAR");
137 if(ha_n) ha_n->Draw(
"BAR sames");
138 if(ha_u) ha_u->Draw(
"BAR sames");
139 if(ha_d) ha_d->Draw(
"BAR sames");
147 if(h_s) h_s->Draw(
"BAR");
148 if(h_n) h_n->Draw(
"BAR sames");
149 if(h_u) h_u->Draw(
"BAR sames");
150 if(h_d) h_d->Draw(
"BAR sames");
158 if(histPed) histPed->Draw(
"");
161 if(planeVer) planeVer->Draw(
"COLZ");
164 if(planeHor) planeHor->Draw(
"COLZ");
167 if(hTimeAdc) hTimeAdc->Draw(
"");
170 if(hTimeTdc) hTimeTdc->Draw(
"");