39 TDirectory *
CDCdir = (TDirectory*)gDirectory->FindObjectAny(
"CDC");
42 if(cdc_num_events) Nevents = (double)cdc_num_events->GetBinContent(1);
45 TDirectory *
dir = (TDirectory*)gDirectory->FindObjectAny(
"rings_occupancy");
52 TCanvas *
c1 =
new TCanvas(
"c1");
60 TCanvas *
c1 = gPad->GetCanvas();
63 TH2D *
axes = (TH2D *)dir->Get(
"axes");
64 if(!axes) axes =
new TH2D(
"axes",
"CDC Occupancy", 100, -65.0, 65.0, 100, -65.0, 65.0);
69 axes->GetZaxis()->SetRangeUser(minScale,
maxScale);
74 for(
unsigned int iring=1; iring<=28; iring++){
76 sprintf(hname,
"cdc_occ_ring[%d]", iring);
77 TH1 *
h = (TH1*)(dir->Get(hname));
79 double min = h->GetMinimum();
83 double max = h->GetMaximum();
89 for(
unsigned int iring=1; iring<=28; iring++){
91 sprintf(hname,
"cdc_occ_ring[%d]", iring);
92 TH1 *
h = (TH1*)(dir->Get(hname));
94 sprintf(hname,
"cdc_occ_ring_norm[%d]", iring);
95 TH1 *hh = (TH1*)h->Clone(hname);
96 hh->Scale(1.0/Nevents);
98 hh->GetZaxis()->SetRangeUser(TheMin*0.95, TheMax*1.05);
100 hh->Draw(
"same col pol");
sprintf(text,"Post KinFit Cut")
static TH1I * cdc_num_events