13 gStyle->SetOptStat(kFALSE);
14 gStyle->SetFillStyle(0);
19 TDirectory *
CDCdir = (TDirectory*)gDirectory->FindObjectAny(
"CDC_roc_hits");
26 if(cdc_nevents) Nevents = (double)cdc_nevents->GetBinContent(1);
30 TCanvas *
c1 =
new TCanvas(
"c1",
"c1 CDC_roc_hits",1600,800);
37 TCanvas *
c1 = gPad->GetCanvas();
40 for(
unsigned int iroc=25; iroc<=28; iroc++){
43 gPad->SetLeftMargin(0.001);
44 gPad->SetRightMargin(0.001);
45 gPad->SetBottomMargin(0.02);
46 gPad->SetTopMargin(0.02);
49 sprintf(hname,
"cdc_netamp_roc%d", iroc);
50 TH2 *
h = (TH2*)(CDCdir->Get(hname));
55 TH2 *hh = (TH2*)h->Clone();
61 hh->GetXaxis()->SetTitle(
"");
62 hh->GetYaxis()->SetTitle(
"");
64 hh->GetXaxis()->SetRangeUser(290,1780);
65 hh->GetYaxis()->SetRangeUser(0,4096);
68 hh->GetYaxis()->SetNdivisions(110);
69 hh->GetXaxis()->SetNdivisions(0);
70 hh->GetYaxis()->SetTickLength(0.001);
72 hh->GetYaxis()->SetLabelSize(0);
73 hh->GetYaxis()->SetTitleSize(0);
74 hh->GetXaxis()->SetLabelSize(0);
75 hh->GetXaxis()->SetTitleSize(0);
81 if (iroc==26 || iroc==27) lastslot = 16;
83 TPaveText *pt =
new TPaveText(0.5,0.15,0.7,0.85,
"NDC");
84 pt->AddText(Form(
"ROC %i",iroc));
86 pt->AddText(
"Peak height - pedestal");
87 pt->AddText(
"vs channel");
89 pt->AddText(Form(
"slots 3 to %i",lastslot));
sprintf(text,"Post KinFit Cut")