48 TDirectory *
dir = (TDirectory*)gDirectory->FindObjectAny(
"occupancy");
52 TH1I *
cdc_num_events = (TH1I*)gDirectory->FindObjectAny(
"cdc_num_events");
53 if(cdc_num_events) Nevents = (double)cdc_num_events->GetBinContent(1);
54 TH2D *cdc_axes = (TH2D *)gDirectory->FindObjectAny(
"cdc_axes");
59 TCanvas *
c1 =
new TCanvas(
"c1");
66 TCanvas *
c1 = gPad->GetCanvas();
72 cdc_axes->SetStats(0);
73 cdc_axes->Fill(100,100);
74 cdc_axes->GetZaxis()->SetRangeUser(minScale,
maxScale);
75 cdc_axes->Draw(
"colz");
78 TEllipse *
e =
new TEllipse(0.0, 0.0, 56.0, 56.0);
81 e =
new TEllipse(0.0, 0.0, 9.55, 9.55);
86 for(
unsigned int iring=1; iring<=28; iring++){
88 sprintf(hname,
"cdc_occ_ring_%02d", iring);
89 TH1 *
h = (TH1*)(dir->Get(hname));
91 sprintf(hname,
"cdc_occ_ring_norm_%02d", iring);
92 TH1 *hh = (TH1*)h->Clone(hname);
93 hh->Scale(1.0/Nevents);
94 hh->GetZaxis()->SetRangeUser(minScale,
maxScale);
96 hh->Draw(
"same col pol");
101 sprintf(str,
"%g events", Nevents);
103 lat.SetTextAlign(22);
104 lat.SetTextSize(0.035);
105 lat.DrawLatex(0.0, 61.0, str);
sprintf(text,"Post KinFit Cut")
static TH1I * cdc_num_events