26 #include <TPaveText.h> 33 int copyContents(TH1F **hDest, TString hname, TString htitle,
const TH1F *hSrc,
int lastBin);
40 gROOT->SetStyle(
"Plain");
41 gStyle->SetOptStat(0);
42 gStyle->SetOptTitle(1);
55 for (
unsigned int i = promt.size() - 11;
i < promt.size() - 5;
i++)
58 TFile *hfile =
new TFile(
fname,
"READ");
60 TDirectory *
dir = (TDirectory *)hfile->FindObjectAny(dirnm.c_str());
63 double Cut0[7][5][8] = {
64 {{0., 0., 0., 0., 0., 0., 0., 0.},
65 {0., 1.0, 1.0, 0., 0., 0., 0., 0.},
66 {0., 1., 1., 1., 0., 0., 0., 0.},
67 {0., 0., 0., 0., 1., 0., 0., 0.},
68 {0., 1., 1., 0., 0., 0., 0., 0.}},
76 {{0., 0., 0., 0., 0., 0., 0., 0.},
77 {0., 3500., 3500., 3500., 3500., 0., 0., 0.},
78 {0., 12000., 4500., 3500., 3500., 4000., 4500., 5500.},
79 {0., 0., 0., 0., 200., 0., 0., 0.},
80 {0., 4500., 4500., 4500., 4500., 0., 0., 0.}},
81 {{0., 0., 0., 0., 0., 0., 0., 0.},
82 {0., 3., 3., 0., 0., 0., 0., 0.},
83 {0., 3., 3., 3., 0., 0., 0., 0.},
84 {0., 0., 0., 0., 3., 0., 0., 0.},
85 {0., 2., 2., 0., 0., 0., 0., 0.}},
86 {{0., 0., 0., 0., 0., 0., 0., 0.},
87 {0., 0.4, 0.4, 0., 0., 0., 0., 0.},
88 {0., 0.4, 0.4, 0.4, 0., 0., 0., 0.},
89 {0., 0., 0., 0., 0.4, 0., 0., 0.},
90 {0., 0.8, 0.8, 0., 0., 0., 0., 0.}},
91 {{0., 0., 0., 0., 0., 0., 0., 0.},
92 {0., 4.7, 4.7, 0., 0., 0., 0., 0.},
93 {0., 4.8, 4.8, 5.0, 0., 0., 0., 0.},
94 {0., 0., 0., 0., 4.8, 0., 0., 0.},
95 {0., 4.0, 4.0, 0., 0., 0., 0., 0.}},
96 {{0., 0., 0., 0., 0., 0., 0., 0.},
97 {0., 3.5, 3.5, 0., 0., 0., 0., 0.},
98 {0., 4.0, 4.0, 4.0, 0., 0., 0., 0.},
99 {0., 0., 0., 0., 3., 0., 0., 0.},
100 {0., 3.5, 3.5, 0., 0., 0., 0., 0.}},
101 {{0., 0., 0., 0., 0., 0., 0., 0.},
102 {0., 0., 0., 0., 0., 0., 0., 0.},
103 {0., 0., 0., 0., 0., 0., 0., 0.},
104 {0., 0., 0., 0., 0., 0., 0., 0.},
105 {0., 0., 0., 0., 0., 0., 0., 0.}}};
107 double CutAb[5][8] = {{0., 0., 0., 0., 0., 0., 0., 0.},
108 {0., 20., 7., 0., 0., 0., 0., 0.},
109 {0., 16., 13., 4., 0., 0., 0., 0.},
110 {0., 0., 0., 0., 45., 0., 0., 0.},
111 {0., 10., 5., 0., 0., 0., 0., 0.}};
113 double CutPo[5][8] = {{0., 0., 0., 0., 0., 0., 0., 0.},
114 {0., 9., 3., 0., 0., 0., 0., 0.},
115 {0., 8., 6., 2., 0., 0., 0., 0.},
116 {0., 0., 0., 0., 20., 0., 0., 0.},
117 {0., 5., 3., 0., 0., 0., 0., 0.}};
135 TCanvas *cHB =
new TCanvas(
"cHB",
"cHB", 1000, 500);
136 TCanvas *cHE =
new TCanvas(
"cHE",
"cHE", 1500, 500);
137 TCanvas *cONE =
new TCanvas(
"cONE",
"cONE", 500, 500);
138 TCanvas *cFour =
new TCanvas(
"cFour",
"cFour", 1500, 1000);
139 TCanvas *cFour1 =
new TCanvas(
"cFour1",
"cFour1", 1200, 800);
140 TCanvas *cNine =
new TCanvas(
"cNine",
"cNine", 1500, 1500);
144 TCanvas *c4x6 =
new TCanvas(
"c4x6",
"c4x6", 1200, 2400);
146 TCanvas *c5x6 =
new TCanvas(
"c5x6",
"c5x6", 1500, 2400);
148 TCanvas *cRBX1 =
new TCanvas(
"cRBX1",
"cRBX1", 1200, 1000);
151 TCanvas *cRBX31 =
new TCanvas(
"cRBX31",
"cRBX31", 1860, 600);
156 int k_min[5] = {0, 1, 1, 4, 1};
158 int k_max[5] = {0, 2, 3, 4, 2};
160 int k_maxupgrade[5] = {0, 4, 7, 4, 4};
168 TH1F *LumLum = (TH1F *)
dir->FindObjectAny(
"h_lsnumber_per_eachLS");
169 int MaxLumDanila = LumLum->GetBinContent(LumLum->GetMaximumBin());
170 cout <<
" MaxLumDanila= " << MaxLumDanila << endl;
171 gStyle->SetOptStat(110000);
174 LumLum->SetMarkerStyle(21);
175 LumLum->SetMarkerSize(0.8);
176 LumLum->GetYaxis()->SetLabelSize(0.04);
177 LumLum->SetTitle(
"Cont. number per LS \b");
178 LumLum->SetXTitle(
"Cont.number \b");
179 LumLum->SetYTitle(
"Ls \b");
180 LumLum->SetMarkerColor(4);
181 LumLum->SetLineColor(0);
182 LumLum->SetMinimum(0.8);
183 LumLum->GetXaxis()->SetRangeUser(0, MaxLumDanila + 5.);
184 LumLum->Draw(
"Error");
187 TH1F *LumiEv = (TH1F *)
dir->FindObjectAny(
"h_nevents_per_eachRealLS");
188 int MaxLum0 = LumiEv->GetBinContent(LumiEv->GetMaximumBin());
190 for (
int i = 1;
i <= LumiEv->GetXaxis()->GetNbins();
i++) {
191 if (LumiEv->GetBinContent(
i)) {
195 cout <<
" Nev in bin of MaxLum = " << MaxLum0 <<
" MaxLum= " << MaxLum << endl;
197 gStyle->SetOptStat(110000);
202 LumiEv->GetYaxis()->SetLabelSize(0.04);
203 LumiEv->SetTitle(
"Number of events per LS");
204 LumiEv->SetXTitle(
"LS");
205 LumiEv->SetYTitle(
"Number of events ");
206 LumiEv->SetMarkerStyle(21);
207 LumiEv->SetMarkerSize(0.8);
208 LumiEv->SetMarkerColor(4);
209 LumiEv->SetLineColor(0);
211 LumiEv->GetXaxis()->SetRangeUser(0, MaxLum + 5.);
212 LumiEv->Draw(
"Error");
214 cHB->Print(
"LumiEvent.png");
220 TH1F *H_NumBadChanDepth[7][5][5];
226 H_NumBadChanDepth[1][1][1] = (TH1F *)
dir->FindObjectAny(
"h_sumADCAmplLS1");
227 H_NumBadChanDepth[1][1][2] = (TH1F *)
dir->FindObjectAny(
"h_sumADCAmplLS2");
229 H_NumBadChanDepth[1][2][1] = (TH1F *)
dir->FindObjectAny(
"h_sumADCAmplLS3");
230 H_NumBadChanDepth[1][2][2] = (TH1F *)
dir->FindObjectAny(
"h_sumADCAmplLS4");
231 H_NumBadChanDepth[1][2][3] = (TH1F *)
dir->FindObjectAny(
"h_sumADCAmplLS5");
233 H_NumBadChanDepth[1][3][4] = (TH1F *)
dir->FindObjectAny(
"h_sumADCAmplLS8");
235 H_NumBadChanDepth[1][4][1] = (TH1F *)
dir->FindObjectAny(
"h_sumADCAmplLS6");
236 H_NumBadChanDepth[1][4][2] = (TH1F *)
dir->FindObjectAny(
"h_sumADCAmplLS7");
242 H_NumBadChanDepth[2][1][1] = (TH1F *)
dir->FindObjectAny(
"h_sumAmplitudeLS1");
243 H_NumBadChanDepth[2][1][2] = (TH1F *)
dir->FindObjectAny(
"h_sumAmplitudeLS2");
245 H_NumBadChanDepth[2][2][1] = (TH1F *)
dir->FindObjectAny(
"h_sumAmplitudeLS3");
246 H_NumBadChanDepth[2][2][2] = (TH1F *)
dir->FindObjectAny(
"h_sumAmplitudeLS4");
247 H_NumBadChanDepth[2][2][3] = (TH1F *)
dir->FindObjectAny(
"h_sumAmplitudeLS5");
249 H_NumBadChanDepth[2][3][4] = (TH1F *)
dir->FindObjectAny(
"h_sumAmplitudeLS8");
251 H_NumBadChanDepth[2][4][1] = (TH1F *)
dir->FindObjectAny(
"h_sumAmplitudeLS6");
252 H_NumBadChanDepth[2][4][2] = (TH1F *)
dir->FindObjectAny(
"h_sumAmplitudeLS7");
258 H_NumBadChanDepth[3][1][1] = (TH1F *)
dir->FindObjectAny(
"h_sumAmplLS1");
259 H_NumBadChanDepth[3][1][2] = (TH1F *)
dir->FindObjectAny(
"h_sumAmplLS2");
261 H_NumBadChanDepth[3][2][1] = (TH1F *)
dir->FindObjectAny(
"h_sumAmplLS3");
262 H_NumBadChanDepth[3][2][2] = (TH1F *)
dir->FindObjectAny(
"h_sumAmplLS4");
263 H_NumBadChanDepth[3][2][3] = (TH1F *)
dir->FindObjectAny(
"h_sumAmplLS5");
265 H_NumBadChanDepth[3][3][4] = (TH1F *)
dir->FindObjectAny(
"h_sumAmplLS8");
267 H_NumBadChanDepth[3][4][1] = (TH1F *)
dir->FindObjectAny(
"h_sumAmplLS6");
268 H_NumBadChanDepth[3][4][2] = (TH1F *)
dir->FindObjectAny(
"h_sumAmplLS7");
274 H_NumBadChanDepth[4][1][1] = (TH1F *)
dir->FindObjectAny(
"h_sumTSmeanALS1");
275 H_NumBadChanDepth[4][1][2] = (TH1F *)
dir->FindObjectAny(
"h_sumTSmeanALS2");
277 H_NumBadChanDepth[4][2][1] = (TH1F *)
dir->FindObjectAny(
"h_sumTSmeanALS3");
278 H_NumBadChanDepth[4][2][2] = (TH1F *)
dir->FindObjectAny(
"h_sumTSmeanALS4");
279 H_NumBadChanDepth[4][2][3] = (TH1F *)
dir->FindObjectAny(
"h_sumTSmeanALS5");
281 H_NumBadChanDepth[4][3][4] = (TH1F *)
dir->FindObjectAny(
"h_sumTSmeanALS8");
283 H_NumBadChanDepth[4][4][1] = (TH1F *)
dir->FindObjectAny(
"h_sumTSmeanALS6");
284 H_NumBadChanDepth[4][4][2] = (TH1F *)
dir->FindObjectAny(
"h_sumTSmeanALS7");
290 H_NumBadChanDepth[5][1][1] = (TH1F *)
dir->FindObjectAny(
"h_sumTSmaxALS1");
291 H_NumBadChanDepth[5][1][2] = (TH1F *)
dir->FindObjectAny(
"h_sumTSmaxALS2");
293 H_NumBadChanDepth[5][2][1] = (TH1F *)
dir->FindObjectAny(
"h_sumTSmaxALS3");
294 H_NumBadChanDepth[5][2][2] = (TH1F *)
dir->FindObjectAny(
"h_sumTSmaxALS4");
295 H_NumBadChanDepth[5][2][3] = (TH1F *)
dir->FindObjectAny(
"h_sumTSmaxALS5");
297 H_NumBadChanDepth[5][3][4] = (TH1F *)
dir->FindObjectAny(
"h_sumTSmaxALS8");
299 H_NumBadChanDepth[5][4][1] = (TH1F *)
dir->FindObjectAny(
"h_sumTSmaxALS6");
300 H_NumBadChanDepth[5][4][2] = (TH1F *)
dir->FindObjectAny(
"h_sumTSmaxALS7");
302 gStyle->SetOptStat(110000);
305 for (
int sub = 1; sub <= 4; sub++) {
314 for (
int k = k_min[sub];
k <= k_max[sub];
k++) {
326 H_NumBadChanDepth[
test][sub][
k]->SetMarkerStyle(20);
327 H_NumBadChanDepth[
test][sub][
k]->SetMarkerSize(0.8);
329 H_NumBadChanDepth[
test][sub][
k]->SetTitle(
"Depth 1\b");
331 H_NumBadChanDepth[
test][sub][
k]->SetTitle(
"Depth 2\b");
333 H_NumBadChanDepth[
test][sub][
k]->SetTitle(
"Depth 3\b");
335 H_NumBadChanDepth[
test][sub][
k]->SetTitle(
"Depth 4\b");
337 H_NumBadChanDepth[
test][sub][
k]->SetXTitle(
" <Amplitude> \b");
339 H_NumBadChanDepth[
test][sub][
k]->SetXTitle(
" <Width> \b");
341 H_NumBadChanDepth[
test][sub][
k]->SetXTitle(
" <Ratio> \b");
343 H_NumBadChanDepth[
test][sub][
k]->SetXTitle(
" <TS mean> \b");
345 H_NumBadChanDepth[
test][sub][
k]->SetXTitle(
" <TS max> \b");
346 H_NumBadChanDepth[
test][sub][
k]->SetYTitle(
"Number of channel-LSs\b");
347 H_NumBadChanDepth[
test][sub][
k]->SetMarkerColor(4);
348 H_NumBadChanDepth[
test][sub][
k]->SetLineColor(0);
350 H_NumBadChanDepth[
test][sub][
k]->SetMinimum(0.8);
351 H_NumBadChanDepth[
test][sub][
k]->Draw(
"Error");
355 cHB->Print(
"H_NBCMNHB.png");
359 cHE->Print(
"H_NBCMNHE.png");
363 cONE->Print(
"H_NBCMNHO.png");
367 cHB->Print(
"H_NBCMNHF.png");
374 cHB->Print(
"H_ADCamplHB.png");
378 cHE->Print(
"H_ADCamplHE.png");
382 cONE->Print(
"H_ADCamplHO.png");
386 cHB->Print(
"H_ADCamplHF.png");
392 cHB->Print(
"H_WidthHB.png");
396 cHE->Print(
"H_WidthHE.png");
400 cONE->Print(
"H_WidthHO.png");
404 cHB->Print(
"H_WidthHF.png");
410 cHB->Print(
"H_RatioHB.png");
414 cHE->Print(
"H_RatioHE.png");
418 cONE->Print(
"H_RatioHO.png");
422 cHB->Print(
"H_RatioHF.png");
428 cHB->Print(
"H_TmeanHB.png");
432 cHE->Print(
"H_TmeanHE.png");
436 cONE->Print(
"H_TmeanHO.png");
440 cHB->Print(
"H_TmeanHF.png");
446 cHB->Print(
"H_TmaxHB.png");
450 cHE->Print(
"H_TmaxHE.png");
454 cONE->Print(
"H_TmaxHO.png");
458 cHB->Print(
"H_TmaxHF.png");
465 gStyle->SetOptStat(0);
471 TH2F *MapNumBadChanDepth[7][5][5];
472 TH2F *MapNumChanDepth[7][5][5];
473 TH2F *MapNumBadChanFull[7];
474 TH2F *MapNumChanFull[7];
480 MapNumBadChanDepth[0][1][1] = (TH2F *)
dir->FindObjectAny(
"h_mapDepth1Error_HB");
481 MapNumBadChanDepth[0][1][2] = (TH2F *)
dir->FindObjectAny(
"h_mapDepth2Error_HB");
483 MapNumBadChanDepth[0][2][1] = (TH2F *)
dir->FindObjectAny(
"h_mapDepth1Error_HE");
484 MapNumBadChanDepth[0][2][2] = (TH2F *)
dir->FindObjectAny(
"h_mapDepth2Error_HE");
485 MapNumBadChanDepth[0][2][3] = (TH2F *)
dir->FindObjectAny(
"h_mapDepth3Error_HE");
487 MapNumBadChanDepth[0][3][4] = (TH2F *)
dir->FindObjectAny(
"h_mapDepth4Error_HO");
489 MapNumBadChanDepth[0][4][1] = (TH2F *)
dir->FindObjectAny(
"h_mapDepth1Error_HF");
490 MapNumBadChanDepth[0][4][2] = (TH2F *)
dir->FindObjectAny(
"h_mapDepth2Error_HF");
492 MapNumBadChanFull[0] = (TH2F *)MapNumBadChanDepth[0][1][1]->Clone();
494 MapNumChanDepth[0][1][1] = (TH2F *)
dir->FindObjectAny(
"h_mapDepth1_HB");
495 MapNumChanDepth[0][1][2] = (TH2F *)
dir->FindObjectAny(
"h_mapDepth2_HB");
497 MapNumChanDepth[0][2][1] = (TH2F *)
dir->FindObjectAny(
"h_mapDepth1_HE");
498 MapNumChanDepth[0][2][2] = (TH2F *)
dir->FindObjectAny(
"h_mapDepth2_HE");
499 MapNumChanDepth[0][2][3] = (TH2F *)
dir->FindObjectAny(
"h_mapDepth3_HE");
501 MapNumChanDepth[0][3][4] = (TH2F *)
dir->FindObjectAny(
"h_mapDepth4_HO");
503 MapNumChanDepth[0][4][1] = (TH2F *)
dir->FindObjectAny(
"h_mapDepth1_HF");
504 MapNumChanDepth[0][4][2] = (TH2F *)
dir->FindObjectAny(
"h_mapDepth2_HF");
506 MapNumChanFull[0] = (TH2F *)MapNumChanDepth[0][1][1]->Clone();
512 MapNumBadChanDepth[1][1][1] = (TH2F *)
dir->FindObjectAny(
"h_2DsumADCAmplLS1");
513 MapNumBadChanDepth[1][1][2] = (TH2F *)
dir->FindObjectAny(
"h_2DsumADCAmplLS2");
515 MapNumBadChanDepth[1][2][1] = (TH2F *)
dir->FindObjectAny(
"h_2DsumADCAmplLS3");
516 MapNumBadChanDepth[1][2][2] = (TH2F *)
dir->FindObjectAny(
"h_2DsumADCAmplLS4");
517 MapNumBadChanDepth[1][2][3] = (TH2F *)
dir->FindObjectAny(
"h_2DsumADCAmplLS5");
519 MapNumBadChanDepth[1][3][4] = (TH2F *)
dir->FindObjectAny(
"h_2DsumADCAmplLS8");
521 MapNumBadChanDepth[1][4][1] = (TH2F *)
dir->FindObjectAny(
"h_2DsumADCAmplLS6");
522 MapNumBadChanDepth[1][4][2] = (TH2F *)
dir->FindObjectAny(
"h_2DsumADCAmplLS7");
524 MapNumBadChanFull[1] = (TH2F *)MapNumBadChanDepth[1][1][1]->Clone();
526 MapNumChanDepth[1][1][1] = (TH2F *)
dir->FindObjectAny(
"h_2D0sumADCAmplLS1");
527 MapNumChanDepth[1][1][2] = (TH2F *)
dir->FindObjectAny(
"h_2D0sumADCAmplLS2");
529 MapNumChanDepth[1][2][1] = (TH2F *)
dir->FindObjectAny(
"h_2D0sumADCAmplLS3");
530 MapNumChanDepth[1][2][2] = (TH2F *)
dir->FindObjectAny(
"h_2D0sumADCAmplLS4");
531 MapNumChanDepth[1][2][3] = (TH2F *)
dir->FindObjectAny(
"h_2D0sumADCAmplLS5");
533 MapNumChanDepth[1][3][4] = (TH2F *)
dir->FindObjectAny(
"h_2D0sumADCAmplLS8");
535 MapNumChanDepth[1][4][1] = (TH2F *)
dir->FindObjectAny(
"h_2D0sumADCAmplLS6");
536 MapNumChanDepth[1][4][2] = (TH2F *)
dir->FindObjectAny(
"h_2D0sumADCAmplLS7");
538 MapNumChanFull[1] = (TH2F *)MapNumChanDepth[1][1][1]->Clone();
544 MapNumBadChanDepth[2][1][1] = (TH2F *)
dir->FindObjectAny(
"h_2DsumAmplitudeLS1");
545 MapNumBadChanDepth[2][1][2] = (TH2F *)
dir->FindObjectAny(
"h_2DsumAmplitudeLS2");
547 MapNumBadChanDepth[2][2][1] = (TH2F *)
dir->FindObjectAny(
"h_2DsumAmplitudeLS3");
548 MapNumBadChanDepth[2][2][2] = (TH2F *)
dir->FindObjectAny(
"h_2DsumAmplitudeLS4");
549 MapNumBadChanDepth[2][2][3] = (TH2F *)
dir->FindObjectAny(
"h_2DsumAmplitudeLS5");
551 MapNumBadChanDepth[2][3][4] = (TH2F *)
dir->FindObjectAny(
"h_2DsumAmplitudeLS8");
553 MapNumBadChanDepth[2][4][1] = (TH2F *)
dir->FindObjectAny(
"h_2DsumAmplitudeLS6");
554 MapNumBadChanDepth[2][4][2] = (TH2F *)
dir->FindObjectAny(
"h_2DsumAmplitudeLS7");
556 MapNumBadChanFull[2] = (TH2F *)MapNumBadChanDepth[2][1][1]->Clone();
558 MapNumChanDepth[2][1][1] = (TH2F *)
dir->FindObjectAny(
"h_2D0sumAmplitudeLS1");
559 MapNumChanDepth[2][1][2] = (TH2F *)
dir->FindObjectAny(
"h_2D0sumAmplitudeLS2");
561 MapNumChanDepth[2][2][1] = (TH2F *)
dir->FindObjectAny(
"h_2D0sumAmplitudeLS3");
562 MapNumChanDepth[2][2][2] = (TH2F *)
dir->FindObjectAny(
"h_2D0sumAmplitudeLS4");
563 MapNumChanDepth[2][2][3] = (TH2F *)
dir->FindObjectAny(
"h_2D0sumAmplitudeLS5");
565 MapNumChanDepth[2][3][4] = (TH2F *)
dir->FindObjectAny(
"h_2D0sumAmplitudeLS8");
567 MapNumChanDepth[2][4][1] = (TH2F *)
dir->FindObjectAny(
"h_2D0sumAmplitudeLS6");
568 MapNumChanDepth[2][4][2] = (TH2F *)
dir->FindObjectAny(
"h_2D0sumAmplitudeLS7");
570 MapNumChanFull[2] = (TH2F *)MapNumChanDepth[2][1][1]->Clone();
576 MapNumBadChanDepth[3][1][1] = (TH2F *)
dir->FindObjectAny(
"h_2DsumAmplLS1");
577 MapNumBadChanDepth[3][1][2] = (TH2F *)
dir->FindObjectAny(
"h_2DsumAmplLS2");
579 MapNumBadChanDepth[3][2][1] = (TH2F *)
dir->FindObjectAny(
"h_2DsumAmplLS3");
580 MapNumBadChanDepth[3][2][2] = (TH2F *)
dir->FindObjectAny(
"h_2DsumAmplLS4");
581 MapNumBadChanDepth[3][2][3] = (TH2F *)
dir->FindObjectAny(
"h_2DsumAmplLS5");
583 MapNumBadChanDepth[3][3][4] = (TH2F *)
dir->FindObjectAny(
"h_2DsumAmplLS8");
585 MapNumBadChanDepth[3][4][1] = (TH2F *)
dir->FindObjectAny(
"h_2DsumAmplLS6");
586 MapNumBadChanDepth[3][4][2] = (TH2F *)
dir->FindObjectAny(
"h_2DsumAmplLS7");
588 MapNumBadChanFull[3] = (TH2F *)MapNumBadChanDepth[3][1][1]->Clone();
590 MapNumChanDepth[3][1][1] = (TH2F *)
dir->FindObjectAny(
"h_2D0sumAmplLS1");
591 MapNumChanDepth[3][1][2] = (TH2F *)
dir->FindObjectAny(
"h_2D0sumAmplLS2");
593 MapNumChanDepth[3][2][1] = (TH2F *)
dir->FindObjectAny(
"h_2D0sumAmplLS3");
594 MapNumChanDepth[3][2][2] = (TH2F *)
dir->FindObjectAny(
"h_2D0sumAmplLS4");
595 MapNumChanDepth[3][2][3] = (TH2F *)
dir->FindObjectAny(
"h_2D0sumAmplLS5");
597 MapNumChanDepth[3][3][4] = (TH2F *)
dir->FindObjectAny(
"h_2D0sumAmplLS8");
599 MapNumChanDepth[3][4][1] = (TH2F *)
dir->FindObjectAny(
"h_2D0sumAmplLS6");
600 MapNumChanDepth[3][4][2] = (TH2F *)
dir->FindObjectAny(
"h_2D0sumAmplLS7");
602 MapNumChanFull[3] = (TH2F *)MapNumChanDepth[3][1][1]->Clone();
608 MapNumBadChanDepth[4][1][1] = (TH2F *)
dir->FindObjectAny(
"h_2DsumTSmeanALS1");
609 MapNumBadChanDepth[4][1][2] = (TH2F *)
dir->FindObjectAny(
"h_2DsumTSmeanALS2");
611 MapNumBadChanDepth[4][2][1] = (TH2F *)
dir->FindObjectAny(
"h_2DsumTSmeanALS3");
612 MapNumBadChanDepth[4][2][2] = (TH2F *)
dir->FindObjectAny(
"h_2DsumTSmeanALS4");
613 MapNumBadChanDepth[4][2][3] = (TH2F *)
dir->FindObjectAny(
"h_2DsumTSmeanALS5");
615 MapNumBadChanDepth[4][3][4] = (TH2F *)
dir->FindObjectAny(
"h_2DsumTSmeanALS8");
617 MapNumBadChanDepth[4][4][1] = (TH2F *)
dir->FindObjectAny(
"h_2DsumTSmeanALS6");
618 MapNumBadChanDepth[4][4][2] = (TH2F *)
dir->FindObjectAny(
"h_2DsumTSmeanALS7");
620 MapNumBadChanFull[4] = (TH2F *)MapNumBadChanDepth[4][1][1]->Clone();
622 MapNumChanDepth[4][1][1] = (TH2F *)
dir->FindObjectAny(
"h_2D0sumTSmeanALS1");
623 MapNumChanDepth[4][1][2] = (TH2F *)
dir->FindObjectAny(
"h_2D0sumTSmeanALS2");
625 MapNumChanDepth[4][2][1] = (TH2F *)
dir->FindObjectAny(
"h_2D0sumTSmeanALS3");
626 MapNumChanDepth[4][2][2] = (TH2F *)
dir->FindObjectAny(
"h_2D0sumTSmeanALS4");
627 MapNumChanDepth[4][2][3] = (TH2F *)
dir->FindObjectAny(
"h_2D0sumTSmeanALS5");
629 MapNumChanDepth[4][3][4] = (TH2F *)
dir->FindObjectAny(
"h_2D0sumTSmeanALS8");
631 MapNumChanDepth[4][4][1] = (TH2F *)
dir->FindObjectAny(
"h_2D0sumTSmeanALS6");
632 MapNumChanDepth[4][4][2] = (TH2F *)
dir->FindObjectAny(
"h_2D0sumTSmeanALS7");
634 MapNumChanFull[4] = (TH2F *)MapNumChanDepth[4][1][1]->Clone();
640 MapNumBadChanDepth[5][1][1] = (TH2F *)
dir->FindObjectAny(
"h_2DsumTSmaxALS1");
641 MapNumBadChanDepth[5][1][2] = (TH2F *)
dir->FindObjectAny(
"h_2DsumTSmaxALS2");
643 MapNumBadChanDepth[5][2][1] = (TH2F *)
dir->FindObjectAny(
"h_2DsumTSmaxALS3");
644 MapNumBadChanDepth[5][2][2] = (TH2F *)
dir->FindObjectAny(
"h_2DsumTSmaxALS4");
645 MapNumBadChanDepth[5][2][3] = (TH2F *)
dir->FindObjectAny(
"h_2DsumTSmaxALS5");
647 MapNumBadChanDepth[5][3][4] = (TH2F *)
dir->FindObjectAny(
"h_2DsumTSmaxALS8");
649 MapNumBadChanDepth[5][4][1] = (TH2F *)
dir->FindObjectAny(
"h_2DsumTSmaxALS6");
650 MapNumBadChanDepth[5][4][2] = (TH2F *)
dir->FindObjectAny(
"h_2DsumTSmaxALS7");
652 MapNumBadChanFull[5] = (TH2F *)MapNumBadChanDepth[5][1][1]->Clone();
654 MapNumChanDepth[5][1][1] = (TH2F *)
dir->FindObjectAny(
"h_2D0sumTSmaxALS1");
655 MapNumChanDepth[5][1][2] = (TH2F *)
dir->FindObjectAny(
"h_2D0sumTSmaxALS2");
657 MapNumChanDepth[5][2][1] = (TH2F *)
dir->FindObjectAny(
"h_2D0sumTSmaxALS3");
658 MapNumChanDepth[5][2][2] = (TH2F *)
dir->FindObjectAny(
"h_2D0sumTSmaxALS4");
659 MapNumChanDepth[5][2][3] = (TH2F *)
dir->FindObjectAny(
"h_2D0sumTSmaxALS5");
661 MapNumChanDepth[5][3][4] = (TH2F *)
dir->FindObjectAny(
"h_2D0sumTSmaxALS8");
663 MapNumChanDepth[5][4][1] = (TH2F *)
dir->FindObjectAny(
"h_2D0sumTSmaxALS6");
664 MapNumChanDepth[5][4][2] = (TH2F *)
dir->FindObjectAny(
"h_2D0sumTSmaxALS7");
666 MapNumChanFull[5] = (TH2F *)MapNumChanDepth[5][1][1]->Clone();
669 for (
int sub = 1; sub <= 4; sub++) {
678 for (
int k = k_min[sub];
k <= k_max[sub];
k++) {
687 MapNumBadChanDepth[
test][sub][
k]->Divide(
688 MapNumBadChanDepth[
test][sub][
k], MapNumChanDepth[
test][sub][
k], 1, 1,
"B");
690 for (
int x = 1;
x <= MapNumBadChanFull[
test]->GetXaxis()->GetNbins();
x++) {
691 for (
int y = 1; y <= MapNumBadChanFull[
test]->GetYaxis()->GetNbins(); y++) {
692 double ccc1 = MapNumBadChanDepth[
test][sub][
k]->GetBinContent(
x, y);
693 MapNumBadChanFull[
test]->SetBinContent(
x, y, MapNumBadChanFull[
test]->GetBinContent(
x, y) + ccc1);
698 MapNumBadChanDepth[
test][sub][
k]->SetTitle(
"Depth 1\b");
700 MapNumBadChanDepth[
test][sub][
k]->SetTitle(
"Depth 2\b");
702 MapNumBadChanDepth[
test][sub][
k]->SetTitle(
"Depth 3\b");
704 MapNumBadChanDepth[
test][sub][
k]->SetTitle(
"Depth 4\b");
711 MapNumBadChanDepth[
test][sub][
k]->SetXTitle(
"#eta \b");
712 MapNumBadChanDepth[
test][sub][
k]->SetYTitle(
"#phi \b");
713 MapNumBadChanDepth[
test][sub][
k]->SetZTitle(
"Average estimator \b");
716 MapNumBadChanDepth[
test][sub][
k]->Draw(
"COLZ");
718 MapNumBadChanDepth[
test][sub][
k]->GetYaxis()->SetRangeUser(0, 72.);
719 MapNumBadChanDepth[
test][sub][
k]->GetZaxis()->SetRangeUser(0.0001, 1.);
723 cHB->Print(
"MapCapIdErrorHB.png");
727 cHE->Print(
"MapCapIdErrorHE.png");
731 cONE->Print(
"MapCapIdErrorHO.png");
735 cHB->Print(
"MapCapIdErrorHF.png");
741 cHB->Print(
"MapADCamplHB.png");
745 cHE->Print(
"MapADCamplHE.png");
749 cONE->Print(
"MapADCamplHO.png");
753 cHB->Print(
"MapADCamplHF.png");
759 cHB->Print(
"MapWidthHB.png");
763 cHE->Print(
"MapWidthHE.png");
767 cONE->Print(
"MapWidthHO.png");
771 cHB->Print(
"MapWidthHF.png");
777 cHB->Print(
"MapRatioHB.png");
781 cHE->Print(
"MapRatioHE.png");
785 cONE->Print(
"MapRatioHO.png");
789 cHB->Print(
"MapRatioHF.png");
795 cHB->Print(
"MapTmeanHB.png");
799 cHE->Print(
"MapTmeanHE.png");
803 cONE->Print(
"MapTmeanHO.png");
807 cHB->Print(
"MapTmeanHF.png");
813 cHB->Print(
"MapTmaxHB.png");
817 cHE->Print(
"MapTmaxHE.png");
821 cONE->Print(
"MapTmaxHO.png");
825 cHB->Print(
"MapTmaxHF.png");
835 MapNumBadChanFull[
test]->SetTitle(
"All subdetectors\b");
836 MapNumBadChanFull[
test]->SetXTitle(
"#eta \b");
837 MapNumBadChanFull[
test]->SetYTitle(
"#phi \b");
839 MapNumBadChanFull[
test]->SetZTitle(
"Average Nbcs \b");
841 MapNumBadChanFull[
test]->SetZTitle(
"Average estimator \b");
843 MapNumBadChanFull[
test]->SetTitleOffset(0.75,
"Z");
844 MapNumBadChanFull[
test]->Draw(
"COLZ");
845 MapNumBadChanFull[
test]->GetYaxis()->SetRangeUser(0, 72.);
848 cONE->Print(
"MapCapIdError.png");
852 cONE->Print(
"MapADCAmpl.png");
856 cONE->Print(
"MapWidth.png");
860 cONE->Print(
"MapRatio.png");
864 cONE->Print(
"MapTmean.png");
868 cONE->Print(
"MapTmax.png");
878 TH1F *HistNumBadChanDepth[7][5][8];
879 TH1F *HistCutNumBadChanDepth[7][5][8];
880 TH1F *HistNumChanDepth[7][5][8];
886 TH1F *HistNumBadChanFull[7];
887 TH1F *HistNumChanFull[7];
893 HistNumBadChanDepth[0][1][1] = (TH1F *)
dir->FindObjectAny(
"h_runnbadchannels_depth1_HB");
894 HistNumBadChanDepth[0][1][2] = (TH1F *)
dir->FindObjectAny(
"h_runnbadchannels_depth2_HB");
896 HistNumBadChanDepth[0][2][1] = (TH1F *)
dir->FindObjectAny(
"h_runnbadchannels_depth1_HE");
897 HistNumBadChanDepth[0][2][2] = (TH1F *)
dir->FindObjectAny(
"h_runnbadchannels_depth2_HE");
898 HistNumBadChanDepth[0][2][3] = (TH1F *)
dir->FindObjectAny(
"h_runnbadchannels_depth3_HE");
900 HistNumBadChanDepth[0][3][4] = (TH1F *)
dir->FindObjectAny(
"h_runnbadchannels_depth4_HO");
902 HistNumBadChanDepth[0][4][1] = (TH1F *)
dir->FindObjectAny(
"h_runnbadchannels_depth1_HF");
903 HistNumBadChanDepth[0][4][2] = (TH1F *)
dir->FindObjectAny(
"h_runnbadchannels_depth2_HF");
905 HistNumBadChanFull[0] = (TH1F *)HistNumBadChanDepth[0][1][1]->Clone();
907 HistCutNumBadChanDepth[0][1][1] = (TH1F *)
dir->FindObjectAny(
"h_runnbadchannels_depth1_HB");
908 HistCutNumBadChanDepth[0][1][2] = (TH1F *)
dir->FindObjectAny(
"h_runnbadchannels_depth2_HB");
910 HistCutNumBadChanDepth[0][2][1] = (TH1F *)
dir->FindObjectAny(
"h_runnbadchannels_depth1_HE");
911 HistCutNumBadChanDepth[0][2][2] = (TH1F *)
dir->FindObjectAny(
"h_runnbadchannels_depth2_HE");
912 HistCutNumBadChanDepth[0][2][3] = (TH1F *)
dir->FindObjectAny(
"h_runnbadchannels_depth3_HE");
914 HistCutNumBadChanDepth[0][3][4] = (TH1F *)
dir->FindObjectAny(
"h_runnbadchannels_depth4_HO");
916 HistCutNumBadChanDepth[0][4][1] = (TH1F *)
dir->FindObjectAny(
"h_runnbadchannels_depth1_HF");
917 HistCutNumBadChanDepth[0][4][2] = (TH1F *)
dir->FindObjectAny(
"h_runnbadchannels_depth2_HF");
919 HistNumChanDepth[0][1][1] = (TH1F *)
dir->FindObjectAny(
"h_runbadrate0_depth1_HB");
920 HistNumChanDepth[0][1][2] = (TH1F *)
dir->FindObjectAny(
"h_runbadrate0_depth2_HB");
922 HistNumChanDepth[0][2][1] = (TH1F *)
dir->FindObjectAny(
"h_runbadrate0_depth1_HE");
923 HistNumChanDepth[0][2][2] = (TH1F *)
dir->FindObjectAny(
"h_runbadrate0_depth2_HE");
924 HistNumChanDepth[0][2][3] = (TH1F *)
dir->FindObjectAny(
"h_runbadrate0_depth3_HE");
926 HistNumChanDepth[0][3][4] = (TH1F *)
dir->FindObjectAny(
"h_runbadrate0_depth4_HO");
928 HistNumChanDepth[0][4][1] = (TH1F *)
dir->FindObjectAny(
"h_runbadrate0_depth1_HF");
929 HistNumChanDepth[0][4][2] = (TH1F *)
dir->FindObjectAny(
"h_runbadrate0_depth2_HF");
931 HistNumChanFull[0] = (TH1F *)HistNumChanDepth[0][1][1]->Clone();
939 HistNumBadChanDepth[1][1][1] = (TH1F *)
dir->FindObjectAny(
"h_sumADCAmplperLS1");
940 HistNumBadChanDepth[1][1][2] = (TH1F *)
dir->FindObjectAny(
"h_sumADCAmplperLS2");
942 HistNumBadChanDepth[1][1][3] = (TH1F *)
dir->FindObjectAny(
"h_sumADCAmplperLSdepth3HBu");
943 HistNumBadChanDepth[1][1][4] = (TH1F *)
dir->FindObjectAny(
"h_sumADCAmplperLSdepth4HBu");
946 HistNumBadChanDepth[1][2][1] = (TH1F *)
dir->FindObjectAny(
"h_sumADCAmplperLS3");
947 HistNumBadChanDepth[1][2][2] = (TH1F *)
dir->FindObjectAny(
"h_sumADCAmplperLS4");
948 HistNumBadChanDepth[1][2][3] = (TH1F *)
dir->FindObjectAny(
"h_sumADCAmplperLS5");
950 HistNumBadChanDepth[1][2][4] = (TH1F *)
dir->FindObjectAny(
"h_sumADCAmplperLSdepth4HEu");
951 HistNumBadChanDepth[1][2][5] = (TH1F *)
dir->FindObjectAny(
"h_sumADCAmplperLSdepth5HEu");
952 HistNumBadChanDepth[1][2][6] = (TH1F *)
dir->FindObjectAny(
"h_sumADCAmplperLSdepth6HEu");
953 HistNumBadChanDepth[1][2][7] = (TH1F *)
dir->FindObjectAny(
"h_sumADCAmplperLSdepth7HEu");
956 HistNumBadChanDepth[1][3][4] = (TH1F *)
dir->FindObjectAny(
"h_sumADCAmplperLS8");
959 HistNumBadChanDepth[1][4][1] = (TH1F *)
dir->FindObjectAny(
"h_sumADCAmplperLS6");
960 HistNumBadChanDepth[1][4][2] = (TH1F *)
dir->FindObjectAny(
"h_sumADCAmplperLS7");
962 HistNumBadChanDepth[1][4][3] = (TH1F *)
dir->FindObjectAny(
"h_sumADCAmplperLS6u");
963 HistNumBadChanDepth[1][4][4] = (TH1F *)
dir->FindObjectAny(
"h_sumADCAmplperLS7u");
966 HistNumBadChanFull[1] = (TH1F *)HistNumBadChanDepth[1][1][1]->Clone();
970 HistCutNumBadChanDepth[1][1][1] = (TH1F *)
dir->FindObjectAny(
"h_sumCutADCAmplperLS1");
971 HistCutNumBadChanDepth[1][1][2] = (TH1F *)
dir->FindObjectAny(
"h_sumCutADCAmplperLS2");
973 HistCutNumBadChanDepth[1][1][3] = (TH1F *)
dir->FindObjectAny(
"h_sumCutADCAmplperLSdepth3HBu");
974 HistCutNumBadChanDepth[1][1][4] = (TH1F *)
dir->FindObjectAny(
"h_sumCutADCAmplperLSdepth4HBu");
977 HistCutNumBadChanDepth[1][2][1] = (TH1F *)
dir->FindObjectAny(
"h_sumCutADCAmplperLS3");
978 HistCutNumBadChanDepth[1][2][2] = (TH1F *)
dir->FindObjectAny(
"h_sumCutADCAmplperLS4");
979 HistCutNumBadChanDepth[1][2][3] = (TH1F *)
dir->FindObjectAny(
"h_sumCutADCAmplperLS5");
981 HistCutNumBadChanDepth[1][2][4] = (TH1F *)
dir->FindObjectAny(
"h_sumCutADCAmplperLSdepth4HEu");
982 HistCutNumBadChanDepth[1][2][5] = (TH1F *)
dir->FindObjectAny(
"h_sumCutADCAmplperLSdepth5HEu");
983 HistCutNumBadChanDepth[1][2][6] = (TH1F *)
dir->FindObjectAny(
"h_sumCutADCAmplperLSdepth6HEu");
984 HistCutNumBadChanDepth[1][2][7] = (TH1F *)
dir->FindObjectAny(
"h_sumCutADCAmplperLSdepth7HEu");
987 HistCutNumBadChanDepth[1][3][4] = (TH1F *)
dir->FindObjectAny(
"h_sumCutADCAmplperLS8");
990 HistCutNumBadChanDepth[1][4][1] = (TH1F *)
dir->FindObjectAny(
"h_sumCutADCAmplperLS6");
991 HistCutNumBadChanDepth[1][4][2] = (TH1F *)
dir->FindObjectAny(
"h_sumCutADCAmplperLS7");
993 HistCutNumBadChanDepth[1][4][3] = (TH1F *)
dir->FindObjectAny(
"h_sumCutADCAmplperLS6u");
994 HistCutNumBadChanDepth[1][4][4] = (TH1F *)
dir->FindObjectAny(
"h_sumCutADCAmplperLS7u");
998 HistNumChanDepth[1][1][1] = (TH1F *)
dir->FindObjectAny(
"h_sum0ADCAmplperLS1");
999 HistNumChanDepth[1][1][2] = (TH1F *)
dir->FindObjectAny(
"h_sum0ADCAmplperLS2");
1001 HistNumChanDepth[1][1][3] = (TH1F *)
dir->FindObjectAny(
"h_sum0ADCAmplperLSdepth3HBu");
1002 HistNumChanDepth[1][1][4] = (TH1F *)
dir->FindObjectAny(
"h_sum0ADCAmplperLSdepth4HBu");
1005 HistNumChanDepth[1][2][1] = (TH1F *)
dir->FindObjectAny(
"h_sum0ADCAmplperLS3");
1006 HistNumChanDepth[1][2][2] = (TH1F *)
dir->FindObjectAny(
"h_sum0ADCAmplperLS4");
1007 HistNumChanDepth[1][2][3] = (TH1F *)
dir->FindObjectAny(
"h_sum0ADCAmplperLS5");
1009 HistNumChanDepth[1][2][4] = (TH1F *)
dir->FindObjectAny(
"h_sum0ADCAmplperLSdepth4HEu");
1010 HistNumChanDepth[1][2][5] = (TH1F *)
dir->FindObjectAny(
"h_sum0ADCAmplperLSdepth5HEu");
1011 HistNumChanDepth[1][2][6] = (TH1F *)
dir->FindObjectAny(
"h_sum0ADCAmplperLSdepth6HEu");
1012 HistNumChanDepth[1][2][7] = (TH1F *)
dir->FindObjectAny(
"h_sum0ADCAmplperLSdepth7HEu");
1015 HistNumChanDepth[1][3][4] = (TH1F *)
dir->FindObjectAny(
"h_sum0ADCAmplperLS8");
1018 HistNumChanDepth[1][4][1] = (TH1F *)
dir->FindObjectAny(
"h_sum0ADCAmplperLS6");
1019 HistNumChanDepth[1][4][2] = (TH1F *)
dir->FindObjectAny(
"h_sum0ADCAmplperLS7");
1021 HistNumChanDepth[1][4][3] = (TH1F *)
dir->FindObjectAny(
"h_sum0ADCAmplperLS6u");
1022 HistNumChanDepth[1][4][4] = (TH1F *)
dir->FindObjectAny(
"h_sum0ADCAmplperLS7u");
1025 HistNumChanFull[1] = (TH1F *)HistNumChanDepth[1][1][1]->Clone();
1027 HistNumChanFull[6] = (TH1F *)HistNumChanDepth[1][1][1]->Clone();
1033 HistNumBadChanDepth[2][1][1] = (TH1F *)
dir->FindObjectAny(
"h_sumAmplitudeperLS1");
1034 HistNumBadChanDepth[2][1][2] = (TH1F *)
dir->FindObjectAny(
"h_sumAmplitudeperLS2");
1036 HistNumBadChanDepth[2][2][1] = (TH1F *)
dir->FindObjectAny(
"h_sumAmplitudeperLS3");
1037 HistNumBadChanDepth[2][2][2] = (TH1F *)
dir->FindObjectAny(
"h_sumAmplitudeperLS4");
1038 HistNumBadChanDepth[2][2][3] = (TH1F *)
dir->FindObjectAny(
"h_sumAmplitudeperLS5");
1040 HistNumBadChanDepth[2][3][4] = (TH1F *)
dir->FindObjectAny(
"h_sumAmplitudeperLS8");
1042 HistNumBadChanDepth[2][4][1] = (TH1F *)
dir->FindObjectAny(
"h_sumAmplitudeperLS6");
1043 HistNumBadChanDepth[2][4][2] = (TH1F *)
dir->FindObjectAny(
"h_sumAmplitudeperLS7");
1045 HistNumBadChanFull[2] = (TH1F *)HistNumBadChanDepth[2][1][1]->Clone();
1047 HistCutNumBadChanDepth[2][1][1] = (TH1F *)
dir->FindObjectAny(
"h_sumCutAmplitudeperLS1");
1048 HistCutNumBadChanDepth[2][1][2] = (TH1F *)
dir->FindObjectAny(
"h_sumCutAmplitudeperLS2");
1050 HistCutNumBadChanDepth[2][2][1] = (TH1F *)
dir->FindObjectAny(
"h_sumCutAmplitudeperLS3");
1051 HistCutNumBadChanDepth[2][2][2] = (TH1F *)
dir->FindObjectAny(
"h_sumCutAmplitudeperLS4");
1052 HistCutNumBadChanDepth[2][2][3] = (TH1F *)
dir->FindObjectAny(
"h_sumCutAmplitudeperLS5");
1054 HistCutNumBadChanDepth[2][3][4] = (TH1F *)
dir->FindObjectAny(
"h_sumCutAmplitudeperLS8");
1056 HistCutNumBadChanDepth[2][4][1] = (TH1F *)
dir->FindObjectAny(
"h_sumCutAmplitudeperLS6");
1057 HistCutNumBadChanDepth[2][4][2] = (TH1F *)
dir->FindObjectAny(
"h_sumCutAmplitudeperLS7");
1059 HistNumChanDepth[2][1][1] = (TH1F *)
dir->FindObjectAny(
"h_sum0AmplitudeperLS1");
1060 HistNumChanDepth[2][1][2] = (TH1F *)
dir->FindObjectAny(
"h_sum0AmplitudeperLS2");
1062 HistNumChanDepth[2][2][1] = (TH1F *)
dir->FindObjectAny(
"h_sum0AmplitudeperLS3");
1063 HistNumChanDepth[2][2][2] = (TH1F *)
dir->FindObjectAny(
"h_sum0AmplitudeperLS4");
1064 HistNumChanDepth[2][2][3] = (TH1F *)
dir->FindObjectAny(
"h_sum0AmplitudeperLS5");
1066 HistNumChanDepth[2][3][4] = (TH1F *)
dir->FindObjectAny(
"h_sum0AmplitudeperLS8");
1068 HistNumChanDepth[2][4][1] = (TH1F *)
dir->FindObjectAny(
"h_sum0AmplitudeperLS6");
1069 HistNumChanDepth[2][4][2] = (TH1F *)
dir->FindObjectAny(
"h_sum0AmplitudeperLS7");
1071 HistNumChanFull[2] = (TH1F *)HistNumChanDepth[2][1][1]->Clone();
1076 HistNumBadChanDepth[3][1][1] = (TH1F *)
dir->FindObjectAny(
"h_sumAmplperLS1");
1077 HistNumBadChanDepth[3][1][2] = (TH1F *)
dir->FindObjectAny(
"h_sumAmplperLS2");
1079 HistNumBadChanDepth[3][2][1] = (TH1F *)
dir->FindObjectAny(
"h_sumAmplperLS3");
1080 HistNumBadChanDepth[3][2][2] = (TH1F *)
dir->FindObjectAny(
"h_sumAmplperLS4");
1081 HistNumBadChanDepth[3][2][3] = (TH1F *)
dir->FindObjectAny(
"h_sumAmplperLS5");
1083 HistNumBadChanDepth[3][3][4] = (TH1F *)
dir->FindObjectAny(
"h_sumAmplperLS8");
1085 HistNumBadChanDepth[3][4][1] = (TH1F *)
dir->FindObjectAny(
"h_sumAmplperLS6");
1086 HistNumBadChanDepth[3][4][2] = (TH1F *)
dir->FindObjectAny(
"h_sumAmplperLS7");
1088 HistNumBadChanFull[3] = (TH1F *)HistNumBadChanDepth[3][1][1]->Clone();
1090 HistCutNumBadChanDepth[3][1][1] = (TH1F *)
dir->FindObjectAny(
"h_sumCutAmplperLS1");
1091 HistCutNumBadChanDepth[3][1][2] = (TH1F *)
dir->FindObjectAny(
"h_sumCutAmplperLS2");
1093 HistCutNumBadChanDepth[3][2][1] = (TH1F *)
dir->FindObjectAny(
"h_sumCutAmplperLS3");
1094 HistCutNumBadChanDepth[3][2][2] = (TH1F *)
dir->FindObjectAny(
"h_sumCutAmplperLS4");
1095 HistCutNumBadChanDepth[3][2][3] = (TH1F *)
dir->FindObjectAny(
"h_sumCutAmplperLS5");
1097 HistCutNumBadChanDepth[3][3][4] = (TH1F *)
dir->FindObjectAny(
"h_sumCutAmplperLS8");
1099 HistCutNumBadChanDepth[3][4][1] = (TH1F *)
dir->FindObjectAny(
"h_sumCutAmplperLS6");
1100 HistCutNumBadChanDepth[3][4][2] = (TH1F *)
dir->FindObjectAny(
"h_sumCutAmplperLS7");
1102 HistNumChanDepth[3][1][1] = (TH1F *)
dir->FindObjectAny(
"h_sum0AmplperLS1");
1103 HistNumChanDepth[3][1][2] = (TH1F *)
dir->FindObjectAny(
"h_sum0AmplperLS2");
1105 HistNumChanDepth[3][2][1] = (TH1F *)
dir->FindObjectAny(
"h_sum0AmplperLS3");
1106 HistNumChanDepth[3][2][2] = (TH1F *)
dir->FindObjectAny(
"h_sum0AmplperLS4");
1107 HistNumChanDepth[3][2][3] = (TH1F *)
dir->FindObjectAny(
"h_sum0AmplperLS5");
1109 HistNumChanDepth[3][3][4] = (TH1F *)
dir->FindObjectAny(
"h_sum0AmplperLS8");
1111 HistNumChanDepth[3][4][1] = (TH1F *)
dir->FindObjectAny(
"h_sum0AmplperLS6");
1112 HistNumChanDepth[3][4][2] = (TH1F *)
dir->FindObjectAny(
"h_sum0AmplperLS7");
1114 HistNumChanFull[3] = (TH1F *)HistNumChanDepth[3][1][1]->Clone();
1119 HistNumBadChanDepth[4][1][1] = (TH1F *)
dir->FindObjectAny(
"h_sumTSmeanAperLS1");
1120 HistNumBadChanDepth[4][1][2] = (TH1F *)
dir->FindObjectAny(
"h_sumTSmeanAperLS2");
1122 HistNumBadChanDepth[4][2][1] = (TH1F *)
dir->FindObjectAny(
"h_sumTSmeanAperLS3");
1123 HistNumBadChanDepth[4][2][2] = (TH1F *)
dir->FindObjectAny(
"h_sumTSmeanAperLS4");
1124 HistNumBadChanDepth[4][2][3] = (TH1F *)
dir->FindObjectAny(
"h_sumTSmeanAperLS5");
1126 HistNumBadChanDepth[4][3][4] = (TH1F *)
dir->FindObjectAny(
"h_sumTSmeanAperLS8");
1128 HistNumBadChanDepth[4][4][1] = (TH1F *)
dir->FindObjectAny(
"h_sumTSmeanAperLS6");
1129 HistNumBadChanDepth[4][4][2] = (TH1F *)
dir->FindObjectAny(
"h_sumTSmeanAperLS7");
1131 HistNumBadChanFull[4] = (TH1F *)HistNumBadChanDepth[4][1][1]->Clone();
1133 HistCutNumBadChanDepth[4][1][1] = (TH1F *)
dir->FindObjectAny(
"h_sumCutTSmeanAperLS1");
1134 HistCutNumBadChanDepth[4][1][2] = (TH1F *)
dir->FindObjectAny(
"h_sumCutTSmeanAperLS2");
1136 HistCutNumBadChanDepth[4][2][1] = (TH1F *)
dir->FindObjectAny(
"h_sumCutTSmeanAperLS3");
1137 HistCutNumBadChanDepth[4][2][2] = (TH1F *)
dir->FindObjectAny(
"h_sumCutTSmeanAperLS4");
1138 HistCutNumBadChanDepth[4][2][3] = (TH1F *)
dir->FindObjectAny(
"h_sumCutTSmeanAperLS5");
1140 HistCutNumBadChanDepth[4][3][4] = (TH1F *)
dir->FindObjectAny(
"h_sumCutTSmeanAperLS8");
1142 HistCutNumBadChanDepth[4][4][1] = (TH1F *)
dir->FindObjectAny(
"h_sumCutTSmeanAperLS6");
1143 HistCutNumBadChanDepth[4][4][2] = (TH1F *)
dir->FindObjectAny(
"h_sumCutTSmeanAperLS7");
1145 HistNumChanDepth[4][1][1] = (TH1F *)
dir->FindObjectAny(
"h_sum0TSmeanAperLS1");
1146 HistNumChanDepth[4][1][2] = (TH1F *)
dir->FindObjectAny(
"h_sum0TSmeanAperLS2");
1148 HistNumChanDepth[4][2][1] = (TH1F *)
dir->FindObjectAny(
"h_sum0TSmeanAperLS3");
1149 HistNumChanDepth[4][2][2] = (TH1F *)
dir->FindObjectAny(
"h_sum0TSmeanAperLS4");
1150 HistNumChanDepth[4][2][3] = (TH1F *)
dir->FindObjectAny(
"h_sum0TSmeanAperLS5");
1152 HistNumChanDepth[4][3][4] = (TH1F *)
dir->FindObjectAny(
"h_sum0TSmeanAperLS8");
1154 HistNumChanDepth[4][4][1] = (TH1F *)
dir->FindObjectAny(
"h_sum0TSmeanAperLS6");
1155 HistNumChanDepth[4][4][2] = (TH1F *)
dir->FindObjectAny(
"h_sum0TSmeanAperLS7");
1157 HistNumChanFull[4] = (TH1F *)HistNumChanDepth[4][1][1]->Clone();
1162 HistNumBadChanDepth[5][1][1] = (TH1F *)
dir->FindObjectAny(
"h_sumTSmaxAperLS1");
1163 HistNumBadChanDepth[5][1][2] = (TH1F *)
dir->FindObjectAny(
"h_sumTSmaxAperLS2");
1165 HistNumBadChanDepth[5][2][1] = (TH1F *)
dir->FindObjectAny(
"h_sumTSmaxAperLS3");
1166 HistNumBadChanDepth[5][2][2] = (TH1F *)
dir->FindObjectAny(
"h_sumTSmaxAperLS4");
1167 HistNumBadChanDepth[5][2][3] = (TH1F *)
dir->FindObjectAny(
"h_sumTSmaxAperLS5");
1169 HistNumBadChanDepth[5][3][4] = (TH1F *)
dir->FindObjectAny(
"h_sumTSmaxAperLS8");
1171 HistNumBadChanDepth[5][4][1] = (TH1F *)
dir->FindObjectAny(
"h_sumTSmaxAperLS6");
1172 HistNumBadChanDepth[5][4][2] = (TH1F *)
dir->FindObjectAny(
"h_sumTSmaxAperLS7");
1174 HistNumBadChanFull[5] = (TH1F *)HistNumBadChanDepth[5][1][1]->Clone();
1176 HistCutNumBadChanDepth[5][1][1] = (TH1F *)
dir->FindObjectAny(
"h_sumCutTSmaxAperLS1");
1177 HistCutNumBadChanDepth[5][1][2] = (TH1F *)
dir->FindObjectAny(
"h_sumCutTSmaxAperLS2");
1179 HistCutNumBadChanDepth[5][2][1] = (TH1F *)
dir->FindObjectAny(
"h_sumCutTSmaxAperLS3");
1180 HistCutNumBadChanDepth[5][2][2] = (TH1F *)
dir->FindObjectAny(
"h_sumCutTSmaxAperLS4");
1181 HistCutNumBadChanDepth[5][2][3] = (TH1F *)
dir->FindObjectAny(
"h_sumCutTSmaxAperLS5");
1183 HistCutNumBadChanDepth[5][3][4] = (TH1F *)
dir->FindObjectAny(
"h_sumCutTSmaxAperLS8");
1185 HistCutNumBadChanDepth[5][4][1] = (TH1F *)
dir->FindObjectAny(
"h_sumCutTSmaxAperLS6");
1186 HistCutNumBadChanDepth[5][4][2] = (TH1F *)
dir->FindObjectAny(
"h_sumCutTSmaxAperLS7");
1188 HistNumChanDepth[5][1][1] = (TH1F *)
dir->FindObjectAny(
"h_sum0TSmaxAperLS1");
1189 HistNumChanDepth[5][1][2] = (TH1F *)
dir->FindObjectAny(
"h_sum0TSmaxAperLS2");
1191 HistNumChanDepth[5][2][1] = (TH1F *)
dir->FindObjectAny(
"h_sum0TSmaxAperLS3");
1192 HistNumChanDepth[5][2][2] = (TH1F *)
dir->FindObjectAny(
"h_sum0TSmaxAperLS4");
1193 HistNumChanDepth[5][2][3] = (TH1F *)
dir->FindObjectAny(
"h_sum0TSmaxAperLS5");
1195 HistNumChanDepth[5][3][4] = (TH1F *)
dir->FindObjectAny(
"h_sum0TSmaxAperLS8");
1197 HistNumChanDepth[5][4][1] = (TH1F *)
dir->FindObjectAny(
"h_sum0TSmaxAperLS6");
1198 HistNumChanDepth[5][4][2] = (TH1F *)
dir->FindObjectAny(
"h_sum0TSmaxAperLS7");
1200 HistNumChanFull[5] = (TH1F *)HistNumChanDepth[5][1][1]->Clone();
1203 for (
int sub = 1; sub <= 4; sub++) {
1204 if (sub == 1 &&
test != 1)
1206 if (sub == 1 &&
test == 1) {
1208 cFour1->Divide(2, 2);
1210 if (sub == 2 &&
test != 1)
1212 if (sub == 2 &&
test == 1) {
1214 cNine->Divide(3, 3);
1218 if (sub == 4 &&
test != 1)
1220 if (sub == 4 &&
test == 1) {
1222 cFour1->Divide(2, 2);
1225 int kkkkkkmax = k_max[sub];
1227 if ((sub == 4 || sub == 2 || sub == 1) &&
test == 1)
1228 kkkkkkmax = k_maxupgrade[sub];
1229 for (
int k = k_min[sub];
k <= kkkkkkmax;
k++) {
1230 if (sub == 1 &&
test != 1)
1232 if (sub == 1 &&
test == 1)
1234 if (sub == 2 &&
test != 1)
1236 if (sub == 2 &&
test == 1)
1240 if (sub == 4 &&
test != 1)
1242 if (sub == 4 &&
test == 1)
1248 if (sub == 1 &&
k == 1) {
1251 for (
int x = 1;
x <= HistNumBadChanFull[
test]->GetXaxis()->GetNbins();
x++) {
1252 double ccc1 = HistNumBadChanDepth[
test][sub][
k]->GetBinContent(
x);
1253 HistNumBadChanFull[
test]->SetBinContent(
x, HistNumBadChanFull[
test]->GetBinContent(
x) + ccc1);
1254 double ccc2 = HistNumChanDepth[
test][sub][
k]->GetBinContent(
x);
1255 HistNumChanFull[
test]->SetBinContent(
x, HistNumChanFull[
test]->GetBinContent(
x) + ccc2);
1260 HistNumBadChanDepth[
test][sub][
k]->Divide(
1261 HistNumBadChanDepth[
test][sub][
k], HistNumChanDepth[
test][sub][
k], 1, 1,
"B");
1263 for (
int x = 1;
x <= HistNumBadChanDepth[
test][sub][
k]->GetXaxis()->GetNbins();
x++) {
1264 HistNumBadChanDepth[
test][sub][
k]->SetBinError(
float(
x), 0.01);
1269 HistNumBadChanDepth[
test][sub][
k]->GetXaxis()->SetRangeUser(0, MaxLum);
1272 HistNumBadChanDepth[
test][sub][
k]->SetMarkerStyle(20);
1273 HistNumBadChanDepth[
test][sub][
k]->SetMarkerSize(0.4);
1274 HistNumBadChanDepth[
test][sub][
k]->GetYaxis()->SetLabelSize(0.04);
1276 HistNumBadChanDepth[
test][sub][
k]->SetTitle(
"Depth 1\b");
1278 HistNumBadChanDepth[
test][sub][
k]->SetTitle(
"Depth 2\b");
1280 HistNumBadChanDepth[
test][sub][
k]->SetTitle(
"Depth 3\b");
1282 HistNumBadChanDepth[
test][sub][
k]->SetTitle(
"Depth 4\b");
1284 HistNumBadChanDepth[
test][sub][
k]->SetTitle(
"Depth 5\b");
1286 HistNumBadChanDepth[
test][sub][
k]->SetTitle(
"Depth 6\b");
1288 HistNumBadChanDepth[
test][sub][
k]->SetTitle(
"Depth 7\b");
1289 HistNumBadChanDepth[
test][sub][
k]->SetXTitle(
"LS \b");
1291 HistNumBadChanDepth[
test][sub][
k]->SetYTitle(
"<Number of bad channels> \b");
1293 HistNumBadChanDepth[
test][sub][
k]->SetYTitle(
"Averaged estimator \b");
1294 HistNumBadChanDepth[
test][sub][
k]->SetMarkerColor(2);
1295 HistNumBadChanDepth[
test][sub][
k]->SetLineColor(0);
1301 HistNumBadChanDepth[
test][sub][
k]->Draw(
"Error");
1339 if (sub == 1 &&
test != 1) {
1342 if (sub == 1 &&
test == 1) {
1345 if (sub == 2 &&
test != 1) {
1348 if (sub == 2 &&
test == 1) {
1354 if (sub == 4 &&
test != 1) {
1357 if (sub == 4 &&
test == 1) {
1365 cHE->Print(
"HistNBCMNHB.png");
1369 cHE->Print(
"HistNBCMNHE.png");
1373 cHB->Print(
"HistNBCMNHO.png");
1377 cHE->Print(
"HistNBCMNHF.png");
1384 cFour1->Print(
"HistADCamplHB.png");
1388 cNine->Print(
"HistADCamplHE.png");
1392 cHB->Print(
"HistADCamplHO.png");
1396 cFour1->Print(
"HistADCamplHF.png");
1402 cHE->Print(
"HistWidthHB.png");
1406 cHE->Print(
"HistWidthHE.png");
1410 cHB->Print(
"HistWidthHO.png");
1414 cHE->Print(
"HistWidthHF.png");
1420 cHE->Print(
"HistRatioHB.png");
1424 cHE->Print(
"HistRatioHE.png");
1428 cHB->Print(
"HistRatioHO.png");
1432 cHE->Print(
"HistRatioHF.png");
1438 cHE->Print(
"HistTmeanHB.png");
1442 cHE->Print(
"HistTmeanHE.png");
1446 cHB->Print(
"HistTmeanHO.png");
1450 cHE->Print(
"HistTmeanHF.png");
1456 cHE->Print(
"HistTmaxHB.png");
1460 cHE->Print(
"HistTmaxHE.png");
1464 cHB->Print(
"HistTmaxHO.png");
1468 cHE->Print(
"HistTmaxHF.png");
1475 for (
int x = 1;
x <= HistNumChanFull[6]->GetXaxis()->GetNbins();
x++) {
1476 HistNumChanFull[6]->SetBinContent(
x, 0.0);
1477 int depthsubcount = 0.;
1478 for (
int sub = 1; sub <= 4; sub++) {
1479 int kkkkkkmax = k_max[sub];
1480 if (sub == 4 || sub == 2 || sub == 1)
1481 kkkkkkmax = k_maxupgrade[sub];
1483 for (
int k = k_min[sub];
k <= kkkkkkmax;
k++) {
1487 double ccc1 = HistNumBadChanDepth[
test][sub][
k]->GetBinContent(
x);
1488 HistNumChanFull[6]->SetBinContent(
x, HistNumChanFull[6]->GetBinContent(
x) + ccc1);
1491 if (depthsubcount > 0.) {
1492 HistNumChanFull[6]->SetBinContent(
x, (HistNumChanFull[6]->GetBinContent(
x)) / depthsubcount);
1494 HistNumChanFull[6]->SetBinContent(
x, (HistNumChanFull[6]->GetBinContent(
x)) / 8.);
1506 HistNumBadChanFull[
test]->Divide(HistNumBadChanFull[
test], HistNumChanFull[
test], 1, 1,
"B");
1507 TH1F *kfitq =
new TH1F(
"kfitq",
"", MaxLum, 1., MaxLum + 1.);
1508 int nx = kfitq->GetXaxis()->GetNbins();
1509 for (
int i = 1;
i <= nx;
i++) {
1510 double ccc1 = HistNumBadChanFull[
test]->GetBinContent(
i);
1512 kfitq->Fill(
float(
i), ccc1);
1513 kfitq->SetBinError(
float(
i), 0.01);
1516 kfitq->SetMarkerStyle(20);
1517 kfitq->SetMarkerSize(0.4);
1518 kfitq->GetYaxis()->SetLabelSize(0.04);
1520 kfitq->SetTitle(
"Average Nbch for whole Hcal \b");
1522 kfitq->SetTitle(
"Averaged estimator for whole Hcal \b");
1523 kfitq->SetXTitle(
"LS \b");
1525 kfitq->SetYTitle(
"<Number of bad channels> \b");
1527 kfitq->SetYTitle(
"Averaged estimator \b");
1528 kfitq->SetMarkerColor(2);
1529 kfitq->SetLineColor(0);
1531 kfitq->Draw(
"Error");
1551 TH1F *lpuio =
new TH1F(
"lpuio",
"", MaxLum, 1., MaxLum + 1.);
1552 int nx = lpuio->GetXaxis()->GetNbins();
1553 for (
int i = 1;
i <= nx;
i++) {
1554 double ccc1 = HistNumChanFull[6]->GetBinContent(
i);
1556 lpuio->Fill(
float(
i), ccc1);
1557 lpuio->SetBinError(
float(
i), 0.01);
1560 lpuio->SetMarkerStyle(20);
1561 lpuio->SetMarkerSize(0.4);
1562 lpuio->GetYaxis()->SetLabelSize(0.04);
1563 lpuio->SetTitle(
"Mean of Averaged Amplitudes over all Hcal sub-detectors \b");
1564 lpuio->SetXTitle(
"LS \b");
1565 lpuio->SetYTitle(
"Mean of Averaged estimator \b");
1566 lpuio->SetMarkerColor(2);
1567 lpuio->SetLineColor(0);
1569 lpuio->Draw(
"Error");
1572 cHB->Print(
"HistCapID.png");
1576 cHE->Print(
"HistADCAmpl.png");
1580 cHB->Print(
"HistWidth.png");
1584 cHB->Print(
"HistRatio.png");
1588 cHB->Print(
"HistTmean.png");
1592 cHB->Print(
"HistTmax.png");
1606 TH1F *HistAbnormNumBadChanDepth[5][5];
1612 HistAbnormNumBadChanDepth[1][1] = (TH1F *)
dir->FindObjectAny(
"h_runnbadchannelsC_depth1_HB");
1613 HistAbnormNumBadChanDepth[1][2] = (TH1F *)
dir->FindObjectAny(
"h_runnbadchannelsC_depth2_HB");
1614 HistAbnormNumBadChanDepth[2][1] = (TH1F *)
dir->FindObjectAny(
"h_runnbadchannelsC_depth1_HE");
1615 HistAbnormNumBadChanDepth[2][2] = (TH1F *)
dir->FindObjectAny(
"h_runnbadchannelsC_depth2_HE");
1616 HistAbnormNumBadChanDepth[2][3] = (TH1F *)
dir->FindObjectAny(
"h_runnbadchannelsC_depth3_HE");
1617 HistAbnormNumBadChanDepth[3][4] = (TH1F *)
dir->FindObjectAny(
"h_runnbadchannelsC_depth4_HO");
1618 HistAbnormNumBadChanDepth[4][1] = (TH1F *)
dir->FindObjectAny(
"h_runnbadchannelsC_depth1_HF");
1619 HistAbnormNumBadChanDepth[4][2] = (TH1F *)
dir->FindObjectAny(
"h_runnbadchannelsC_depth2_HF");
1621 for (
int sub = 1; sub <= 4; sub++) {
1630 for (
int k = k_min[sub];
k <= k_max[sub];
k++) {
1642 HistAbnormNumBadChanDepth[sub][
k]->Divide(
1643 HistAbnormNumBadChanDepth[sub][
k], HistNumChanDepth[0][sub][
k], 1, 1,
"B");
1645 HistAbnormNumBadChanDepth[sub][
k]->SetTitle(
"Depth 1\b");
1647 HistAbnormNumBadChanDepth[sub][
k]->SetTitle(
"Depth 2\b");
1649 HistAbnormNumBadChanDepth[sub][
k]->SetTitle(
"Depth 3\b");
1651 HistAbnormNumBadChanDepth[sub][
k]->SetTitle(
"Depth 4\b");
1652 HistAbnormNumBadChanDepth[sub][
k]->SetXTitle(
"LS \b");
1653 HistAbnormNumBadChanDepth[sub][
k]->SetYTitle(
"< Number of bad channels > \b");
1654 if (MaxLum <= 1000) {
1655 HistAbnormNumBadChanDepth[sub][
k]->SetMarkerStyle(20);
1656 HistAbnormNumBadChanDepth[sub][
k]->SetMarkerSize(0.5);
1657 HistAbnormNumBadChanDepth[sub][
k]->SetMarkerColor(1);
1658 HistAbnormNumBadChanDepth[sub][
k]->SetLineColor(0);
1659 HistAbnormNumBadChanDepth[sub][
k]->GetXaxis()->SetRangeUser(0, MaxLum);
1660 HistAbnormNumBadChanDepth[sub][
k]->Draw(
"P");
1662 HistAbnormNumBadChanDepth[sub][
k]->SetLineColor(1);
1663 HistAbnormNumBadChanDepth[sub][
k]->GetXaxis()->SetRangeUser(0, MaxLum);
1664 HistAbnormNumBadChanDepth[sub][
k]->Draw(
"L");
1668 cHB->Print(
"Hist_CAPID_Abnorm_HB.png");
1672 cHE->Print(
"Hist_CAPID_Abnorm_HE.png");
1676 cONE->Print(
"Hist_CAPID_Abnorm_HO.png");
1680 cHB->Print(
"Hist_CAPID_Abnorm_HF.png");
1689 TH1F *HistPortBadEventsDepth[5][5];
1691 HistPortBadEventsDepth[1][1] = (TH1F *)
dir->FindObjectAny(
"h_runbadrateC_depth1_HB");
1692 HistPortBadEventsDepth[1][2] = (TH1F *)
dir->FindObjectAny(
"h_runbadrateC_depth2_HB");
1693 HistPortBadEventsDepth[2][1] = (TH1F *)
dir->FindObjectAny(
"h_runbadrateC_depth1_HE");
1694 HistPortBadEventsDepth[2][2] = (TH1F *)
dir->FindObjectAny(
"h_runbadrateC_depth2_HE");
1695 HistPortBadEventsDepth[2][3] = (TH1F *)
dir->FindObjectAny(
"h_runbadrateC_depth3_HE");
1696 HistPortBadEventsDepth[3][4] = (TH1F *)
dir->FindObjectAny(
"h_runbadrateC_depth4_HO");
1697 HistPortBadEventsDepth[4][1] = (TH1F *)
dir->FindObjectAny(
"h_runbadrateC_depth1_HF");
1698 HistPortBadEventsDepth[4][2] = (TH1F *)
dir->FindObjectAny(
"h_runbadrateC_depth2_HF");
1700 TH1F *HistNumRateDepth[5][5];
1701 HistNumRateDepth[1][1] = (TH1F *)
dir->FindObjectAny(
"h_runbadrate0_depth1_HB");
1702 HistNumRateDepth[1][2] = (TH1F *)
dir->FindObjectAny(
"h_runbadrate0_depth2_HB");
1703 HistNumRateDepth[2][1] = (TH1F *)
dir->FindObjectAny(
"h_runbadrate0_depth1_HE");
1704 HistNumRateDepth[2][2] = (TH1F *)
dir->FindObjectAny(
"h_runbadrate0_depth2_HE");
1705 HistNumRateDepth[2][3] = (TH1F *)
dir->FindObjectAny(
"h_runbadrate0_depth3_HE");
1706 HistNumRateDepth[3][4] = (TH1F *)
dir->FindObjectAny(
"h_runbadrate0_depth4_HO");
1707 HistNumRateDepth[4][1] = (TH1F *)
dir->FindObjectAny(
"h_runbadrate0_depth1_HF");
1708 HistNumRateDepth[4][2] = (TH1F *)
dir->FindObjectAny(
"h_runbadrate0_depth2_HF");
1710 for (
int sub = 1; sub <= 4; sub++) {
1719 for (
int k = k_min[sub];
k <= k_max[sub];
k++) {
1731 HistPortBadEventsDepth[sub][
k]->Divide(HistPortBadEventsDepth[sub][
k], HistNumRateDepth[sub][
k], 1, 1,
"B");
1734 HistPortBadEventsDepth[sub][
k]->SetTitle(
"Depth 1\b");
1736 HistPortBadEventsDepth[sub][
k]->SetTitle(
"Depth 2\b");
1738 HistPortBadEventsDepth[sub][
k]->SetTitle(
"Depth 3\b");
1740 HistPortBadEventsDepth[sub][
k]->SetTitle(
"Depth 4\b");
1741 HistPortBadEventsDepth[sub][
k]->SetXTitle(
"LS \b");
1742 HistPortBadEventsDepth[sub][
k]->SetYTitle(
"< Number of bad channels > \b");
1743 if (MaxLum <= 1000) {
1744 HistPortBadEventsDepth[sub][
k]->SetMarkerStyle(20);
1745 HistPortBadEventsDepth[sub][
k]->SetMarkerSize(0.5);
1746 HistPortBadEventsDepth[sub][
k]->SetMarkerColor(1);
1747 HistPortBadEventsDepth[sub][
k]->SetLineColor(0);
1748 HistPortBadEventsDepth[sub][
k]->GetXaxis()->SetRangeUser(0, MaxLum);
1749 HistPortBadEventsDepth[sub][
k]->Draw(
"P");
1751 HistPortBadEventsDepth[sub][
k]->SetLineColor(1);
1752 HistPortBadEventsDepth[sub][
k]->GetXaxis()->SetRangeUser(0, MaxLum);
1753 HistPortBadEventsDepth[sub][
k]->Draw(
"L");
1757 cHB->Print(
"HistPortHB.png");
1761 cHE->Print(
"HistPortHE.png");
1765 cONE->Print(
"HistPortHO.png");
1769 cHB->Print(
"HistPortHF.png");
1780 TH1F *HistNBadChsDepth[5][5];
1782 HistNBadChsDepth[1][1] = (TH1F *)
dir->FindObjectAny(
"h_nbadchannels_depth1_HB");
1783 HistNBadChsDepth[1][2] = (TH1F *)
dir->FindObjectAny(
"h_nbadchannels_depth2_HB");
1784 HistNBadChsDepth[2][1] = (TH1F *)
dir->FindObjectAny(
"h_nbadchannels_depth1_HE");
1785 HistNBadChsDepth[2][2] = (TH1F *)
dir->FindObjectAny(
"h_nbadchannels_depth2_HE");
1786 HistNBadChsDepth[2][3] = (TH1F *)
dir->FindObjectAny(
"h_nbadchannels_depth3_HE");
1787 HistNBadChsDepth[3][4] = (TH1F *)
dir->FindObjectAny(
"h_nbadchannels_depth4_HO");
1788 HistNBadChsDepth[4][1] = (TH1F *)
dir->FindObjectAny(
"h_nbadchannels_depth1_HF");
1789 HistNBadChsDepth[4][2] = (TH1F *)
dir->FindObjectAny(
"h_nbadchannels_depth2_HF");
1791 for (
int sub = 1; sub <= 4; sub++) {
1800 for (
int k = k_min[sub];
k <= k_max[sub];
k++) {
1814 HistNBadChsDepth[sub][
k]->SetTitle(
"Depth 1\b");
1816 HistNBadChsDepth[sub][
k]->SetTitle(
"Depth 2\b");
1818 HistNBadChsDepth[sub][
k]->SetTitle(
"Depth 3\b");
1820 HistNBadChsDepth[sub][
k]->SetTitle(
"Depth 4\b");
1821 HistNBadChsDepth[sub][
k]->SetXTitle(
"Number of bad channels\b");
1822 HistNBadChsDepth[sub][
k]->SetYTitle(
"Number of events\b");
1827 HistNBadChsDepth[sub][
k]->Draw(
"");
1830 cHB->Print(
"HistNBadChsHB.png");
1834 cHE->Print(
"HistNBadChsHE.png");
1838 cONE->Print(
"HistNBadChsHO.png");
1842 cHB->Print(
"HistNBadChsHF.png");
1853 int flagErrAB_HB[2];
1854 flagErrAB_HB[0] = -1;
1855 flagErrAB_HB[1] = -1;
1856 double avedelta_HB = 0.;
1857 int lastLumiBin_HB = -1;
1858 int LSofFirstErrB_HB = -1;
1860 const int specCountA = 4;
1861 const int specColors[specCountA] = {1, 2, 3, 4};
1862 const TString hnames[specCountA][2] = {{
"h_sumADCAmplperLS1_P1",
"h_sum0ADCAmplperLS1_P1"},
1863 {
"h_sumADCAmplperLS1_P2",
"h_sum0ADCAmplperLS1_P2"},
1864 {
"h_sumADCAmplperLS1_M1",
"h_sum0ADCAmplperLS1_M1"},
1865 {
"h_sumADCAmplperLS1_M2",
"h_sum0ADCAmplperLS1_M2"}};
1867 std::vector<TH1F *> hV;
1868 THStack *hs =
new THStack(
"hs",
"ADCAmplerLS1");
1875 for (
int i = 0;
i < specCountA;
i++) {
1877 std::cout <<
"debugger: errA_HB : get histos for i=" <<
i <<
" " << hnames[
i][0] <<
" and " << hnames[
i][1]
1879 TH1F *h1 = (TH1F *)
dir->FindObjectAny(hnames[
i][0]);
1880 TH1F *h0 = (TH1F *)
dir->FindObjectAny(hnames[
i][1]);
1882 TPaveText *ptext =
new TPaveText(0.05, 0.85, 0.95, 0.95);
1883 ptext->AddText(
"Missing histo");
1885 std::cout <<
"\tfailed to get " << hnames[
i][0] <<
"\n";
1886 ptext->AddText(hnames[
i][0]);
1889 std::cout <<
"\tfailed to get " << hnames[
i][1] <<
"\n";
1890 ptext->AddText(hnames[
i][1]);
1895 TH1F *hERT1orig = (TH1F *)h1->Clone(Form(
"ERT1orig_%d",
i));
1896 hERT1orig->Divide(h1, h0, 1, 1,
"B");
1898 if ((lastLumiBin_HB < 0) && (
i == 0)) {
1899 for (
int ibin = hERT1orig->GetNbinsX(); ibin >= 1; ibin--) {
1900 if (hERT1orig->GetBinContent(ibin) == 0)
1901 lastLumiBin_HB = ibin;
1905 lastLumiBin_HB += 3;
1906 if (lastLumiBin_HB >= hERT1orig->GetNbinsX())
1907 lastLumiBin_HB = -1;
1910 if (lastLumiBin_HB > 1) {
1911 if (!
copyContents(&hERT1, Form(
"ERT1_%d",
i),
"", hERT1orig, lastLumiBin_HB)) {
1912 std::cout <<
"code failed" << std::endl;
1918 hERT1->GetXaxis()->SetTitle(
"<ADCAmpl> per LS HB: black-P1, red-P2,green-M1,blue-M2");
1919 hV.push_back(hERT1);
1920 hERT1->SetMarkerStyle(20);
1921 hERT1->SetMarkerSize(0.4);
1922 hERT1->SetXTitle(
"<A>(ev.in LS & ch.) - HB P1 - iLS \b");
1923 hERT1->SetMarkerColor(specColors[
i]);
1924 hERT1->SetLineColor(0);
1928 if (hERT1 != hERT1orig)
1931 hs->Draw(
"LPE1 nostack");
1933 hs->GetXaxis()->SetTitle(
"<A> per LS: black-P1, red-P2,green-M1,blue-M2");
1934 hs->Draw(
"LPE1 nostack");
1940 TH1F *
diff =
new TH1F(
"diff",
"", 100, 0., 4.);
1942 if (
int(hV.size()) == specCountA) {
1943 flagErrAB_HB[0] = 0;
1944 double sumdelta = 0.;
1946 for (
int ibin = 1; ibin <= hV[0]->GetNbinsX(); ibin++) {
1948 double maxdelta = 0.;
1949 for (
unsigned int i = 0;
i < hV.size();
i++) {
1950 const TH1F *
hi = hV[
i];
1951 for (
unsigned int j = 1;
j < hV.size();
j++) {
1952 const TH1F *hj = hV[
j];
1953 delta = fabs(
hi->GetBinContent(ibin) - hj->GetBinContent(ibin));
1954 if (
delta > maxdelta)
1958 if (maxdelta > 0.) {
1959 diff->Fill(maxdelta);
1960 sumdelta += maxdelta;
1965 avedelta_HB = sumdelta / nnndelta;
1966 std::cout <<
"******************>>>>>> ErrA_HB: avedelta_HB = " << avedelta_HB << std::endl;
1967 if (avedelta_HB > 0.24 || (avedelta_HB < 0.14 && avedelta_HB > 0.)) {
1968 flagErrAB_HB[0] = 1;
1971 diff->SetMarkerStyle(20);
1972 diff->SetMarkerSize(0.8);
1973 diff->SetXTitle(
"max difference \b");
1974 diff->SetMarkerColor(2);
1975 diff->SetLineColor(0);
1978 diff->Draw(
"Error");
1981 cHB->Print(
"HistErrA_HB.png");
1988 for (
unsigned int i = 0;
i < hV.size();
i++)
1995 const int specCountB = 4;
1996 const TString hnames[specCountB][2] = {{
"h_2DsumErrorBLS1",
"h_2D0sumErrorBLS1"},
1997 {
"h_sumErrorBperLS1",
"h_sum0ErrorBperLS1"},
1998 {
"h_2DsumErrorBLS2",
"h_2D0sumErrorBLS2"},
1999 {
"h_sumErrorBperLS2",
"h_sum0ErrorBperLS2"}};
2006 TH1F *hRate2orig =
NULL;
2007 TH2F *h2Cefz6 =
NULL;
2008 TString hname1 = hnames[2 *
depth - 2][0];
2009 TString hname0 = hnames[2 *
depth - 2][1];
2010 TH2F *twod1 = (TH2F *)
dir->FindObjectAny(hname1);
2011 TH2F *twod0 = (TH2F *)
dir->FindObjectAny(hname0);
2013 std::cout <<
"debugger: errB_HB depth=" <<
depth <<
". get 2D histos " << hname1 <<
" and " << hname0 <<
"\n";
2014 if (!twod1 || !twod0) {
2015 TPaveText *ptext =
new TPaveText(0.05, 0.85, 0.95, 0.95);
2016 ptext->AddText(
"Missing histos");
2018 std::cout <<
"\tfailed to get " << hname1 <<
"\n";
2019 ptext->AddText(hname1);
2022 std::cout <<
"\tfailed to get " << hname0 <<
"\n";
2023 ptext->AddText(hname0);
2027 h2Cefz6 = (TH2F *)twod1->Clone(Form(
"Cefz6_%d",
depth));
2028 h2Cefz6->SetTitle(Form(
"HB Depth %d \b",
depth));
2029 h2Cefz6->Divide(twod1, twod0, 1, 1,
"B");
2034 h2Cefz6->SetTitle(Form(
"Depth %d \b",
depth));
2035 h2Cefz6->SetMarkerStyle(20);
2036 h2Cefz6->SetMarkerSize(0.4);
2038 h2Cefz6->SetXTitle(
"#eta \b");
2039 h2Cefz6->SetYTitle(
"#phi \b");
2040 h2Cefz6->SetZTitle(Form(
"<ErrorB> - HB Depth%d \b",
depth));
2041 h2Cefz6->SetMarkerColor(2);
2042 h2Cefz6->SetLineColor(2);
2043 h2Cefz6->Draw(
"COLZ");
2050 hname1 = hnames[2 *
depth - 1][0];
2051 hname0 = hnames[2 *
depth - 1][1];
2052 TH1F *h1 = (TH1F *)
dir->FindObjectAny(hname1);
2053 TH1F *h0 = (TH1F *)
dir->FindObjectAny(hname0);
2055 std::cout <<
"errB_HB depth=" <<
depth <<
". get 2D histos " << hname1 <<
" and " << hname0 <<
"\n";
2057 TPaveText *ptext =
new TPaveText(0.05, 0.85, 0.95, 0.95);
2058 ptext->AddText(
"Missing histo");
2060 std::cout <<
"\tfailed to get " << hname1 <<
"\n";
2061 ptext->AddText(hname1);
2064 std::cout <<
"\tfailed to get " << hname0 <<
"\n";
2065 ptext->AddText(hname0);
2072 hRate2orig = (TH1F *)h1->Clone(Form(
"Rate2orig_%d",
depth));
2073 hRate2orig->Divide(h1, h0, 1, 1,
"B");
2075 TH1F *hRate2 =
NULL;
2076 if (lastLumiBin_HB > 1) {
2077 if (!
copyContents(&hRate2, Form(
"Rate2_%d",
depth),
"", hRate2orig, lastLumiBin_HB)) {
2078 std::cout <<
"code failed" << std::endl;
2082 hRate2 = hRate2orig;
2084 hRate2->SetTitle(Form(
"Depth %d \b",
depth));
2085 hRate2->SetMarkerStyle(20);
2086 hRate2->SetMarkerSize(0.8);
2088 hRate2->SetXTitle(Form(
"<ErrorB>(ev.in LS & ch.) - HB depth%d - iLS \b",
depth));
2089 hRate2->SetMarkerColor(2);
2090 hRate2->SetLineColor(0);
2091 hRate2->Draw(
"Error");
2093 if (LSofFirstErrB_HB == -1) {
2094 int nx = hRate2->GetXaxis()->GetNbins();
2095 for (
int i = 1;
i <= nx;
i++) {
2096 double ccc1 = hRate2->GetBinContent(
i);
2098 cout <<
"****************>>>>>>>>>>> ErrB_HB bad LS start at iLS = " <<
i <<
" with rate = " << ccc1
2100 LSofFirstErrB_HB =
i;
2108 if (hRate2 != hRate2orig) {
2110 hRate2orig = hRate2;
2115 cHB->Print(Form(
"HistErrB_HB_%d.png",
depth));
2130 int flagErrAB_HE[2];
2131 flagErrAB_HE[0] = -1;
2132 flagErrAB_HE[1] = -1;
2133 double avedelta_HE = 0.;
2134 int lastLumiBin_HE = -1;
2135 int LSofFirstErrB_HE = -1;
2137 const int specCountA = 4;
2138 const int specColors[specCountA] = {1, 2, 3, 4};
2139 const TString hnames[specCountA][2] = {{
"h_sumADCAmplperLS3_P1",
"h_sum0ADCAmplperLS3_P1"},
2140 {
"h_sumADCAmplperLS3_P2",
"h_sum0ADCAmplperLS3_P2"},
2141 {
"h_sumADCAmplperLS3_M1",
"h_sum0ADCAmplperLS3_M1"},
2142 {
"h_sumADCAmplperLS3_M2",
"h_sum0ADCAmplperLS3_M2"}};
2144 std::vector<TH1F *> hV;
2145 THStack *hs =
new THStack(
"hs",
"ADCAmplerLS1");
2152 for (
int i = 0;
i < specCountA;
i++) {
2154 std::cout <<
"debugger: errA_HE : get histos for i=" <<
i <<
" " << hnames[
i][0] <<
" and " << hnames[
i][1]
2156 TH1F *h1 = (TH1F *)
dir->FindObjectAny(hnames[
i][0]);
2157 TH1F *h0 = (TH1F *)
dir->FindObjectAny(hnames[
i][1]);
2159 TPaveText *ptext =
new TPaveText(0.05, 0.85, 0.95, 0.95);
2160 ptext->AddText(
"Missing histo");
2162 std::cout <<
"\tfailed to get " << hnames[
i][0] <<
"\n";
2163 ptext->AddText(hnames[
i][0]);
2166 std::cout <<
"\tfailed to get " << hnames[
i][1] <<
"\n";
2167 ptext->AddText(hnames[
i][1]);
2172 TH1F *hERT1orig = (TH1F *)h1->Clone(Form(
"ERT1orig_%d",
i));
2173 hERT1orig->Divide(h1, h0, 1, 1,
"B");
2175 if ((lastLumiBin_HE < 0) && (
i == 0)) {
2176 for (
int ibin = hERT1orig->GetNbinsX(); ibin >= 1; ibin--) {
2177 if (hERT1orig->GetBinContent(ibin) == 0)
2178 lastLumiBin_HE = ibin;
2182 lastLumiBin_HE += 3;
2183 if (lastLumiBin_HE >= hERT1orig->GetNbinsX())
2184 lastLumiBin_HE = -1;
2187 if (lastLumiBin_HE > 1) {
2188 if (!
copyContents(&hERT1, Form(
"ERT1_%d",
i),
"", hERT1orig, lastLumiBin_HE)) {
2189 std::cout <<
"code failed" << std::endl;
2195 hERT1->GetXaxis()->SetTitle(
"<ADCAmpl> per LS HE: black-P1, red-P2,green-M1,blue-M2");
2196 hV.push_back(hERT1);
2197 hERT1->SetMarkerStyle(20);
2198 hERT1->SetMarkerSize(0.4);
2199 hERT1->SetXTitle(
"<A>(ev.in LS & ch.) - HE P1 - iLS \b");
2200 hERT1->SetMarkerColor(specColors[
i]);
2201 hERT1->SetLineColor(0);
2205 if (hERT1 != hERT1orig)
2208 hs->Draw(
"LPE1 nostack");
2210 hs->GetXaxis()->SetTitle(
"<A> per LS: black-P1, red-P2,green-M1,blue-M2");
2211 hs->Draw(
"LPE1 nostack");
2217 TH1F *
diff =
new TH1F(
"diff",
"", 100, 0., 4.);
2219 if (
int(hV.size()) == specCountA) {
2220 flagErrAB_HE[0] = 0;
2221 double sumdelta = 0.;
2223 for (
int ibin = 1; ibin <= hV[0]->GetNbinsX(); ibin++) {
2225 double maxdelta = 0.;
2226 for (
unsigned int i = 0;
i < hV.size();
i++) {
2227 const TH1F *
hi = hV[
i];
2228 for (
unsigned int j = 1;
j < hV.size();
j++) {
2229 const TH1F *hj = hV[
j];
2230 delta = fabs(
hi->GetBinContent(ibin) - hj->GetBinContent(ibin));
2231 if (
delta > maxdelta)
2235 if (maxdelta > 0.) {
2236 diff->Fill(maxdelta);
2237 sumdelta += maxdelta;
2242 avedelta_HE = sumdelta / nnndelta;
2243 std::cout <<
"******************>>>>>> ErrA_HE: avedelta_HE = " << avedelta_HE << std::endl;
2244 if (avedelta_HE > 1.1 || (avedelta_HE < 0.5 && avedelta_HE > 0.)) {
2245 flagErrAB_HE[0] = 1;
2248 diff->SetMarkerStyle(20);
2249 diff->SetMarkerSize(0.8);
2250 diff->SetXTitle(
"max difference \b");
2251 diff->SetMarkerColor(2);
2252 diff->SetLineColor(0);
2255 diff->Draw(
"Error");
2258 cHB->Print(
"HistErrA_HE.png");
2265 for (
unsigned int i = 0;
i < hV.size();
i++)
2272 const int specCountB = 6;
2273 const TString hnames[specCountB][2] = {{
"h_2DsumErrorBLS3",
"h_2D0sumErrorBLS3"},
2274 {
"h_sumErrorBperLS3",
"h_sum0ErrorBperLS3"},
2275 {
"h_2DsumErrorBLS4",
"h_2D0sumErrorBLS4"},
2276 {
"h_sumErrorBperLS4",
"h_sum0ErrorBperLS4"},
2277 {
"h_2DsumErrorBLS5",
"h_2D0sumErrorBLS5"},
2278 {
"h_sumErrorBperLS5",
"h_sum0ErrorBperLS5"}};
2285 TH1F *hRate2orig =
NULL;
2286 TH2F *h2Cefz6 =
NULL;
2287 TString hname1 = hnames[2 *
depth - 2][0];
2288 TString hname0 = hnames[2 *
depth - 2][1];
2289 TH2F *twod1 = (TH2F *)
dir->FindObjectAny(hname1);
2290 TH2F *twod0 = (TH2F *)
dir->FindObjectAny(hname0);
2292 std::cout <<
"debugger: errB_HE depth=" <<
depth <<
". get 2D histos " << hname1 <<
" and " << hname0 <<
"\n";
2293 if (!twod1 || !twod0) {
2294 TPaveText *ptext =
new TPaveText(0.05, 0.85, 0.95, 0.95);
2295 ptext->AddText(
"Missing histos");
2297 std::cout <<
"\tfailed to get " << hname1 <<
"\n";
2298 ptext->AddText(hname1);
2301 std::cout <<
"\tfailed to get " << hname0 <<
"\n";
2302 ptext->AddText(hname0);
2306 h2Cefz6 = (TH2F *)twod1->Clone(Form(
"Cefz6_%d",
depth));
2307 h2Cefz6->SetTitle(Form(
"HE Depth %d \b",
depth));
2308 h2Cefz6->Divide(twod1, twod0, 1, 1,
"B");
2313 h2Cefz6->SetTitle(Form(
"Depth %d \b",
depth));
2314 h2Cefz6->SetMarkerStyle(20);
2315 h2Cefz6->SetMarkerSize(0.4);
2317 h2Cefz6->SetXTitle(
"#eta \b");
2318 h2Cefz6->SetYTitle(
"#phi \b");
2319 h2Cefz6->SetZTitle(Form(
"<ErrorB> - HE Depth%d \b",
depth));
2320 h2Cefz6->SetMarkerColor(2);
2321 h2Cefz6->SetLineColor(2);
2322 h2Cefz6->Draw(
"COLZ");
2329 hname1 = hnames[2 *
depth - 1][0];
2330 hname0 = hnames[2 *
depth - 1][1];
2331 TH1F *h1 = (TH1F *)
dir->FindObjectAny(hname1);
2332 TH1F *h0 = (TH1F *)
dir->FindObjectAny(hname0);
2334 std::cout <<
"errB_HE depth=" <<
depth <<
". get 2D histos " << hname1 <<
" and " << hname0 <<
"\n";
2336 TPaveText *ptext =
new TPaveText(0.05, 0.85, 0.95, 0.95);
2337 ptext->AddText(
"Missing histo");
2339 std::cout <<
"\tfailed to get " << hname1 <<
"\n";
2340 ptext->AddText(hname1);
2343 std::cout <<
"\tfailed to get " << hname0 <<
"\n";
2344 ptext->AddText(hname0);
2351 hRate2orig = (TH1F *)h1->Clone(Form(
"Rate2orig_%d",
depth));
2352 hRate2orig->Divide(h1, h0, 1, 1,
"B");
2354 TH1F *hRate2 =
NULL;
2355 if (lastLumiBin_HE > 1) {
2356 if (!
copyContents(&hRate2, Form(
"Rate2_%d",
depth),
"", hRate2orig, lastLumiBin_HE)) {
2357 std::cout <<
"code failed" << std::endl;
2361 hRate2 = hRate2orig;
2363 hRate2->SetTitle(Form(
"Depth %d \b",
depth));
2364 hRate2->SetMarkerStyle(20);
2365 hRate2->SetMarkerSize(0.8);
2367 hRate2->SetXTitle(Form(
"<ErrorB>(ev.in LS & ch.) - HE depth%d - iLS \b",
depth));
2368 hRate2->SetMarkerColor(2);
2369 hRate2->SetLineColor(0);
2370 hRate2->Draw(
"Error");
2372 if (LSofFirstErrB_HE == -1) {
2373 int nx = hRate2->GetXaxis()->GetNbins();
2374 for (
int i = 1;
i <= nx;
i++) {
2375 double ccc1 = hRate2->GetBinContent(
i);
2377 cout <<
"****************>>>>>>>>>>> ErrB_HE bad LS start at iLS = " <<
i <<
" with rate = " << ccc1
2379 LSofFirstErrB_HE =
i;
2387 if (hRate2 != hRate2orig) {
2389 hRate2orig = hRate2;
2394 cHB->Print(Form(
"HistErrB_HE_%d.png",
depth));
2409 int flagErrAB_HO[2];
2410 flagErrAB_HO[0] = -1;
2411 flagErrAB_HO[1] = -1;
2412 double avedelta_HO = 0.;
2413 int lastLumiBin_HO = -1;
2414 int LSofFirstErrB_HO = -1;
2416 const int specCountA = 4;
2417 const int specColors[specCountA] = {1, 2, 3, 4};
2418 const TString hnames[specCountA][2] = {{
"h_sumADCAmplperLS8_P1",
"h_sum0ADCAmplperLS8_P1"},
2419 {
"h_sumADCAmplperLS8_P2",
"h_sum0ADCAmplperLS8_P2"},
2420 {
"h_sumADCAmplperLS8_M1",
"h_sum0ADCAmplperLS8_M1"},
2421 {
"h_sumADCAmplperLS8_M2",
"h_sum0ADCAmplperLS8_M2"}};
2423 std::vector<TH1F *> hV;
2424 THStack *hs =
new THStack(
"hs",
"ADCAmplerLS1");
2431 for (
int i = 0;
i < specCountA;
i++) {
2433 std::cout <<
"debugger: errA_HO : get histos for i=" <<
i <<
" " << hnames[
i][0] <<
" and " << hnames[
i][1]
2435 TH1F *h1 = (TH1F *)
dir->FindObjectAny(hnames[
i][0]);
2436 TH1F *h0 = (TH1F *)
dir->FindObjectAny(hnames[
i][1]);
2438 TPaveText *ptext =
new TPaveText(0.05, 0.85, 0.95, 0.95);
2439 ptext->AddText(
"Missing histo");
2441 std::cout <<
"\tfailed to get " << hnames[
i][0] <<
"\n";
2442 ptext->AddText(hnames[
i][0]);
2445 std::cout <<
"\tfailed to get " << hnames[
i][1] <<
"\n";
2446 ptext->AddText(hnames[
i][1]);
2451 TH1F *hoRT1orig = (TH1F *)h1->Clone(Form(
"ERT1orig_%d",
i));
2452 hoRT1orig->Divide(h1, h0, 1, 1,
"B");
2454 if ((lastLumiBin_HO < 0) && (
i == 0)) {
2455 for (
int ibin = hoRT1orig->GetNbinsX(); ibin >= 1; ibin--) {
2456 if (hoRT1orig->GetBinContent(ibin) == 0)
2457 lastLumiBin_HO = ibin;
2461 lastLumiBin_HO += 3;
2462 if (lastLumiBin_HO >= hoRT1orig->GetNbinsX())
2463 lastLumiBin_HO = -1;
2466 if (lastLumiBin_HO > 1) {
2467 if (!
copyContents(&hoRT1, Form(
"ERT1_%d",
i),
"", hoRT1orig, lastLumiBin_HO)) {
2468 std::cout <<
"code failed" << std::endl;
2474 hoRT1->GetXaxis()->SetTitle(
"<ADCAmpl> per LS HO: black-P1, red-P2,green-M1,blue-M2");
2475 hV.push_back(hoRT1);
2476 hoRT1->SetMarkerStyle(20);
2477 hoRT1->SetMarkerSize(0.4);
2478 hoRT1->SetXTitle(
"<A>(ev.in LS & ch.) - HO P1 - iLS \b");
2479 hoRT1->SetMarkerColor(specColors[
i]);
2480 hoRT1->SetLineColor(0);
2484 if (hoRT1 != hoRT1orig)
2487 hs->Draw(
"LPE1 nostack");
2489 hs->GetXaxis()->SetTitle(
"<A> per LS: black-P1, red-P2,green-M1,blue-M2");
2490 hs->Draw(
"LPE1 nostack");
2496 TH1F *
diff =
new TH1F(
"diff",
"", 100, 0., 4.);
2498 if (
int(hV.size()) == specCountA) {
2499 flagErrAB_HO[0] = 0;
2500 double sumdelta = 0.;
2502 for (
int ibin = 1; ibin <= hV[0]->GetNbinsX(); ibin++) {
2504 double maxdelta = 0.;
2505 for (
unsigned int i = 0;
i < hV.size();
i++) {
2506 const TH1F *
hi = hV[
i];
2507 for (
unsigned int j = 1;
j < hV.size();
j++) {
2508 const TH1F *hj = hV[
j];
2509 delta = fabs(
hi->GetBinContent(ibin) - hj->GetBinContent(ibin));
2510 if (
delta > maxdelta)
2514 if (maxdelta > 0.) {
2515 diff->Fill(maxdelta);
2516 sumdelta += maxdelta;
2521 avedelta_HO = sumdelta / nnndelta;
2522 std::cout <<
"******************>>>>>> ErrA_HO: avedelta_HO = " << avedelta_HO << std::endl;
2523 if (avedelta_HO > 0.8 || (avedelta_HO < 0.2 && avedelta_HO > 0.)) {
2524 flagErrAB_HO[0] = 1;
2527 diff->SetMarkerStyle(20);
2528 diff->SetMarkerSize(0.8);
2529 diff->SetXTitle(
"max difference \b");
2530 diff->SetMarkerColor(2);
2531 diff->SetLineColor(0);
2534 diff->Draw(
"Error");
2537 cHB->Print(
"HistErrA_HO.png");
2544 for (
unsigned int i = 0;
i < hV.size();
i++)
2551 const int specCountB = 2;
2552 const TString hnames[specCountB][2] = {{
"h_2DsumErrorBLS8",
"h_2D0sumErrorBLS8"},
2553 {
"h_sumErrorBperLS8",
"h_sum0ErrorBperLS8"}};
2560 TH1F *hRate2orig =
NULL;
2561 TH2F *h2Cefz6 =
NULL;
2562 TString hname1 = hnames[2 *
depth - 8][0];
2563 TString hname0 = hnames[2 *
depth - 8][1];
2564 TH2F *twod1 = (TH2F *)
dir->FindObjectAny(hname1);
2565 TH2F *twod0 = (TH2F *)
dir->FindObjectAny(hname0);
2567 std::cout <<
"debugger: errB_HO depth=" <<
depth <<
". get 2D histos " << hname1 <<
" and " << hname0 <<
"\n";
2568 if (!twod1 || !twod0) {
2569 TPaveText *ptext =
new TPaveText(0.05, 0.85, 0.95, 0.95);
2570 ptext->AddText(
"Missing histos");
2572 std::cout <<
"\tfailed to get " << hname1 <<
"\n";
2573 ptext->AddText(hname1);
2576 std::cout <<
"\tfailed to get " << hname0 <<
"\n";
2577 ptext->AddText(hname0);
2581 h2Cefz6 = (TH2F *)twod1->Clone(Form(
"Cefz6_%d",
depth));
2582 h2Cefz6->SetTitle(Form(
"HO Depth %d \b",
depth));
2583 h2Cefz6->Divide(twod1, twod0, 1, 1,
"B");
2588 h2Cefz6->SetTitle(Form(
"Depth %d \b",
depth));
2589 h2Cefz6->SetMarkerStyle(20);
2590 h2Cefz6->SetMarkerSize(0.4);
2592 h2Cefz6->SetXTitle(
"#eta \b");
2593 h2Cefz6->SetYTitle(
"#phi \b");
2594 h2Cefz6->SetZTitle(Form(
"<ErrorB> - HO Depth%d \b",
depth));
2595 h2Cefz6->SetMarkerColor(2);
2596 h2Cefz6->SetLineColor(2);
2597 h2Cefz6->Draw(
"COLZ");
2604 hname1 = hnames[2 *
depth - 7][0];
2605 hname0 = hnames[2 *
depth - 7][1];
2606 TH1F *h1 = (TH1F *)
dir->FindObjectAny(hname1);
2607 TH1F *h0 = (TH1F *)
dir->FindObjectAny(hname0);
2609 std::cout <<
"errB_HO depth=" <<
depth <<
". get 2D histos " << hname1 <<
" and " << hname0 <<
"\n";
2611 TPaveText *ptext =
new TPaveText(0.05, 0.85, 0.95, 0.95);
2612 ptext->AddText(
"Missing histo");
2614 std::cout <<
"\tfailed to get " << hname1 <<
"\n";
2615 ptext->AddText(hname1);
2618 std::cout <<
"\tfailed to get " << hname0 <<
"\n";
2619 ptext->AddText(hname0);
2626 hRate2orig = (TH1F *)h1->Clone(Form(
"Rate2orig_%d",
depth));
2627 hRate2orig->Divide(h1, h0, 1, 1,
"B");
2629 TH1F *hRate2 =
NULL;
2630 if (lastLumiBin_HO > 1) {
2631 if (!
copyContents(&hRate2, Form(
"Rate2_%d",
depth),
"", hRate2orig, lastLumiBin_HO)) {
2632 std::cout <<
"code failed" << std::endl;
2636 hRate2 = hRate2orig;
2638 hRate2->SetTitle(Form(
"Depth %d \b",
depth));
2639 hRate2->SetMarkerStyle(20);
2640 hRate2->SetMarkerSize(0.8);
2642 hRate2->SetXTitle(Form(
"<ErrorB>(ev.in LS & ch.) - HO depth%d - iLS \b",
depth));
2643 hRate2->SetMarkerColor(2);
2644 hRate2->SetLineColor(0);
2645 hRate2->Draw(
"Error");
2647 if (LSofFirstErrB_HO == -1) {
2648 int nx = hRate2->GetXaxis()->GetNbins();
2649 for (
int i = 1;
i <= nx;
i++) {
2650 double ccc1 = hRate2->GetBinContent(
i);
2652 cout <<
"****************>>>>>>>>>>> ErrB_HO bad LS start at iLS = " <<
i <<
" with rate = " << ccc1
2654 LSofFirstErrB_HO =
i;
2662 if (hRate2 != hRate2orig) {
2664 hRate2orig = hRate2;
2669 cHB->Print(Form(
"HistErrB_HO_%d.png",
depth));
2683 int flagErrAB_HF[2];
2684 flagErrAB_HF[0] = -1;
2685 flagErrAB_HF[1] = -1;
2686 double avedelta_HF = 0.;
2687 int lastLumiBin_HF = -1;
2688 int LSofFirstErrB_HF = -1;
2690 const int specCountA = 4;
2691 const int specColors[specCountA] = {1, 2, 3, 4};
2692 const TString hnames[specCountA][2] = {{
"h_sumADCAmplperLS6_P1",
"h_sum0ADCAmplperLS6_P1"},
2693 {
"h_sumADCAmplperLS6_P2",
"h_sum0ADCAmplperLS6_P2"},
2694 {
"h_sumADCAmplperLS6_M1",
"h_sum0ADCAmplperLS6_M1"},
2695 {
"h_sumADCAmplperLS6_M2",
"h_sum0ADCAmplperLS6_M2"}};
2697 std::vector<TH1F *> hV;
2698 THStack *hs =
new THStack(
"hs",
"ADCAmplerLS6");
2705 for (
int i = 0;
i < specCountA;
i++) {
2707 std::cout <<
"debugger: errA_HF : get histos for i=" <<
i <<
" " << hnames[
i][0] <<
" and " << hnames[
i][1]
2709 TH1F *h1 = (TH1F *)
dir->FindObjectAny(hnames[
i][0]);
2710 TH1F *h0 = (TH1F *)
dir->FindObjectAny(hnames[
i][1]);
2712 TPaveText *ptext =
new TPaveText(0.05, 0.85, 0.95, 0.95);
2713 ptext->AddText(
"Missing histo");
2715 std::cout <<
"\tfailed to get " << hnames[
i][0] <<
"\n";
2716 ptext->AddText(hnames[
i][0]);
2719 std::cout <<
"\tfailed to get " << hnames[
i][1] <<
"\n";
2720 ptext->AddText(hnames[
i][1]);
2725 TH1F *hERT1orig = (TH1F *)h1->Clone(Form(
"ERT1orig_%d",
i));
2726 hERT1orig->Divide(h1, h0, 1, 1,
"B");
2728 if ((lastLumiBin_HF < 0) && (
i == 0)) {
2729 for (
int ibin = hERT1orig->GetNbinsX(); ibin >= 1; ibin--) {
2730 if (hERT1orig->GetBinContent(ibin) == 0)
2731 lastLumiBin_HF = ibin;
2735 lastLumiBin_HF += 3;
2736 if (lastLumiBin_HF >= hERT1orig->GetNbinsX())
2737 lastLumiBin_HF = -1;
2740 if (lastLumiBin_HF > 1) {
2741 if (!
copyContents(&hERT1, Form(
"ERT1_%d",
i),
"", hERT1orig, lastLumiBin_HF)) {
2742 std::cout <<
"code failed" << std::endl;
2748 hERT1->GetXaxis()->SetTitle(
"<ADCAmpl> per LS HF: black-P1, red-P2,green-M1,blue-M2");
2749 hV.push_back(hERT1);
2750 hERT1->SetMarkerStyle(20);
2751 hERT1->SetMarkerSize(0.4);
2752 hERT1->SetXTitle(
"<A>(ev.in LS & ch.) - HF P1 - iLS \b");
2753 hERT1->SetMarkerColor(specColors[
i]);
2754 hERT1->SetLineColor(0);
2758 if (hERT1 != hERT1orig)
2761 hs->Draw(
"LPE1 nostack");
2763 hs->GetXaxis()->SetTitle(
"<A> per LS: black-P1, red-P2,green-M1,blue-M2");
2764 hs->Draw(
"LPE1 nostack");
2770 TH1F *
diff =
new TH1F(
"diff",
"", 100, 0., 4.);
2772 if (
int(hV.size()) == specCountA) {
2773 flagErrAB_HF[0] = 0;
2774 double sumdelta = 0.;
2776 std::cout <<
"******** GetNbinsX = " << hV[0]->GetNbinsX() << std::endl;
2777 for (
int ibin = 1; ibin <= hV[0]->GetNbinsX(); ibin++) {
2779 double maxdelta = 0.;
2780 for (
unsigned int i = 0;
i < hV.size();
i++) {
2781 const TH1F *
hi = hV[
i];
2782 for (
unsigned int j = 1;
j < hV.size();
j++) {
2783 const TH1F *hj = hV[
j];
2784 delta = fabs(
hi->GetBinContent(ibin) - hj->GetBinContent(ibin));
2785 if (
delta > maxdelta)
2790 if (maxdelta > 0.) {
2791 diff->Fill(maxdelta);
2792 sumdelta += maxdelta;
2797 avedelta_HF = sumdelta / nnndelta;
2799 if (avedelta_HF > 2.4 || (avedelta_HF < 0.8 && avedelta_HF > 0.)) {
2800 flagErrAB_HF[0] = 1;
2803 diff->SetMarkerStyle(20);
2804 diff->SetMarkerSize(0.8);
2805 diff->SetXTitle(
"max difference \b");
2806 diff->SetMarkerColor(2);
2807 diff->SetLineColor(0);
2810 diff->Draw(
"Error");
2813 cHB->Print(
"HistErrA_HF.png");
2819 for (
unsigned int i = 0;
i < hV.size();
i++)
2825 const int specCountB = 4;
2826 const TString hnames[specCountB][2] = {{
"h_2DsumErrorBLS6",
"h_2D0sumErrorBLS6"},
2827 {
"h_sumErrorBperLS6",
"h_sum0ErrorBperLS6"},
2828 {
"h_2DsumErrorBLS7",
"h_2D0sumErrorBLS7"},
2829 {
"h_sumErrorBperLS7",
"h_sum0ErrorBperLS7"}};
2835 TH1F *hRate2orig =
NULL;
2836 TH2F *h2Cefz6 =
NULL;
2837 TString hname1 = hnames[2 *
depth - 2][0];
2838 TString hname0 = hnames[2 *
depth - 2][1];
2839 TH2F *twod1 = (TH2F *)
dir->FindObjectAny(hname1);
2840 TH2F *twod0 = (TH2F *)
dir->FindObjectAny(hname0);
2842 std::cout <<
"debugger: errB_HF depth=" <<
depth <<
". get 2D histos " << hname1 <<
" and " << hname0 <<
"\n";
2843 if (!twod1 || !twod0) {
2844 TPaveText *ptext =
new TPaveText(0.05, 0.85, 0.95, 0.95);
2845 ptext->AddText(
"Missing histos");
2847 std::cout <<
"\tfailed to get " << hname1 <<
"\n";
2848 ptext->AddText(hname1);
2851 std::cout <<
"\tfailed to get " << hname0 <<
"\n";
2852 ptext->AddText(hname0);
2856 h2Cefz6 = (TH2F *)twod1->Clone(Form(
"Cefz6_%d",
depth));
2857 h2Cefz6->SetTitle(Form(
"HF Depth %d \b",
depth));
2858 h2Cefz6->Divide(twod1, twod0, 1, 1,
"B");
2863 h2Cefz6->SetTitle(Form(
"Depth %d \b",
depth));
2864 h2Cefz6->SetMarkerStyle(20);
2865 h2Cefz6->SetMarkerSize(0.4);
2867 h2Cefz6->SetXTitle(
"#eta \b");
2868 h2Cefz6->SetYTitle(
"#phi \b");
2869 h2Cefz6->SetZTitle(Form(
"<ErrorB> - HF Depth%d \b",
depth));
2870 h2Cefz6->SetMarkerColor(2);
2871 h2Cefz6->SetLineColor(2);
2872 h2Cefz6->Draw(
"COLZ");
2877 hname1 = hnames[2 *
depth - 1][0];
2878 hname0 = hnames[2 *
depth - 1][1];
2879 TH1F *h1 = (TH1F *)
dir->FindObjectAny(hname1);
2880 TH1F *h0 = (TH1F *)
dir->FindObjectAny(hname0);
2882 std::cout <<
"errB_HF depth=" <<
depth <<
". get 2D histos " << hname1 <<
" and " << hname0 <<
"\n";
2884 TPaveText *ptext =
new TPaveText(0.05, 0.85, 0.95, 0.95);
2885 ptext->AddText(
"Missing histo");
2887 std::cout <<
"\tfailed to get " << hname1 <<
"\n";
2888 ptext->AddText(hname1);
2891 std::cout <<
"\tfailed to get " << hname0 <<
"\n";
2892 ptext->AddText(hname0);
2899 hRate2orig = (TH1F *)h1->Clone(Form(
"Rate2orig_%d",
depth));
2900 hRate2orig->Divide(h1, h0, 1, 1,
"B");
2902 TH1F *hRate2 =
NULL;
2903 if (lastLumiBin_HF > 1) {
2904 if (!
copyContents(&hRate2, Form(
"Rate2_%d",
depth),
"", hRate2orig, lastLumiBin_HF)) {
2905 std::cout <<
"code failed" << std::endl;
2909 hRate2 = hRate2orig;
2910 hRate2->SetTitle(Form(
"Depth %d \b",
depth));
2911 hRate2->SetMarkerStyle(20);
2912 hRate2->SetMarkerSize(0.8);
2914 hRate2->SetXTitle(Form(
"<ErrorB>(ev.in LS & ch.) - HF depth%d - iLS \b",
depth));
2915 hRate2->SetMarkerColor(2);
2916 hRate2->SetLineColor(0);
2917 hRate2->Draw(
"Error");
2918 if (LSofFirstErrB_HF == -1) {
2919 int nx = hRate2->GetXaxis()->GetNbins();
2920 for (
int i = 1;
i <= nx;
i++) {
2921 double ccc1 = hRate2->GetBinContent(
i);
2923 cout <<
"****************>>>>>>>>>>> ErrB_HF bad LS start at iLS = " <<
i <<
" with rate = " << ccc1
2925 LSofFirstErrB_HF =
i;
2932 if (hRate2 != hRate2orig) {
2934 hRate2orig = hRate2;
2938 cHB->Print(Form(
"HistErrB_HF_%d.png",
depth));
2954 TH2F *h2Ceff =
NULL;
2955 TH2F *h2Diffe =
NULL;
2957 TH2F *h3Ceff =
NULL;
2964 TString hname1 = Form(
"h_mapDepth%dADCAmpl_HB",
depth);
2965 TString hname0 = Form(
"h_mapDepth%d_HB",
depth);
2966 TH2F *twod1 = (TH2F *)
dir->FindObjectAny(hname1);
2967 TH2F *twod0 = (TH2F *)
dir->FindObjectAny(hname0);
2968 if (!twod1 || !twod0) {
2969 TPaveText *ptext =
new TPaveText(0.05, 0.85, 0.95, 0.95);
2970 ptext->AddText(
"Missing histo");
2971 std::cout <<
"specHB test: failed to load " << hname1 <<
" and/or " << hname0 <<
"\n";
2973 ptext->AddText(hname1);
2975 ptext->AddText(hname0);
2980 h2Ceff = (TH2F *)twod1->Clone(Form(
"Ceff_HB%d",
depth));
2981 h2Ceff->SetTitle(Form(
"HB Depth %d. (No cut) \b",
depth));
2982 h2Ceff->Divide(twod1, twod0, 1, 1,
"B");
2987 h2Ceff->SetMarkerStyle(20);
2988 h2Ceff->SetMarkerSize(0.4);
2990 h2Ceff->SetXTitle(
"#eta \b");
2991 h2Ceff->SetYTitle(
"#phi \b");
2992 h2Ceff->SetZTitle(
"h_mapDepth1ADCAmpl_HB \b");
2993 h2Ceff->SetMarkerColor(2);
2994 h2Ceff->SetLineColor(2);
2995 h2Ceff->Draw(
"COLZ");
3002 h2Diffe = (TH2F *)h2Ceff->Clone(Form(
"Diffe_Depth%d_HB",
depth));
3003 h2Diffe->SetTitle(Form(
"HB Depth %d. Cut avg(ADCAmpl) > 25 \b",
depth));
3004 int nx = h2Ceff->GetXaxis()->GetNbins();
3005 int ny = h2Ceff->GetYaxis()->GetNbins();
3006 for (
int i = 1;
i <= nx;
i++) {
3007 for (
int j = 1;
j <= ny;
j++) {
3008 double ccc1 = h2Ceff->GetBinContent(
i,
j);
3009 h2Diffe->SetBinContent(
i,
j, 0.);
3011 h2Diffe->SetBinContent(
i,
j, ccc1);
3017 h2Diffe->SetMarkerStyle(20);
3018 h2Diffe->SetMarkerSize(0.4);
3020 h2Diffe->SetXTitle(
"#eta \b");
3021 h2Diffe->SetYTitle(
"#phi \b");
3022 h2Diffe->SetZTitle(
"<ADCAmpl> bigger 25.- HB Depth1 \b");
3023 h2Diffe->SetMarkerColor(2);
3024 h2Diffe->SetLineColor(2);
3025 h2Diffe->Draw(
"COLZ");
3029 TString hname3 = Form(
"h_mapDepth%dADCAmpl225Copy_HB",
depth);
3030 TH2F *twod3 = (TH2F *)
dir->FindObjectAny(hname3);
3031 if (!twod3 || !twod0) {
3032 TPaveText *ptext =
new TPaveText(0.05, 0.85, 0.95, 0.95);
3033 ptext->AddText(
"Missing histo");
3034 std::cout <<
"specHB test: failed to load " << hname3 <<
" and/or " << hname0 <<
"\n";
3036 ptext->AddText(hname3);
3038 ptext->AddText(hname0);
3043 h3Ceff = (TH2F *)twod3->Clone(Form(
"CeffA_HB%d",
depth));
3044 h3Ceff->SetTitle(Form(
"HB Depth %d. \b",
depth));
3045 h3Ceff->Divide(twod3, twod0, 1, 1,
"B");
3049 h3Ceff->SetMarkerStyle(20);
3050 h3Ceff->SetMarkerSize(0.4);
3052 h3Ceff->SetXTitle(
"#eta \b");
3053 h3Ceff->SetYTitle(
"#phi \b");
3054 h3Ceff->SetZTitle(
"rate for channels of HB \b");
3055 h3Ceff->SetMarkerColor(2);
3056 h3Ceff->SetLineColor(2);
3057 h3Ceff->Draw(
"COLZ");
3061 cHE->Print(Form(
"ChkErrA_HB%d.png",
depth));
3083 TH2F *h2Ceff =
NULL;
3084 TH2F *h2Diffe =
NULL;
3086 TH2F *h3Ceff =
NULL;
3093 TString hname1 = Form(
"h_mapDepth%dADCAmpl_HE",
depth);
3094 TString hname0 = Form(
"h_mapDepth%d_HE",
depth);
3095 TH2F *twod1 = (TH2F *)
dir->FindObjectAny(hname1);
3096 TH2F *twod0 = (TH2F *)
dir->FindObjectAny(hname0);
3097 if (!twod1 || !twod0) {
3098 TPaveText *ptext =
new TPaveText(0.05, 0.85, 0.95, 0.95);
3099 ptext->AddText(
"Missing histo");
3100 std::cout <<
"specHE test: failed to load " << hname1 <<
" and/or " << hname0 <<
"\n";
3102 ptext->AddText(hname1);
3104 ptext->AddText(hname0);
3109 h2Ceff = (TH2F *)twod1->Clone(Form(
"Ceff_HE%d",
depth));
3110 h2Ceff->SetTitle(Form(
"HE Depth %d. (No cut) \b",
depth));
3111 h2Ceff->Divide(twod1, twod0, 1, 1,
"B");
3116 h2Ceff->SetTitleOffset(0.75,
"Z");
3117 h2Ceff->SetMarkerStyle(20);
3118 h2Ceff->SetMarkerSize(0.4);
3120 h2Ceff->SetXTitle(
"#eta \b");
3121 h2Ceff->SetYTitle(
"#phi \b");
3122 h2Ceff->SetZTitle(
"h_mapDepth1ADCAmpl_HE \b");
3123 h2Ceff->SetMarkerColor(2);
3124 h2Ceff->SetLineColor(2);
3125 h2Ceff->Draw(
"COLZ");
3132 h2Diffe = (TH2F *)h2Ceff->Clone(Form(
"Diffe_Depth%d_HE",
depth));
3133 h2Diffe->SetTitle(Form(
"HE Depth %d. Cut avg(ADCAmpl) > 1000 fC \b",
depth));
3134 int nx = h2Ceff->GetXaxis()->GetNbins();
3135 int ny = h2Ceff->GetYaxis()->GetNbins();
3136 for (
int i = 1;
i <= nx;
i++) {
3137 for (
int j = 1;
j <= ny;
j++) {
3138 double ccc1 = h2Ceff->GetBinContent(
i,
j);
3139 h2Diffe->SetBinContent(
i,
j, 0.);
3141 h2Diffe->SetBinContent(
i,
j, ccc1);
3147 h2Diffe->SetMarkerStyle(20);
3148 h2Diffe->SetMarkerSize(0.4);
3150 h2Diffe->SetXTitle(
"#eta \b");
3151 h2Diffe->SetYTitle(
"#phi \b");
3152 h2Diffe->SetZTitle(
"<ADCAmpl> bigger 1000.fC - HE Depth1 \b");
3153 h2Diffe->SetMarkerColor(2);
3154 h2Diffe->SetLineColor(2);
3155 h2Diffe->Draw(
"COLZ");
3159 TString hname3 = Form(
"h_mapDepth%dADCAmpl225Copy_HE",
depth);
3160 TH2F *twod3 = (TH2F *)
dir->FindObjectAny(hname3);
3161 if (!twod3 || !twod0) {
3162 TPaveText *ptext =
new TPaveText(0.05, 0.85, 0.95, 0.95);
3163 ptext->AddText(
"Missing histo");
3164 std::cout <<
"specHE test: failed to load " << hname3 <<
" and/or " << hname0 <<
"\n";
3166 ptext->AddText(hname3);
3168 ptext->AddText(hname0);
3173 h3Ceff = (TH2F *)twod3->Clone(Form(
"CeffA_HE%d",
depth));
3174 h3Ceff->SetTitle(Form(
"HE Depth %d. \b",
depth));
3175 h3Ceff->Divide(twod3, twod0, 1, 1,
"B");
3179 h3Ceff->SetMarkerStyle(20);
3180 h3Ceff->SetMarkerSize(0.4);
3182 h3Ceff->SetXTitle(
"#eta \b");
3183 h3Ceff->SetYTitle(
"#phi \b");
3184 h3Ceff->SetZTitle(
"rate for channels of HE \b");
3185 h3Ceff->SetMarkerColor(2);
3186 h3Ceff->SetLineColor(2);
3187 h3Ceff->Draw(
"COLZ");
3191 cHE->Print(Form(
"ChkErrA_HE%d.png",
depth));
3213 TH2F *h2Ceff =
NULL;
3214 TH2F *h2Diffe =
NULL;
3216 TH2F *h3Ceff =
NULL;
3223 TString hname1 = Form(
"h_mapDepth%dADCAmpl_HO",
depth);
3224 TString hname0 = Form(
"h_mapDepth%d_HO",
depth);
3225 TH2F *twod1 = (TH2F *)
dir->FindObjectAny(hname1);
3226 TH2F *twod0 = (TH2F *)
dir->FindObjectAny(hname0);
3227 if (!twod1 || !twod0) {
3228 TPaveText *ptext =
new TPaveText(0.05, 0.85, 0.95, 0.95);
3229 ptext->AddText(
"Missing histo");
3230 std::cout <<
"specHO test: failed to load " << hname1 <<
" and/or " << hname0 <<
"\n";
3232 ptext->AddText(hname1);
3234 ptext->AddText(hname0);
3239 h2Ceff = (TH2F *)twod1->Clone(Form(
"Ceff_HO%d",
depth));
3240 h2Ceff->SetTitle(Form(
"HO Depth %d. (No cut) \b",
depth));
3241 h2Ceff->Divide(twod1, twod0, 1, 1,
"B");
3246 h2Ceff->SetMarkerStyle(20);
3247 h2Ceff->SetMarkerSize(0.4);
3249 h2Ceff->SetXTitle(
"#eta \b");
3250 h2Ceff->SetYTitle(
"#phi \b");
3251 h2Ceff->SetZTitle(
"h_mapDepth1ADCAmpl_HO \b");
3252 h2Ceff->SetMarkerColor(2);
3253 h2Ceff->SetLineColor(2);
3254 h2Ceff->Draw(
"COLZ");
3261 h2Diffe = (TH2F *)h2Ceff->Clone(Form(
"Diffe_Depth%d_HO",
depth));
3262 h2Diffe->SetTitle(Form(
"HO Depth %d. Cut avg(ADCAmpl) > 80 \b",
depth));
3263 int nx = h2Ceff->GetXaxis()->GetNbins();
3264 int ny = h2Ceff->GetYaxis()->GetNbins();
3265 for (
int i = 1;
i <= nx;
i++) {
3266 for (
int j = 1;
j <= ny;
j++) {
3267 double ccc1 = h2Ceff->GetBinContent(
i,
j);
3268 h2Diffe->SetBinContent(
i,
j, 0.);
3270 h2Diffe->SetBinContent(
i,
j, ccc1);
3276 h2Diffe->SetMarkerStyle(20);
3277 h2Diffe->SetMarkerSize(0.4);
3279 h2Diffe->SetXTitle(
"#eta \b");
3280 h2Diffe->SetYTitle(
"#phi \b");
3281 h2Diffe->SetZTitle(
"<ADCAmpl> bigger 80.- HO Depth1 \b");
3282 h2Diffe->SetMarkerColor(2);
3283 h2Diffe->SetLineColor(2);
3284 h2Diffe->Draw(
"COLZ");
3288 TString hname3 = Form(
"h_mapDepth%dADCAmpl225Copy_HO",
depth);
3289 TH2F *twod3 = (TH2F *)
dir->FindObjectAny(hname3);
3290 if (!twod3 || !twod0) {
3291 TPaveText *ptext =
new TPaveText(0.05, 0.85, 0.95, 0.95);
3292 ptext->AddText(
"Missing histo");
3293 std::cout <<
"specHO test: failed to load " << hname3 <<
" and/or " << hname0 <<
"\n";
3295 ptext->AddText(hname3);
3297 ptext->AddText(hname0);
3302 h3Ceff = (TH2F *)twod3->Clone(Form(
"CeffA_HO%d",
depth));
3303 h3Ceff->SetTitle(Form(
"HO Depth %d. \b",
depth));
3304 h3Ceff->Divide(twod3, twod0, 1, 1,
"B");
3308 h3Ceff->SetMarkerStyle(20);
3309 h3Ceff->SetMarkerSize(0.4);
3311 h3Ceff->SetXTitle(
"#eta \b");
3312 h3Ceff->SetYTitle(
"#phi \b");
3313 h3Ceff->SetZTitle(
"rate for channels of HO \b");
3314 h3Ceff->SetMarkerColor(2);
3315 h3Ceff->SetLineColor(2);
3316 h3Ceff->Draw(
"COLZ");
3320 cHE->Print(Form(
"ChkErrA_HO%d.png",
depth));
3342 TH2F *h2Ceff =
NULL;
3343 TH2F *h2Diffe =
NULL;
3345 TH2F *h3Ceff =
NULL;
3352 TString hname1 = Form(
"h_mapDepth%dADCAmpl_HF",
depth);
3353 TString hname0 = Form(
"h_mapDepth%d_HF",
depth);
3354 TH2F *twod1 = (TH2F *)
dir->FindObjectAny(hname1);
3355 TH2F *twod0 = (TH2F *)
dir->FindObjectAny(hname0);
3356 if (!twod1 || !twod0) {
3357 TPaveText *ptext =
new TPaveText(0.05, 0.85, 0.95, 0.95);
3358 ptext->AddText(
"Missing histo");
3359 std::cout <<
"specHF test: failed to load " << hname1 <<
" and/or " << hname0 <<
"\n";
3361 ptext->AddText(hname1);
3363 ptext->AddText(hname0);
3368 h2Ceff = (TH2F *)twod1->Clone(Form(
"Ceff_HF%d",
depth));
3369 h2Ceff->SetTitle(Form(
"HF Depth %d. (No cut) \b",
depth));
3370 h2Ceff->Divide(twod1, twod0, 1, 1,
"B");
3375 h2Ceff->SetMarkerStyle(20);
3376 h2Ceff->SetMarkerSize(0.4);
3378 h2Ceff->SetXTitle(
"#eta \b");
3379 h2Ceff->SetYTitle(
"#phi \b");
3380 h2Ceff->SetZTitle(
"h_mapDepth1ADCAmpl_HF \b");
3381 h2Ceff->SetMarkerColor(2);
3382 h2Ceff->SetLineColor(2);
3383 h2Ceff->Draw(
"COLZ");
3390 h2Diffe = (TH2F *)h2Ceff->Clone(Form(
"Diffe_Depth%d_HF",
depth));
3391 h2Diffe->SetTitle(Form(
"HF Depth %d. Cut avg(ADCAmpl) > 20 \b",
depth));
3392 int nx = h2Ceff->GetXaxis()->GetNbins();
3393 int ny = h2Ceff->GetYaxis()->GetNbins();
3394 for (
int i = 1;
i <= nx;
i++) {
3395 for (
int j = 1;
j <= ny;
j++) {
3396 double ccc1 = h2Ceff->GetBinContent(
i,
j);
3397 h2Diffe->SetBinContent(
i,
j, 0.);
3399 h2Diffe->SetBinContent(
i,
j, ccc1);
3405 h2Diffe->SetMarkerStyle(20);
3406 h2Diffe->SetMarkerSize(0.4);
3408 h2Diffe->SetXTitle(
"#eta \b");
3409 h2Diffe->SetYTitle(
"#phi \b");
3410 h2Diffe->SetZTitle(
"<ADCAmpl> bigger 20.- HF Depth1 \b");
3411 h2Diffe->SetMarkerColor(2);
3412 h2Diffe->SetLineColor(2);
3413 h2Diffe->Draw(
"COLZ");
3442 TString hname3 = Form(
"h_mapDepth%dADCAmpl225Copy_HF",
depth);
3443 TH2F *twod3 = (TH2F *)
dir->FindObjectAny(hname3);
3444 if (!twod3 || !twod0) {
3445 TPaveText *ptext =
new TPaveText(0.05, 0.85, 0.95, 0.95);
3446 ptext->AddText(
"Missing histo");
3447 std::cout <<
"specHF test: failed to load " << hname3 <<
" and/or " << hname0 <<
"\n";
3449 ptext->AddText(hname3);
3451 ptext->AddText(hname0);
3456 h3Ceff = (TH2F *)twod3->Clone(Form(
"CeffA_HF%d",
depth));
3457 h3Ceff->SetTitle(Form(
"HF Depth %d. \b",
depth));
3458 h3Ceff->Divide(twod3, twod0, 1, 1,
"B");
3462 h3Ceff->SetMarkerStyle(20);
3463 h3Ceff->SetMarkerSize(0.4);
3465 h3Ceff->SetXTitle(
"#eta \b");
3466 h3Ceff->SetYTitle(
"#phi \b");
3467 h3Ceff->SetZTitle(
"rate for channels of HF \b");
3468 h3Ceff->SetMarkerColor(2);
3469 h3Ceff->SetLineColor(2);
3470 h3Ceff->Draw(
"COLZ");
3474 cHE->Print(Form(
"ChkErrA_HF%d.png",
depth));
3491 std::cout <<
"************>>> average Amplitudes done" << std::endl;
3493 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> " << endl;
3494 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> " << endl;
3495 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> " << endl;
3496 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> " << endl;
3497 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> " << endl;
3504 cout <<
" RBX analysis START for **************************" << endl;
3505 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> " << endl;
3510 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> int njeta = 22; int njphi = 18; int lsmax=1800; " 3513 double alexall[njeta][njphi][
lsmax];
3516 double alexhb[njphi][
lsmax];
3517 double alexhe[njphi][
lsmax];
3518 double alexho[njphi][
lsmax];
3519 double alexhf[njphi][
lsmax];
3522 double blexhb[njeta][
lsmax];
3523 double blexhe[njeta][
lsmax];
3524 double blexho[njeta][
lsmax];
3525 double blexhf[njeta][
lsmax];
3527 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> alexall [njeta][njphi][lsmax]; " << endl;
3528 int maxbinsRBX = MaxLum;
3529 int nx = maxbinsRBX;
3530 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> maxbinsRBX = MaxLum; " << endl;
3532 cout <<
"*********************************** ERROR ERROR ERROR ERROR: MaxLum > 1800 " << endl;
3533 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> " << endl;
3535 for (
int i = 0;
i < nx;
i++) {
3536 for (
int jphi = 0; jphi < njphi; jphi++) {
3537 alexhb[jphi][
i] = 0.;
3538 alexhe[jphi][
i] = 0.;
3539 alexho[jphi][
i] = 0.;
3540 alexhf[jphi][
i] = 0.;
3544 blexhb[
jeta][
i] = 0.;
3545 blexhe[
jeta][
i] = 0.;
3546 blexho[
jeta][
i] = 0.;
3547 blexhf[
jeta][
i] = 0.;
3550 alexall[
jeta][jphi][
i] = 0.;
3575 cout <<
" RBX general for HB **************************" << endl;
3576 TH2F *Ghb1KKK = (TH2F *)
dir->FindObjectAny(
"h_2DsumADCAmplEtaPhiLs0");
3577 TH2F *Ghb1LLL = (TH2F *)
dir->FindObjectAny(
"h_2DsumADCAmplEtaPhiLs00");
3578 TH2F *Ghb1 = (TH2F *)Ghb1LLL->Clone(
"Ghb1");
3579 Ghb1->Divide(Ghb1KKK, Ghb1LLL, 1, 1,
"B");
3582 int ny = Ghb1->GetYaxis()->GetNbins();
3584 for (
int j = 1;
j <= ny;
j++) {
3585 int jeta = (
j - 1) / njphi;
3587 int jphi = (
j - 1) - njphi *
jeta;
3590 for (
int i = 1;
i <= nx;
i++) {
3591 double ccc1 = Ghb1->GetBinContent(
i,
j);
3592 alexall[
jeta][jphi][
i - 1] = ccc1;
3607 for (
int jphi = 0; jphi < njphi; jphi++) {
3608 for (
int i = 0;
i < nx;
i++) {
3609 double sumccc1 = 0.;
3612 double ccc1 = alexall[
jeta][jphi][
i];
3620 alexhb[jphi][
i] = sumccc1;
3625 for (
int keta = 0; keta < njeta; keta++) {
3626 for (
int i = 0;
i < nx;
i++) {
3627 double sumccc1 = 0.;
3629 for (
int kphi = 0; kphi < njphi; kphi++) {
3630 double ccc1 = alexall[keta][kphi][
i];
3638 blexhb[keta][
i] = sumccc1;
3648 cout <<
" RBX HB 2D plot *****" << endl;
3651 cRBX1->Divide(1, 1);
3656 TH2F *Ghb42D =
new TH2F(
"Ghb42D",
"", 23, -11.5, 11.5, 18, 0., 18.);
3657 TH2F *Ghb42D0 =
new TH2F(
"Ghb42D0",
"", 23, -11.5, 11.5, 18, 0., 18.);
3658 TH2F *Ghb42DF = (TH2F *)Ghb42D0->Clone(
"Ghb42DF");
3659 for (
int jphi = 0; jphi < njphi; jphi++) {
3661 for (
int i = 0;
i < nx;
i++) {
3662 double ccc1 = alexall[
jeta][jphi][
i];
3663 int neweta =
jeta - 11 - 0.5;
3665 neweta =
jeta - 11 + 1.5;
3667 Ghb42D->Fill(neweta, jphi, ccc1);
3668 Ghb42D0->Fill(neweta, jphi, 1.);
3674 Ghb42DF->Divide(Ghb42D, Ghb42D0, 1, 1,
"B");
3678 Ghb42DF->SetMarkerStyle(20);
3679 Ghb42DF->SetMarkerSize(0.4);
3680 Ghb42DF->GetZaxis()->SetLabelSize(0.04);
3681 Ghb42DF->SetXTitle(
"<A>_RBX #eta \b");
3682 Ghb42DF->SetYTitle(
" #phi \b");
3683 Ghb42DF->SetZTitle(
"<A>_RBX - All \b");
3684 Ghb42DF->SetMarkerColor(2);
3685 Ghb42DF->SetLineColor(2);
3686 Ghb42DF->Draw(
"COLZ");
3690 cRBX1->Print(
"RBX-HB-2Dplot.png");
3705 cout <<
" RBX HB 1D plot *****" << endl;
3708 cRBX1->Divide(1, 1);
3710 TH1F *GphiHB1D =
new TH1F(
"GphiHB1D",
"", 18, 0., 18.);
3711 TH1F *GphiHB1D0 =
new TH1F(
"GphiHB1D0",
"", 18, 0., 18.);
3712 TH1F *GphiHB1DF = (TH1F *)GphiHB1D0->Clone(
"GphiHB1DF");
3713 for (
int jphi = 0; jphi < 18; jphi++) {
3715 for (
int i = 0;
i < nx;
i++) {
3716 double ccc1 = alexall[
jeta][jphi][
i];
3718 GphiHB1D->Fill(jphi, ccc1);
3719 GphiHB1D0->Fill(jphi, 1.);
3725 GphiHB1DF->Divide(GphiHB1D, GphiHB1D0, 1, 1,
"B");
3727 for (
int jphi = 1; jphi < 19; jphi++) {
3728 GphiHB1DF->SetBinError(jphi, 0.01);
3732 GphiHB1DF->SetMarkerStyle(20);
3733 GphiHB1DF->SetMarkerSize(1.4);
3734 GphiHB1DF->GetZaxis()->SetLabelSize(0.08);
3735 GphiHB1DF->SetXTitle(
"PHI of RBX\b");
3736 GphiHB1DF->SetYTitle(
" <Amplitude> \b");
3737 GphiHB1DF->SetZTitle(
"<A>_PHI - All \b");
3738 GphiHB1DF->SetMarkerColor(4);
3739 GphiHB1DF->SetLineColor(4);
3740 GphiHB1DF->SetMinimum(0.8);
3741 GphiHB1DF->Draw(
"Error");
3744 cRBX1->Print(
"RBX-HB-1Dplot.png");
3759 cout <<
" RBX HB 11D plot *eta*" << endl;
3762 cRBX1->Divide(1, 1);
3764 TH1F *GetaHB11D =
new TH1F(
"GetaHB11D",
"", 23, -11.5, 11.5);
3765 TH1F *GetaHB11D0 =
new TH1F(
"GetaHB11D0",
"", 23, -11.5, 11.5);
3766 TH1F *GetaHB11DF = (TH1F *)GetaHB11D0->Clone(
"GetaHB11DF");
3769 for (
int jphi = 0; jphi < 18; jphi++) {
3770 for (
int i = 0;
i < nx;
i++) {
3771 double ccc1 = alexall[
jeta][jphi][
i];
3772 int neweta =
jeta - 11 - 0.5;
3774 neweta =
jeta - 11 + 1.5;
3776 GetaHB11D->Fill(neweta, ccc1);
3777 GetaHB11D0->Fill(neweta, 1.);
3784 GetaHB11DF->Divide(GetaHB11D, GetaHB11D0, 1, 1,
"B");
3787 GetaHB11DF->SetBinError(
jeta, 0.01);
3791 GetaHB11DF->SetMarkerStyle(20);
3792 GetaHB11DF->SetMarkerSize(1.4);
3793 GetaHB11DF->GetZaxis()->SetLabelSize(0.08);
3794 GetaHB11DF->SetXTitle(
"#eta \b");
3795 GetaHB11DF->SetYTitle(
" <A> \b");
3796 GetaHB11DF->SetZTitle(
"<A>_ETA - All \b");
3797 GetaHB11DF->SetMarkerColor(4);
3798 GetaHB11DF->SetLineColor(4);
3799 GetaHB11DF->SetMinimum(0.8);
3800 GetaHB11DF->Draw(
"Error");
3804 cRBX1->Print(
"RBX-HB-11Dplot.png");
3820 gStyle->SetOptStat(1110000);
3821 cout <<
" RBX HB Ratio plots *****" << endl;
3830 cRBX31->Divide(3, 1);
3834 TH1F *Ghb51 =
new TH1F(
"Ghb51",
"", nx, 1., nx + 1.);
3835 TH1F *Ghb50 =
new TH1F(
"Ghb50",
"", nx, 1., nx + 1.);
3836 TH1F *Ghb5 = (TH1F *)Ghb50->Clone(
"Ghb5");
3838 for (
int j = 1;
j <= ny;
j++) {
3839 ccc0HB = Ghb1->GetBinContent(1,
j);
3842 for (
int i = 1;
i <= nx;
i++) {
3843 double ccc2 = Ghb1->GetBinContent(
i,
j);
3851 for (
int i = 1;
i <= nx;
i++) {
3852 double ccc1 = Ghb1->GetBinContent(
i,
j);
3854 double Rij = ccc1 / ccc0HB;
3856 Ghb51->Fill(
float(
i), Rij);
3857 Ghb50->Fill(
float(
i), 1.);
3862 Ghb5->Divide(Ghb51, Ghb50, 1, 1,
"B");
3863 for (
int i = 1;
i <= nx;
i++) {
3864 Ghb5->SetBinError(
i, 0.0001);
3866 Ghb5->SetMarkerStyle(20);
3867 Ghb5->SetMarkerSize(0.4);
3868 Ghb5->GetYaxis()->SetLabelSize(0.04);
3869 Ghb5->SetMarkerColor(2);
3870 Ghb5->SetLineColor(0);
3871 Ghb5->SetXTitle(
" iLS \b");
3872 Ghb5->SetYTitle(
" <R> \b");
3873 Ghb5->SetTitle(
"<Ri> vs iLS \b");
3874 Ghb5->SetMinimum(0.);
3879 Ghb5->GetYaxis()->SetLabelSize(0.025);
3880 Ghb5->Draw(
"Error");
3883 TH2F *Ghb60 =
new TH2F(
"Ghb60",
"", 22, -11., 11., 18, 0., 18.);
3884 TH2F *Ghb61 =
new TH2F(
"Ghb61",
"", 22, -11., 11., 18, 0., 18.);
3885 TH2F *Ghb6 =
new TH2F(
"Ghb6",
"", 22, -11., 11., 18, 0., 18.);
3887 TH2F *G20hb60 =
new TH2F(
"G20hb60",
"", 22, -11., 11., 18, 0., 18.);
3888 TH2F *G20hb61 =
new TH2F(
"G20hb61",
"", 22, -11., 11., 18, 0., 18.);
3889 TH2F *G20hb6 =
new TH2F(
"G20hb6",
"", 22, -11., 11., 18, 0., 18.);
3890 TH2F *G30hb60 =
new TH2F(
"G30hb60",
"", 22, -11., 11., 18, 0., 18.);
3891 TH2F *G30hb61 =
new TH2F(
"G30hb61",
"", 22, -11., 11., 18, 0., 18.);
3892 TH2F *G30hb6 =
new TH2F(
"G30hb6",
"", 22, -11., 11., 18, 0., 18.);
3893 TH2F *G40hb60 =
new TH2F(
"G40hb60",
"", 22, -11., 11., 18, 0., 18.);
3894 TH2F *G40hb61 =
new TH2F(
"G40hb61",
"", 22, -11., 11., 18, 0., 18.);
3895 TH2F *G40hb6 =
new TH2F(
"G40hb6",
"", 22, -11., 11., 18, 0., 18.);
3901 double meanjHB = 0.;
3902 for (
int j = 1;
j <= ny;
j++) {
3903 ccc0HB = Ghb1->GetBinContent(1,
j);
3905 for (
int i = 1;
i <= nx;
i++) {
3906 double ccc2 = Ghb1->GetBinContent(
i,
j);
3913 for (
int i = 1;
i <= nx;
i++) {
3914 double ccc1 = Ghb1->GetBinContent(
i,
j) / ccc0HB;
3920 meanjHB = sumjHB / njHB;
3924 double ssumjHB = 0.;
3926 double sigmajHB = 0.;
3927 for (
int j = 1;
j <= ny;
j++) {
3928 ccc0HB = Ghb1->GetBinContent(1,
j);
3930 for (
int i = 1;
i <= nx;
i++) {
3931 double ccc2 = Ghb1->GetBinContent(
i,
j);
3938 for (
int i = 1;
i <= nx;
i++) {
3939 double ccc1 = Ghb1->GetBinContent(
i,
j) / ccc0HB;
3941 ssumjHB += (ccc1 - meanjHB) * (ccc1 - meanjHB);
3945 sigmajHB =
sqrt(ssumjHB / njHB);
3949 double dif3rmsHBMIN = meanjHB - 3 * sigmajHB;
3950 if (dif3rmsHBMIN < 0.)
3952 double dif3rmsHBMAX = meanjHB + 3 * sigmajHB;
3953 cout <<
"22HB-2 meanjHB= " << meanjHB <<
" sigmajHB= " << sigmajHB <<
" dif3rmsHBMIN= " << dif3rmsHBMIN
3954 <<
" dif3rmsHBMAX= " << dif3rmsHBMAX << endl;
3956 double MAXdif3rmsHBMIN = dif3rmsHBMIN;
3957 double MINdif3rmsHBMAX = dif3rmsHBMAX;
3958 if (MAXdif3rmsHBMIN < 0.95)
3959 MAXdif3rmsHBMIN = 0.95;
3960 if (MINdif3rmsHBMAX > 1.05)
3961 MINdif3rmsHBMAX = 1.05;
3962 cout <<
"22HB-2 MAXdif3rmsHBMIN= " << MAXdif3rmsHBMIN <<
" MINdif3rmsHBMAX= " << MINdif3rmsHBMAX << endl;
3964 for (
int j = 1;
j <= ny;
j++) {
3965 ccc0HB = Ghb1->GetBinContent(1,
j);
3967 for (
int i = 1;
i <= nx;
i++) {
3968 double ccc2 = Ghb1->GetBinContent(
i,
j);
3975 int jeta = (
j - 1) / 18;
3976 int jphi = (
j - 1) - 18 *
jeta;
3978 for (
int i = 1;
i <= nx;
i++) {
3979 double ccc1 = Ghb1->GetBinContent(
i,
j);
3981 double Rij = ccc1 / ccc0HB;
3982 if (Rij < MAXdif3rmsHBMIN || Rij > MINdif3rmsHBMAX) {
3983 Ghb61->Fill(
jeta - 11, jphi, Rij);
3984 Ghb60->Fill(
jeta - 11, jphi, 1.);
3986 if (Rij < 0.8 || Rij > 1.2) {
3987 G20hb61->Fill(
jeta - 11, jphi, Rij);
3988 G20hb60->Fill(
jeta - 11, jphi, 1.);
3990 if (Rij < 0.7 || Rij > 1.3) {
3991 G30hb61->Fill(
jeta - 11, jphi, Rij);
3992 G30hb60->Fill(
jeta - 11, jphi, 1.);
3994 if (Rij < 0.6 || Rij > 1.4) {
3995 G40hb61->Fill(
jeta - 11, jphi, Rij);
3996 G40hb60->Fill(
jeta - 11, jphi, 1.);
4002 Ghb6->Divide(Ghb61, Ghb60, 1, 1,
"B");
4003 G20hb6->Divide(G20hb61, G20hb60, 1, 1,
"B");
4004 G30hb6->Divide(G30hb61, G30hb60, 1, 1,
"B");
4005 G40hb6->Divide(G40hb61, G40hb60, 1, 1,
"B");
4007 Ghb6->GetZaxis()->SetLabelSize(0.025);
4008 Ghb6->SetXTitle(
" #eta \b");
4009 Ghb6->SetYTitle(
" #phi \b");
4010 Ghb6->SetTitle(
"<Rj> for |1-<R>| > 0.05 \b");
4015 TH1F *Ghb7 =
new TH1F(
"Ghb7",
"", 120, 0.4, 1.6);
4017 for (
int j = 1;
j <= ny;
j++) {
4018 ccc0HB = Ghb1->GetBinContent(1,
j);
4020 for (
int i = 1;
i <= nx;
i++) {
4021 double ccc2 = Ghb1->GetBinContent(
i,
j);
4029 for (
int i = 1;
i <= nx;
i++) {
4030 double ccc1 = Ghb1->GetBinContent(
i,
j);
4032 double Rij = ccc1 / ccc0HB;
4038 Ghb7->SetMarkerStyle(20);
4039 Ghb7->SetMarkerSize(0.4);
4040 Ghb7->GetYaxis()->SetLabelSize(0.04);
4041 Ghb7->SetMarkerColor(2);
4042 Ghb7->SetLineColor(0);
4043 Ghb7->SetYTitle(
" N \b");
4044 Ghb7->SetXTitle(
" Rij \b");
4045 Ghb7->SetTitle(
" Rij \b");
4050 Ghb7->GetYaxis()->SetLabelSize(0.025);
4051 Ghb7->Draw(
"Error");
4052 Float_t ymaxHB = Ghb7->GetMaximum();
4053 cout <<
"22HB-3 ymaxHB= " << ymaxHB <<
" MAXdif3rmsHBMIN= " << MAXdif3rmsHBMIN
4054 <<
" MINdif3rmsHBMAX= " << MINdif3rmsHBMAX << endl;
4055 TLine *lineHB =
new TLine(MAXdif3rmsHBMIN, 0., MAXdif3rmsHBMIN, ymaxHB);
4056 lineHB->SetLineColor(kBlue);
4058 TLine *line1HB =
new TLine(MINdif3rmsHBMAX, 0., MINdif3rmsHBMAX, ymaxHB);
4059 line1HB->SetLineColor(kBlue);
4064 cRBX31->Print(
"RBX-HB-3plots.png");
4099 gStyle->SetOptStat(1110000);
4100 cout <<
" RBX HB Ratio plotsmore *****" << endl;
4103 cRBX31->Divide(3, 1);
4106 G20hb6->GetZaxis()->SetLabelSize(0.025);
4107 G20hb6->SetXTitle(
" #eta \b");
4108 G20hb6->SetYTitle(
" #phi \b");
4109 G20hb6->SetTitle(
"<Rj> for |1-<R>| > 0.20 \b");
4110 G20hb6->SetStats(0);
4111 G20hb6->Draw(
"COLZ");
4114 G30hb6->GetZaxis()->SetLabelSize(0.025);
4115 G30hb6->SetXTitle(
" #eta \b");
4116 G30hb6->SetYTitle(
" #phi \b");
4117 G30hb6->SetTitle(
"<Rj> for |1-<R>| > 0.30 \b");
4118 G30hb6->SetStats(0);
4119 G30hb6->Draw(
"COLZ");
4122 G40hb6->GetZaxis()->SetLabelSize(0.025);
4123 G40hb6->SetXTitle(
" #eta \b");
4124 G40hb6->SetYTitle(
" #phi \b");
4125 G40hb6->SetTitle(
"<Rj> for |1-<R>| > 0.40 \b");
4126 G40hb6->SetStats(0);
4127 G40hb6->Draw(
"COLZ");
4132 cRBX31->Print(
"RBX-HB-3plotsmore.png");
4142 gStyle->SetOptStat(0);
4146 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> " << endl;
4147 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> " << endl;
4148 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> " << endl;
4149 for (
int jphi = 0; jphi < njphi; jphi++) {
4151 for (
int i = 0;
i < nx;
i++) {
4152 alexall[
jeta][jphi][
i] = 0.;
4163 cout <<
" RBX general for HE **************************" << endl;
4164 TH2F *Ghe1KKK = (TH2F *)
dir->FindObjectAny(
"h_2DsumADCAmplEtaPhiLs1");
4165 TH2F *Ghe1LLL = (TH2F *)
dir->FindObjectAny(
"h_2DsumADCAmplEtaPhiLs10");
4166 TH2F *Ghe1 = (TH2F *)Ghe1LLL->Clone(
"Ghe1");
4167 Ghe1->Divide(Ghe1KKK, Ghe1LLL, 1, 1,
"B");
4171 ny = Ghe1->GetYaxis()->GetNbins();
4172 for (
int j = 1;
j <= ny;
j++) {
4173 int jeta = (
j - 1) / njphi;
4174 if ((jeta < 8 && jeta > 2) || (jeta < 19 && jeta > 13)) {
4175 int jphi = (
j - 1) - njphi *
jeta;
4178 for (
int i = 1;
i <= nx;
i++) {
4179 double ccc1 = Ghe1->GetBinContent(
i,
j);
4180 alexall[
jeta][jphi][
i - 1] = ccc1;
4193 for (
int jphi = 0; jphi < njphi; jphi++) {
4194 for (
int i = 0;
i < nx;
i++) {
4195 double sumccc1 = 0.;
4198 double ccc1 = alexall[
jeta][jphi][
i];
4206 alexhe[jphi][
i] = sumccc1;
4210 for (
int keta = 0; keta < njeta; keta++) {
4211 for (
int i = 0;
i < nx;
i++) {
4212 double sumccc1 = 0.;
4214 for (
int kphi = 0; kphi < njphi; kphi++) {
4215 double ccc1 = alexall[keta][kphi][
i];
4223 blexhe[keta][
i] = sumccc1;
4232 cout <<
" RBX HE 2D plot *****" << endl;
4235 cRBX1->Divide(1, 1);
4238 TH2F *Ghe42D =
new TH2F(
"Ghe42D",
"", 23, -11.5, 11.5, 18, 0., 18.);
4239 TH2F *Ghe42D0 =
new TH2F(
"Ghe42D0",
"", 23, -11.5, 11.5, 18, 0., 18.);
4242 TH2F *Ghe42DF = (TH2F *)Ghe42D0->Clone(
"Ghe42DF");
4243 for (
int jphi = 0; jphi < njphi; jphi++) {
4245 for (
int i = 0;
i < nx;
i++) {
4246 double ccc1 = alexall[
jeta][jphi][
i];
4247 int neweta =
jeta - 11 - 0.5;
4249 neweta =
jeta - 11 + 1.5;
4251 Ghe42D->Fill(neweta, jphi, ccc1);
4252 Ghe42D0->Fill(neweta, jphi, 1.);
4258 Ghe42DF->Divide(Ghe42D, Ghe42D0, 1, 1,
"B");
4262 Ghe42DF->SetMarkerStyle(20);
4263 Ghe42DF->SetMarkerSize(0.4);
4264 Ghe42DF->GetZaxis()->SetLabelSize(0.04);
4265 Ghe42DF->SetXTitle(
"<A>_RBX #eta \b");
4266 Ghe42DF->SetYTitle(
" #phi \b");
4267 Ghe42DF->SetZTitle(
"<A>_RBX - All \b");
4268 Ghe42DF->SetMarkerColor(2);
4269 Ghe42DF->SetLineColor(2);
4270 Ghe42DF->Draw(
"COLZ");
4274 cRBX1->Print(
"RBX-HE-2Dplot.png");
4289 cout <<
" RBX HE 1D plot *****" << endl;
4292 cRBX1->Divide(1, 1);
4294 TH1F *GphiHE1D =
new TH1F(
"GphiHE1D",
"", 18, 0., 18.);
4295 TH1F *GphiHE1D0 =
new TH1F(
"GphiHE1D0",
"", 18, 0., 18.);
4296 TH1F *GphiHE1DF = (TH1F *)GphiHE1D0->Clone(
"GphiHE1DF");
4297 for (
int jphi = 0; jphi < 18; jphi++) {
4299 for (
int i = 0;
i < nx;
i++) {
4300 double ccc1 = alexall[
jeta][jphi][
i];
4302 GphiHE1D->Fill(jphi, ccc1);
4303 GphiHE1D0->Fill(jphi, 1.);
4309 GphiHE1DF->Divide(GphiHE1D, GphiHE1D0, 1, 1,
"B");
4311 for (
int jphi = 1; jphi < 19; jphi++) {
4312 GphiHE1DF->SetBinError(jphi, 0.01);
4316 GphiHE1DF->SetMarkerStyle(20);
4317 GphiHE1DF->SetMarkerSize(1.4);
4318 GphiHE1DF->GetZaxis()->SetLabelSize(0.08);
4319 GphiHE1DF->SetXTitle(
"PHI of RBX\b");
4320 GphiHE1DF->SetYTitle(
" <Amplitude> \b");
4321 GphiHE1DF->SetZTitle(
"<A>_PHI - All \b");
4322 GphiHE1DF->SetMarkerColor(4);
4323 GphiHE1DF->SetLineColor(4);
4324 GphiHE1DF->SetMinimum(0.8);
4325 GphiHE1DF->Draw(
"Error");
4328 cRBX1->Print(
"RBX-HE-1Dplot.png");
4343 cout <<
" RBX HE 11D plot *eta*" << endl;
4346 cRBX1->Divide(1, 1);
4348 TH1F *GetaHE11D =
new TH1F(
"GetaHE11D",
"", 23, -11.5, 11.5);
4349 TH1F *GetaHE11D0 =
new TH1F(
"GetaHE11D0",
"", 23, -11.5, 11.5);
4350 TH1F *GetaHE11DF = (TH1F *)GetaHE11D0->Clone(
"GetaHE11DF");
4353 for (
int jphi = 0; jphi < 18; jphi++) {
4354 for (
int i = 0;
i < nx;
i++) {
4355 double ccc1 = alexall[
jeta][jphi][
i];
4356 int neweta =
jeta - 11 - 0.5;
4358 neweta =
jeta - 11 + 1.5;
4360 GetaHE11D->Fill(neweta, ccc1);
4361 GetaHE11D0->Fill(neweta, 1.);
4368 GetaHE11DF->Divide(GetaHE11D, GetaHE11D0, 1, 1,
"B");
4371 GetaHE11DF->SetBinError(
jeta, 0.01);
4375 GetaHE11DF->SetMarkerStyle(20);
4376 GetaHE11DF->SetMarkerSize(1.4);
4377 GetaHE11DF->GetZaxis()->SetLabelSize(0.08);
4378 GetaHE11DF->SetXTitle(
"#eta \b");
4379 GetaHE11DF->SetYTitle(
" <A> \b");
4380 GetaHE11DF->SetZTitle(
"<A>_ETA - All \b");
4381 GetaHE11DF->SetMarkerColor(4);
4382 GetaHE11DF->SetLineColor(4);
4383 GetaHE11DF->SetMinimum(0.8);
4384 GetaHE11DF->Draw(
"Error");
4388 cRBX1->Print(
"RBX-HE-11Dplot.png");
4404 gStyle->SetOptStat(1110000);
4405 cout <<
" RBX HE Ratio plots *****" << endl;
4414 cRBX31->Divide(3, 1);
4418 TH1F *Ghe51 =
new TH1F(
"Ghe51",
"", nx, 1., nx + 1.);
4419 TH1F *Ghe50 =
new TH1F(
"Ghe50",
"", nx, 1., nx + 1.);
4420 TH1F *Ghe5 = (TH1F *)Ghe50->Clone(
"Ghe5");
4422 for (
int j = 1;
j <= ny;
j++) {
4423 ccc0HE = Ghe1->GetBinContent(1,
j);
4426 for (
int i = 1;
i <= nx;
i++) {
4427 double ccc2 = Ghe1->GetBinContent(
i,
j);
4435 for (
int i = 1;
i <= nx;
i++) {
4436 double ccc1 = Ghe1->GetBinContent(
i,
j);
4438 double Rij = ccc1 / ccc0HE;
4440 Ghe51->Fill(
float(
i), Rij);
4441 Ghe50->Fill(
float(
i), 1.);
4446 Ghe5->Divide(Ghe51, Ghe50, 1, 1,
"B");
4447 for (
int i = 1;
i <= nx;
i++) {
4448 Ghe5->SetBinError(
i, 0.0001);
4450 Ghe5->SetMarkerStyle(20);
4451 Ghe5->SetMarkerSize(0.4);
4452 Ghe5->GetYaxis()->SetLabelSize(0.04);
4453 Ghe5->SetMarkerColor(2);
4454 Ghe5->SetLineColor(0);
4455 Ghe5->SetXTitle(
" iLS \b");
4456 Ghe5->SetYTitle(
" <R> \b");
4457 Ghe5->SetTitle(
"<Ri> vs iLS \b");
4458 Ghe5->SetMinimum(0.);
4463 Ghe5->GetYaxis()->SetLabelSize(0.025);
4464 Ghe5->Draw(
"Error");
4467 TH2F *Ghe60 =
new TH2F(
"Ghe60",
"", 22, -11., 11., 18, 0., 18.);
4468 TH2F *Ghe61 =
new TH2F(
"Ghe61",
"", 22, -11., 11., 18, 0., 18.);
4469 TH2F *Ghe6 =
new TH2F(
"Ghe6",
"", 22, -11., 11., 18, 0., 18.);
4471 TH2F *G20he60 =
new TH2F(
"G20he60",
"", 22, -11., 11., 18, 0., 18.);
4472 TH2F *G20he61 =
new TH2F(
"G20he61",
"", 22, -11., 11., 18, 0., 18.);
4473 TH2F *G20he6 =
new TH2F(
"G20he6",
"", 22, -11., 11., 18, 0., 18.);
4474 TH2F *G30he60 =
new TH2F(
"G30he60",
"", 22, -11., 11., 18, 0., 18.);
4475 TH2F *G30he61 =
new TH2F(
"G30he61",
"", 22, -11., 11., 18, 0., 18.);
4476 TH2F *G30he6 =
new TH2F(
"G30he6",
"", 22, -11., 11., 18, 0., 18.);
4477 TH2F *G40he60 =
new TH2F(
"G40he60",
"", 22, -11., 11., 18, 0., 18.);
4478 TH2F *G40he61 =
new TH2F(
"G40he61",
"", 22, -11., 11., 18, 0., 18.);
4479 TH2F *G40he6 =
new TH2F(
"G40he6",
"", 22, -11., 11., 18, 0., 18.);
4485 double meanjHE = 0.;
4486 for (
int j = 1;
j <= ny;
j++) {
4487 ccc0HE = Ghe1->GetBinContent(1,
j);
4489 for (
int i = 1;
i <= nx;
i++) {
4490 double ccc2 = Ghe1->GetBinContent(
i,
j);
4497 for (
int i = 1;
i <= nx;
i++) {
4498 double ccc1 = Ghe1->GetBinContent(
i,
j) / ccc0HE;
4504 meanjHE = sumjHE / njHE;
4508 double ssumjHE = 0.;
4510 double sigmajHE = 0.;
4511 for (
int j = 1;
j <= ny;
j++) {
4512 ccc0HE = Ghe1->GetBinContent(1,
j);
4514 for (
int i = 1;
i <= nx;
i++) {
4515 double ccc2 = Ghe1->GetBinContent(
i,
j);
4522 for (
int i = 1;
i <= nx;
i++) {
4523 double ccc1 = Ghe1->GetBinContent(
i,
j) / ccc0HE;
4525 ssumjHE += (ccc1 - meanjHE) * (ccc1 - meanjHE);
4529 sigmajHE =
sqrt(ssumjHE / njHE);
4533 double dif3rmsHEMIN = meanjHE - 3 * sigmajHE;
4534 if (dif3rmsHEMIN < 0.)
4536 double dif3rmsHEMAX = meanjHE + 3 * sigmajHE;
4537 cout <<
"22HE-2 meanjHE= " << meanjHE <<
" sigmajHE= " << sigmajHE <<
" dif3rmsHEMIN= " << dif3rmsHEMIN
4538 <<
" dif3rmsHEMAX= " << dif3rmsHEMAX << endl;
4540 double MAXdif3rmsHEMIN = dif3rmsHEMIN;
4541 double MINdif3rmsHEMAX = dif3rmsHEMAX;
4542 if (MAXdif3rmsHEMIN < 0.95)
4543 MAXdif3rmsHEMIN = 0.95;
4544 if (MINdif3rmsHEMAX > 1.05)
4545 MINdif3rmsHEMAX = 1.05;
4546 cout <<
"22HE-2 MAXdif3rmsHEMIN= " << MAXdif3rmsHEMIN <<
" MINdif3rmsHEMAX= " << MINdif3rmsHEMAX << endl;
4548 for (
int j = 1;
j <= ny;
j++) {
4549 ccc0HE = Ghe1->GetBinContent(1,
j);
4551 for (
int i = 1;
i <= nx;
i++) {
4552 double ccc2 = Ghe1->GetBinContent(
i,
j);
4559 int jeta = (
j - 1) / 18;
4560 int jphi = (
j - 1) - 18 *
jeta;
4562 for (
int i = 1;
i <= nx;
i++) {
4563 double ccc1 = Ghe1->GetBinContent(
i,
j);
4565 double Rij = ccc1 / ccc0HE;
4566 if (Rij < MAXdif3rmsHEMIN || Rij > MINdif3rmsHEMAX) {
4567 Ghe61->Fill(
jeta - 11, jphi, Rij);
4568 Ghe60->Fill(
jeta - 11, jphi, 1.);
4570 if (Rij < 0.8 || Rij > 1.2) {
4571 G20he61->Fill(
jeta - 11, jphi, Rij);
4572 G20he60->Fill(
jeta - 11, jphi, 1.);
4574 if (Rij < 0.7 || Rij > 1.3) {
4575 G30he61->Fill(
jeta - 11, jphi, Rij);
4576 G30he60->Fill(
jeta - 11, jphi, 1.);
4578 if (Rij < 0.6 || Rij > 1.4) {
4579 G40he61->Fill(
jeta - 11, jphi, Rij);
4580 G40he60->Fill(
jeta - 11, jphi, 1.);
4586 Ghe6->Divide(Ghe61, Ghe60, 1, 1,
"B");
4587 G20he6->Divide(G20he61, G20he60, 1, 1,
"B");
4588 G30he6->Divide(G30he61, G30he60, 1, 1,
"B");
4589 G40he6->Divide(G40he61, G40he60, 1, 1,
"B");
4593 Ghe6->GetZaxis()->SetLabelSize(0.025);
4595 Ghe6->SetXTitle(
" #eta \b");
4596 Ghe6->SetYTitle(
" #phi \b");
4598 "<Rj> for |1-<R>| > 0.05 \b");
4604 TH1F *Ghe7 =
new TH1F(
"Ghe7",
"", 120, 0.4, 1.6);
4606 for (
int j = 1;
j <= ny;
j++) {
4607 ccc0HE = Ghe1->GetBinContent(1,
j);
4609 for (
int i = 1;
i <= nx;
i++) {
4610 double ccc2 = Ghe1->GetBinContent(
i,
j);
4618 for (
int i = 1;
i <= nx;
i++) {
4619 double ccc1 = Ghe1->GetBinContent(
i,
j);
4621 double Rij = ccc1 / ccc0HE;
4627 Ghe7->SetMarkerStyle(20);
4628 Ghe7->SetMarkerSize(0.4);
4629 Ghe7->GetYaxis()->SetLabelSize(0.04);
4630 Ghe7->SetMarkerColor(2);
4631 Ghe7->SetLineColor(0);
4632 Ghe7->SetYTitle(
" N \b");
4633 Ghe7->SetXTitle(
" Rij \b");
4634 Ghe7->SetTitle(
" Rij \b");
4639 Ghe7->GetYaxis()->SetLabelSize(0.025);
4640 Ghe7->Draw(
"Error");
4641 Float_t ymaxHE = Ghe7->GetMaximum();
4642 cout <<
"22HE-3 ymaxHE= " << ymaxHE <<
" MAXdif3rmsHEMIN= " << MAXdif3rmsHEMIN
4643 <<
" MINdif3rmsHEMAX= " << MINdif3rmsHEMAX << endl;
4644 TLine *lineHE =
new TLine(MAXdif3rmsHEMIN, 0., MAXdif3rmsHEMIN, ymaxHE);
4645 lineHE->SetLineColor(kBlue);
4647 TLine *line1HE =
new TLine(MINdif3rmsHEMAX, 0., MINdif3rmsHEMAX, ymaxHE);
4648 line1HE->SetLineColor(kBlue);
4653 cRBX31->Print(
"RBX-HE-3plots.png");
4688 gStyle->SetOptStat(1110000);
4689 cout <<
" RBX HE Ratio plotsmore *****" << endl;
4692 cRBX31->Divide(3, 1);
4695 G20he6->GetZaxis()->SetLabelSize(0.025);
4696 G20he6->SetXTitle(
" #eta \b");
4697 G20he6->SetYTitle(
" #phi \b");
4698 G20he6->SetTitle(
"<Rj> for |1-<R>| > 0.20 \b");
4699 G20he6->SetStats(0);
4700 G20he6->Draw(
"COLZ");
4703 G30he6->GetZaxis()->SetLabelSize(0.025);
4704 G30he6->SetXTitle(
" #eta \b");
4705 G30he6->SetYTitle(
" #phi \b");
4706 G30he6->SetTitle(
"<Rj> for |1-<R>| > 0.30 \b");
4707 G30he6->SetStats(0);
4708 G30he6->Draw(
"COLZ");
4711 G40he6->GetZaxis()->SetLabelSize(0.025);
4712 G40he6->SetXTitle(
" #eta \b");
4713 G40he6->SetYTitle(
" #phi \b");
4714 G40he6->SetTitle(
"<Rj> for |1-<R>| > 0.40 \b");
4715 G40he6->SetStats(0);
4716 G40he6->Draw(
"COLZ");
4721 cRBX31->Print(
"RBX-HE-3plotsmore.png");
4731 gStyle->SetOptStat(0);
4734 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> " << endl;
4735 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> " << endl;
4736 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> " << endl;
4737 for (
int jphi = 0; jphi < njphi; jphi++) {
4739 for (
int i = 0;
i < nx;
i++) {
4740 alexall[
jeta][jphi][
i] = 0.;
4751 cout <<
" RBX general for HO **************************" << endl;
4752 TH2F *Gho1KKK = (TH2F *)
dir->FindObjectAny(
"h_2DsumADCAmplEtaPhiLs2");
4753 TH2F *Gho1LLL = (TH2F *)
dir->FindObjectAny(
"h_2DsumADCAmplEtaPhiLs20");
4754 TH2F *Gho1 = (TH2F *)Gho1LLL->Clone(
"Gho1");
4755 Gho1->Divide(Gho1KKK, Gho1LLL, 1, 1,
"B");
4759 ny = Gho1->GetYaxis()->GetNbins();
4760 for (
int j = 1;
j <= ny;
j++) {
4761 int jeta = (
j - 1) / njphi;
4762 if (jeta < 15 && jeta > 6) {
4763 int jphi = (
j - 1) - njphi *
jeta;
4766 for (
int i = 1;
i <= nx;
i++) {
4767 double ccc1 = Gho1->GetBinContent(
i,
j);
4768 alexall[
jeta][jphi][
i - 1] = ccc1;
4781 for (
int jphi = 0; jphi < njphi; jphi++) {
4782 for (
int i = 0;
i < nx;
i++) {
4783 double sumccc1 = 0.;
4786 double ccc1 = alexall[
jeta][jphi][
i];
4794 alexho[jphi][
i] = sumccc1;
4798 for (
int keta = 0; keta < njeta; keta++) {
4799 for (
int i = 0;
i < nx;
i++) {
4800 double sumccc1 = 0.;
4802 for (
int kphi = 0; kphi < njphi; kphi++) {
4803 double ccc1 = alexall[keta][kphi][
i];
4811 blexho[keta][
i] = sumccc1;
4821 cout <<
" RBX HO 2D plot *****" << endl;
4824 cRBX1->Divide(1, 1);
4827 TH2F *Gho42D =
new TH2F(
"Gho42D",
"", 23, -11.5, 11.5, 18, 0., 18.);
4828 TH2F *Gho42D0 =
new TH2F(
"Gho42D0",
"", 23, -11.5, 11.5, 18, 0., 18.);
4831 TH2F *Gho42DF = (TH2F *)Gho42D0->Clone(
"Gho42DF");
4832 for (
int jphi = 0; jphi < njphi; jphi++) {
4834 for (
int i = 0;
i < nx;
i++) {
4835 double ccc1 = alexall[
jeta][jphi][
i];
4836 int neweta =
jeta - 11 - 0.5;
4838 neweta =
jeta - 11 + 1.5;
4840 Gho42D->Fill(neweta, jphi, ccc1);
4841 Gho42D0->Fill(neweta, jphi, 1.);
4847 Gho42DF->Divide(Gho42D, Gho42D0, 1, 1,
"B");
4851 Gho42DF->SetMarkerStyle(20);
4852 Gho42DF->SetMarkerSize(0.4);
4853 Gho42DF->GetZaxis()->SetLabelSize(0.04);
4854 Gho42DF->SetXTitle(
"<A>_RBX #eta \b");
4855 Gho42DF->SetYTitle(
" #phi \b");
4856 Gho42DF->SetZTitle(
"<A>_RBX - All \b");
4857 Gho42DF->SetMarkerColor(2);
4858 Gho42DF->SetLineColor(2);
4859 Gho42DF->Draw(
"COLZ");
4863 cRBX1->Print(
"RBX-HO-2Dplot.png");
4878 cout <<
" RBX HO 1D plot *****" << endl;
4881 cRBX1->Divide(1, 1);
4883 TH1F *GphiHO1D =
new TH1F(
"GphiHO1D",
"", 18, 0., 18.);
4884 TH1F *GphiHO1D0 =
new TH1F(
"GphiHO1D0",
"", 18, 0., 18.);
4885 TH1F *GphiHO1DF = (TH1F *)GphiHO1D0->Clone(
"GphiHO1DF");
4886 for (
int jphi = 0; jphi < 18; jphi++) {
4888 for (
int i = 0;
i < nx;
i++) {
4889 double ccc1 = alexall[
jeta][jphi][
i];
4891 GphiHO1D->Fill(jphi, ccc1);
4892 GphiHO1D0->Fill(jphi, 1.);
4898 GphiHO1DF->Divide(GphiHO1D, GphiHO1D0, 1, 1,
"B");
4900 for (
int jphi = 1; jphi < 19; jphi++) {
4901 GphiHO1DF->SetBinError(jphi, 0.01);
4905 GphiHO1DF->SetMarkerStyle(20);
4906 GphiHO1DF->SetMarkerSize(1.4);
4907 GphiHO1DF->GetZaxis()->SetLabelSize(0.08);
4908 GphiHO1DF->SetXTitle(
"PHI of RBX\b");
4909 GphiHO1DF->SetYTitle(
" <Amplitude> \b");
4910 GphiHO1DF->SetZTitle(
"<A>_PHI - All \b");
4911 GphiHO1DF->SetMarkerColor(4);
4912 GphiHO1DF->SetLineColor(4);
4913 GphiHO1DF->SetMinimum(0.8);
4914 GphiHO1DF->Draw(
"Error");
4917 cRBX1->Print(
"RBX-HO-1Dplot.png");
4932 cout <<
" RBX HO 11D plot *eta*" << endl;
4935 cRBX1->Divide(1, 1);
4937 TH1F *GetaHO11D =
new TH1F(
"GetaHO11D",
"", 23, -11.5, 11.5);
4938 TH1F *GetaHO11D0 =
new TH1F(
"GetaHO11D0",
"", 23, -11.5, 11.5);
4939 TH1F *GetaHO11DF = (TH1F *)GetaHO11D0->Clone(
"GetaHO11DF");
4942 for (
int jphi = 0; jphi < 18; jphi++) {
4943 for (
int i = 0;
i < nx;
i++) {
4944 double ccc1 = alexall[
jeta][jphi][
i];
4945 int neweta =
jeta - 11 - 0.5;
4947 neweta =
jeta - 11 + 1.5;
4949 GetaHO11D->Fill(neweta, ccc1);
4950 GetaHO11D0->Fill(neweta, 1.);
4957 GetaHO11DF->Divide(GetaHO11D, GetaHO11D0, 1, 1,
"B");
4960 GetaHO11DF->SetBinError(
jeta, 0.01);
4964 GetaHO11DF->SetMarkerStyle(20);
4965 GetaHO11DF->SetMarkerSize(1.4);
4966 GetaHO11DF->GetZaxis()->SetLabelSize(0.08);
4967 GetaHO11DF->SetXTitle(
"#eta \b");
4968 GetaHO11DF->SetYTitle(
" <A> \b");
4969 GetaHO11DF->SetZTitle(
"<A>_ETA - All \b");
4970 GetaHO11DF->SetMarkerColor(4);
4971 GetaHO11DF->SetLineColor(4);
4972 GetaHO11DF->SetMinimum(0.8);
4973 GetaHO11DF->Draw(
"Error");
4977 cRBX1->Print(
"RBX-HO-11Dplot.png");
4993 gStyle->SetOptStat(1110000);
4994 cout <<
" RBX HO Ratio plots *****" << endl;
5003 cRBX31->Divide(3, 1);
5007 TH1F *Gho51 =
new TH1F(
"Gho51",
"", nx, 1., nx + 1.);
5008 TH1F *Gho50 =
new TH1F(
"Gho50",
"", nx, 1., nx + 1.);
5009 TH1F *Gho5 = (TH1F *)Gho50->Clone(
"Gho5");
5011 for (
int j = 1;
j <= ny;
j++) {
5012 ccc0HO = Gho1->GetBinContent(1,
j);
5015 for (
int i = 1;
i <= nx;
i++) {
5016 double ccc2 = Gho1->GetBinContent(
i,
j);
5024 for (
int i = 1;
i <= nx;
i++) {
5025 double ccc1 = Gho1->GetBinContent(
i,
j);
5027 double Rij = ccc1 / ccc0HO;
5029 Gho51->Fill(
float(
i), Rij);
5030 Gho50->Fill(
float(
i), 1.);
5035 Gho5->Divide(Gho51, Gho50, 1, 1,
"B");
5036 for (
int i = 1;
i <= nx;
i++) {
5037 Gho5->SetBinError(
i, 0.0001);
5039 Gho5->SetMarkerStyle(20);
5040 Gho5->SetMarkerSize(0.4);
5041 Gho5->GetYaxis()->SetLabelSize(0.04);
5042 Gho5->SetMarkerColor(2);
5043 Gho5->SetLineColor(0);
5044 Gho5->SetXTitle(
" iLS \b");
5045 Gho5->SetYTitle(
" <R> \b");
5046 Gho5->SetTitle(
"<Ri> vs iLS \b");
5047 Gho5->SetMinimum(0.);
5052 Gho5->GetYaxis()->SetLabelSize(0.025);
5053 Gho5->Draw(
"Error");
5056 TH2F *Gho60 =
new TH2F(
"Gho60",
"", 22, -11., 11., 18, 0., 18.);
5057 TH2F *Gho61 =
new TH2F(
"Gho61",
"", 22, -11., 11., 18, 0., 18.);
5058 TH2F *Gho6 =
new TH2F(
"Gho6",
"", 22, -11., 11., 18, 0., 18.);
5060 TH2F *G20ho60 =
new TH2F(
"G20ho60",
"", 22, -11., 11., 18, 0., 18.);
5061 TH2F *G20ho61 =
new TH2F(
"G20ho61",
"", 22, -11., 11., 18, 0., 18.);
5062 TH2F *G20ho6 =
new TH2F(
"G20ho6",
"", 22, -11., 11., 18, 0., 18.);
5063 TH2F *G30ho60 =
new TH2F(
"G30ho60",
"", 22, -11., 11., 18, 0., 18.);
5064 TH2F *G30ho61 =
new TH2F(
"G30ho61",
"", 22, -11., 11., 18, 0., 18.);
5065 TH2F *G30ho6 =
new TH2F(
"G30ho6",
"", 22, -11., 11., 18, 0., 18.);
5066 TH2F *G40ho60 =
new TH2F(
"G40ho60",
"", 22, -11., 11., 18, 0., 18.);
5067 TH2F *G40ho61 =
new TH2F(
"G40ho61",
"", 22, -11., 11., 18, 0., 18.);
5068 TH2F *G40ho6 =
new TH2F(
"G40ho6",
"", 22, -11., 11., 18, 0., 18.);
5075 double meanjHO = 0.;
5076 for (
int j = 1;
j <= ny;
j++) {
5077 ccc0HO = Gho1->GetBinContent(1,
j);
5079 for (
int i = 1;
i <= nx;
i++) {
5080 double ccc2 = Gho1->GetBinContent(
i,
j);
5087 for (
int i = 1;
i <= nx;
i++) {
5088 double ccc1 = Gho1->GetBinContent(
i,
j) / ccc0HO;
5094 meanjHO = sumjHO / njHO;
5098 double ssumjHO = 0.;
5100 double sigmajHO = 0.;
5101 for (
int j = 1;
j <= ny;
j++) {
5102 ccc0HO = Gho1->GetBinContent(1,
j);
5104 for (
int i = 1;
i <= nx;
i++) {
5105 double ccc2 = Gho1->GetBinContent(
i,
j);
5112 for (
int i = 1;
i <= nx;
i++) {
5113 double ccc1 = Gho1->GetBinContent(
i,
j) / ccc0HO;
5115 ssumjHO += (ccc1 - meanjHO) * (ccc1 - meanjHO);
5119 sigmajHO =
sqrt(ssumjHO / njHO);
5123 double dif3rmsHOMIN = meanjHO - 3 * sigmajHO;
5124 if (dif3rmsHOMIN < 0.)
5126 double dif3rmsHOMAX = meanjHO + 3 * sigmajHO;
5127 cout <<
"22HO-2 meanjHO= " << meanjHO <<
" sigmajHO= " << sigmajHO <<
" dif3rmsHOMIN= " << dif3rmsHOMIN
5128 <<
" dif3rmsHOMAX= " << dif3rmsHOMAX << endl;
5130 double MAXdif3rmsHOMIN = dif3rmsHOMIN;
5131 double MINdif3rmsHOMAX = dif3rmsHOMAX;
5132 if (MAXdif3rmsHOMIN < 0.95)
5133 MAXdif3rmsHOMIN = 0.95;
5134 if (MINdif3rmsHOMAX > 1.05)
5135 MINdif3rmsHOMAX = 1.05;
5136 cout <<
"22HO-2 MAXdif3rmsHOMIN= " << MAXdif3rmsHOMIN <<
" MINdif3rmsHOMAX= " << MINdif3rmsHOMAX << endl;
5138 for (
int j = 1;
j <= ny;
j++) {
5139 ccc0HO = Gho1->GetBinContent(1,
j);
5141 for (
int i = 1;
i <= nx;
i++) {
5142 double ccc2 = Gho1->GetBinContent(
i,
j);
5149 int jeta = (
j - 1) / 18;
5150 int jphi = (
j - 1) - 18 *
jeta;
5152 for (
int i = 1;
i <= nx;
i++) {
5153 double ccc1 = Gho1->GetBinContent(
i,
j);
5155 double Rij = ccc1 / ccc0HO;
5156 if (Rij < MAXdif3rmsHOMIN || Rij > MINdif3rmsHOMAX) {
5157 Gho61->Fill(
jeta - 11, jphi, Rij);
5158 Gho60->Fill(
jeta - 11, jphi, 1.);
5160 if (Rij < 0.8 || Rij > 1.2) {
5161 G20ho61->Fill(
jeta - 11, jphi, Rij);
5162 G20ho60->Fill(
jeta - 11, jphi, 1.);
5164 if (Rij < 0.7 || Rij > 1.3) {
5165 G30ho61->Fill(
jeta - 11, jphi, Rij);
5166 G30ho60->Fill(
jeta - 11, jphi, 1.);
5168 if (Rij < 0.6 || Rij > 1.4) {
5169 G40ho61->Fill(
jeta - 11, jphi, Rij);
5170 G40ho60->Fill(
jeta - 11, jphi, 1.);
5176 Gho6->Divide(Gho61, Gho60, 1, 1,
"B");
5177 G20ho6->Divide(G20ho61, G20ho60, 1, 1,
"B");
5178 G30ho6->Divide(G30ho61, G30ho60, 1, 1,
"B");
5179 G40ho6->Divide(G40ho61, G40ho60, 1, 1,
"B");
5182 Gho6->GetZaxis()->SetLabelSize(0.025);
5184 Gho6->SetXTitle(
" #eta \b");
5185 Gho6->SetYTitle(
" #phi \b");
5187 "<Rj> for |1-<R>| > 0.05 \b");
5193 TH1F *Gho7 =
new TH1F(
"Gho7",
"", 120, 0.4, 1.6);
5195 for (
int j = 1;
j <= ny;
j++) {
5196 ccc0HO = Gho1->GetBinContent(1,
j);
5198 for (
int i = 1;
i <= nx;
i++) {
5199 double ccc2 = Gho1->GetBinContent(
i,
j);
5207 for (
int i = 1;
i <= nx;
i++) {
5208 double ccc1 = Gho1->GetBinContent(
i,
j);
5210 double Rij = ccc1 / ccc0HO;
5216 Gho7->SetMarkerStyle(20);
5217 Gho7->SetMarkerSize(0.4);
5218 Gho7->GetYaxis()->SetLabelSize(0.04);
5219 Gho7->SetMarkerColor(2);
5220 Gho7->SetLineColor(0);
5221 Gho7->SetYTitle(
" N \b");
5222 Gho7->SetXTitle(
" Rij \b");
5223 Gho7->SetTitle(
" Rij \b");
5228 Gho7->GetYaxis()->SetLabelSize(0.025);
5229 Gho7->Draw(
"Error");
5230 Float_t ymaxHO = Gho7->GetMaximum();
5231 cout <<
"22HO-3 ymaxHO= " << ymaxHO <<
" MAXdif3rmsHOMIN= " << MAXdif3rmsHOMIN
5232 <<
" MINdif3rmsHOMAX= " << MINdif3rmsHOMAX << endl;
5233 TLine *lineHO =
new TLine(MAXdif3rmsHOMIN, 0., MAXdif3rmsHOMIN, ymaxHO);
5234 lineHO->SetLineColor(kBlue);
5236 TLine *line1HO =
new TLine(MINdif3rmsHOMAX, 0., MINdif3rmsHOMAX, ymaxHO);
5237 line1HO->SetLineColor(kBlue);
5242 cRBX31->Print(
"RBX-HO-3plots.png");
5277 gStyle->SetOptStat(1110000);
5278 cout <<
" RBX HO Ratio plotsmore *****" << endl;
5281 cRBX31->Divide(3, 1);
5284 G20ho6->GetZaxis()->SetLabelSize(0.025);
5285 G20ho6->SetXTitle(
" #eta \b");
5286 G20ho6->SetYTitle(
" #phi \b");
5287 G20ho6->SetTitle(
"<Rj> for |1-<R>| > 0.20 \b");
5288 G20ho6->SetStats(0);
5289 G20ho6->Draw(
"COLZ");
5292 G30ho6->GetZaxis()->SetLabelSize(0.025);
5293 G30ho6->SetXTitle(
" #eta \b");
5294 G30ho6->SetYTitle(
" #phi \b");
5295 G30ho6->SetTitle(
"<Rj> for |1-<R>| > 0.30 \b");
5296 G30ho6->SetStats(0);
5297 G30ho6->Draw(
"COLZ");
5300 G40ho6->GetZaxis()->SetLabelSize(0.025);
5301 G40ho6->SetXTitle(
" #eta \b");
5302 G40ho6->SetYTitle(
" #phi \b");
5303 G40ho6->SetTitle(
"<Rj> for |1-<R>| > 0.40 \b");
5304 G40ho6->SetStats(0);
5305 G40ho6->Draw(
"COLZ");
5310 cRBX31->Print(
"RBX-HO-3plotsmore.png");
5320 gStyle->SetOptStat(0);
5323 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> " << endl;
5324 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> " << endl;
5325 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> " << endl;
5326 for (
int jphi = 0; jphi < njphi; jphi++) {
5328 for (
int i = 0;
i < nx;
i++) {
5329 alexall[
jeta][jphi][
i] = 0.;
5340 cout <<
" RBX general for HF **************************" << endl;
5341 TH2F *Ghf1KKK = (TH2F *)
dir->FindObjectAny(
"h_2DsumADCAmplEtaPhiLs3");
5342 TH2F *Ghf1LLL = (TH2F *)
dir->FindObjectAny(
"h_2DsumADCAmplEtaPhiLs30");
5343 TH2F *Ghf1 = (TH2F *)Ghf1LLL->Clone(
"Ghf1");
5344 Ghf1->Divide(Ghf1KKK, Ghf1LLL, 1, 1,
"B");
5348 ny = Ghf1->GetYaxis()->GetNbins();
5349 for (
int j = 1;
j <= ny;
j++) {
5350 int jeta = (
j - 1) / njphi;
5351 if (jeta < 4 || jeta > 17) {
5352 int jphi = (
j - 1) - njphi *
jeta;
5355 for (
int i = 1;
i <= nx;
i++) {
5356 double ccc1 = Ghf1->GetBinContent(
i,
j);
5357 alexall[
jeta][jphi][
i - 1] = ccc1;
5370 for (
int jphi = 0; jphi < njphi; jphi++) {
5371 for (
int i = 0;
i < nx;
i++) {
5372 double sumccc1 = 0.;
5375 double ccc1 = alexall[
jeta][jphi][
i];
5383 alexhf[jphi][
i] = sumccc1;
5387 for (
int keta = 0; keta < njeta; keta++) {
5388 for (
int i = 0;
i < nx;
i++) {
5389 double sumccc1 = 0.;
5391 for (
int kphi = 0; kphi < njphi; kphi++) {
5392 double ccc1 = alexall[keta][kphi][
i];
5400 blexhf[keta][
i] = sumccc1;
5409 cout <<
" RBX HF 2D plot *****" << endl;
5412 cRBX1->Divide(1, 1);
5415 TH2F *Ghf42D =
new TH2F(
"Ghf42D",
"", 23, -11.5, 11.5, 18, 0., 18.);
5416 TH2F *Ghf42D0 =
new TH2F(
"Ghf42D0",
"", 23, -11.5, 11.5, 18, 0., 18.);
5419 TH2F *Ghf42DF = (TH2F *)Ghf42D0->Clone(
"Ghf42DF");
5420 for (
int jphi = 0; jphi < njphi; jphi++) {
5422 for (
int i = 0;
i < nx;
i++) {
5423 double ccc1 = alexall[
jeta][jphi][
i];
5424 int neweta =
jeta - 11 - 0.5;
5426 neweta =
jeta - 11 + 1.5;
5428 Ghf42D->Fill(neweta, jphi, ccc1);
5429 Ghf42D0->Fill(neweta, jphi, 1.);
5435 Ghf42DF->Divide(Ghf42D, Ghf42D0, 1, 1,
"B");
5439 Ghf42DF->SetMarkerStyle(20);
5440 Ghf42DF->SetMarkerSize(0.4);
5441 Ghf42DF->GetZaxis()->SetLabelSize(0.04);
5442 Ghf42DF->SetXTitle(
"<A>_RBX #eta \b");
5443 Ghf42DF->SetYTitle(
" #phi \b");
5444 Ghf42DF->SetZTitle(
"<A>_RBX - All \b");
5445 Ghf42DF->SetMarkerColor(2);
5446 Ghf42DF->SetLineColor(2);
5447 Ghf42DF->Draw(
"COLZ");
5451 cRBX1->Print(
"RBX-HF-2Dplot.png");
5466 cout <<
" RBX HF 1D plot *****" << endl;
5469 cRBX1->Divide(1, 1);
5471 TH1F *GphiHF1D =
new TH1F(
"GphiHF1D",
"", 18, 0., 18.);
5472 TH1F *GphiHF1D0 =
new TH1F(
"GphiHF1D0",
"", 18, 0., 18.);
5473 TH1F *GphiHF1DF = (TH1F *)GphiHF1D0->Clone(
"GphiHF1DF");
5474 for (
int jphi = 0; jphi < 18; jphi++) {
5476 for (
int i = 0;
i < nx;
i++) {
5477 double ccc1 = alexall[
jeta][jphi][
i];
5479 GphiHF1D->Fill(jphi, ccc1);
5480 GphiHF1D0->Fill(jphi, 1.);
5486 GphiHF1DF->Divide(GphiHF1D, GphiHF1D0, 1, 1,
"B");
5488 for (
int jphi = 1; jphi < 19; jphi++) {
5489 GphiHF1DF->SetBinError(jphi, 0.01);
5493 GphiHF1DF->SetMarkerStyle(20);
5494 GphiHF1DF->SetMarkerSize(1.4);
5495 GphiHF1DF->GetZaxis()->SetLabelSize(0.08);
5496 GphiHF1DF->SetXTitle(
"PHI of RBX\b");
5497 GphiHF1DF->SetYTitle(
" <Amplitude> \b");
5498 GphiHF1DF->SetZTitle(
"<A>_PHI - All \b");
5499 GphiHF1DF->SetMarkerColor(4);
5500 GphiHF1DF->SetLineColor(4);
5501 GphiHF1DF->SetMinimum(0.8);
5502 GphiHF1DF->Draw(
"Error");
5505 cRBX1->Print(
"RBX-HF-1Dplot.png");
5520 cout <<
" RBX HF 11D plot *eta*" << endl;
5523 cRBX1->Divide(1, 1);
5525 TH1F *GetaHF11D =
new TH1F(
"GetaHF11D",
"", 23, -11.5, 11.5);
5526 TH1F *GetaHF11D0 =
new TH1F(
"GetaHF11D0",
"", 23, -11.5, 11.5);
5527 TH1F *GetaHF11DF = (TH1F *)GetaHF11D0->Clone(
"GetaHF11DF");
5530 for (
int jphi = 0; jphi < 18; jphi++) {
5531 for (
int i = 0;
i < nx;
i++) {
5532 double ccc1 = alexall[
jeta][jphi][
i];
5533 int neweta =
jeta - 11 - 0.5;
5535 neweta =
jeta - 11 + 1.5;
5537 GetaHF11D->Fill(neweta, ccc1);
5538 GetaHF11D0->Fill(neweta, 1.);
5545 GetaHF11DF->Divide(GetaHF11D, GetaHF11D0, 1, 1,
"B");
5548 GetaHF11DF->SetBinError(
jeta, 0.01);
5552 GetaHF11DF->SetMarkerStyle(20);
5553 GetaHF11DF->SetMarkerSize(1.4);
5554 GetaHF11DF->GetZaxis()->SetLabelSize(0.08);
5555 GetaHF11DF->SetXTitle(
"#eta \b");
5556 GetaHF11DF->SetYTitle(
" <A> \b");
5557 GetaHF11DF->SetZTitle(
"<A>_ETA - All \b");
5558 GetaHF11DF->SetMarkerColor(4);
5559 GetaHF11DF->SetLineColor(4);
5560 GetaHF11DF->SetMinimum(0.8);
5561 GetaHF11DF->Draw(
"Error");
5565 cRBX1->Print(
"RBX-HF-11Dplot.png");
5581 gStyle->SetOptStat(1110000);
5582 cout <<
" RBX HF Ratio plots *****" << endl;
5591 cRBX31->Divide(3, 1);
5595 TH1F *Ghf51 =
new TH1F(
"Ghf51",
"", nx, 1., nx + 1.);
5596 TH1F *Ghf50 =
new TH1F(
"Ghf50",
"", nx, 1., nx + 1.);
5597 TH1F *Ghf5 = (TH1F *)Ghf50->Clone(
"Ghf5");
5599 for (
int j = 1;
j <= ny;
j++) {
5600 ccc0HF = Ghf1->GetBinContent(1,
j);
5603 for (
int i = 1;
i <= nx;
i++) {
5604 double ccc2 = Ghf1->GetBinContent(
i,
j);
5612 for (
int i = 1;
i <= nx;
i++) {
5613 double ccc1 = Ghf1->GetBinContent(
i,
j);
5615 double Rij = ccc1 / ccc0HF;
5617 Ghf51->Fill(
float(
i), Rij);
5618 Ghf50->Fill(
float(
i), 1.);
5623 Ghf5->Divide(Ghf51, Ghf50, 1, 1,
"B");
5624 for (
int i = 1;
i <= nx;
i++) {
5625 Ghf5->SetBinError(
i, 0.0001);
5627 Ghf5->SetMarkerStyle(20);
5628 Ghf5->SetMarkerSize(0.4);
5629 Ghf5->GetYaxis()->SetLabelSize(0.04);
5630 Ghf5->SetMarkerColor(2);
5631 Ghf5->SetLineColor(0);
5632 Ghf5->SetXTitle(
" iLS \b");
5633 Ghf5->SetYTitle(
" <R> \b");
5634 Ghf5->SetTitle(
"<Ri> vs iLS \b");
5635 Ghf5->SetMinimum(0.);
5640 Ghf5->GetYaxis()->SetLabelSize(0.025);
5641 Ghf5->Draw(
"Error");
5644 TH2F *Ghf60 =
new TH2F(
"Ghf60",
"", 22, -11., 11., 18, 0., 18.);
5645 TH2F *Ghf61 =
new TH2F(
"Ghf61",
"", 22, -11., 11., 18, 0., 18.);
5646 TH2F *Ghf6 =
new TH2F(
"Ghf6",
"", 22, -11., 11., 18, 0., 18.);
5648 TH2F *G20hf60 =
new TH2F(
"G20hf60",
"", 22, -11., 11., 18, 0., 18.);
5649 TH2F *G20hf61 =
new TH2F(
"G20hf61",
"", 22, -11., 11., 18, 0., 18.);
5650 TH2F *G20hf6 =
new TH2F(
"G20hf6",
"", 22, -11., 11., 18, 0., 18.);
5651 TH2F *G30hf60 =
new TH2F(
"G30hf60",
"", 22, -11., 11., 18, 0., 18.);
5652 TH2F *G30hf61 =
new TH2F(
"G30hf61",
"", 22, -11., 11., 18, 0., 18.);
5653 TH2F *G30hf6 =
new TH2F(
"G30hf6",
"", 22, -11., 11., 18, 0., 18.);
5654 TH2F *G40hf60 =
new TH2F(
"G40hf60",
"", 22, -11., 11., 18, 0., 18.);
5655 TH2F *G40hf61 =
new TH2F(
"G40hf61",
"", 22, -11., 11., 18, 0., 18.);
5656 TH2F *G40hf6 =
new TH2F(
"G40hf6",
"", 22, -11., 11., 18, 0., 18.);
5662 double meanjHF = 0.;
5663 for (
int j = 1;
j <= ny;
j++) {
5664 ccc0HF = Ghf1->GetBinContent(1,
j);
5666 for (
int i = 1;
i <= nx;
i++) {
5667 double ccc2 = Ghf1->GetBinContent(
i,
j);
5674 for (
int i = 1;
i <= nx;
i++) {
5675 double ccc1 = Ghf1->GetBinContent(
i,
j) / ccc0HF;
5681 meanjHF = sumjHF / njHF;
5685 double ssumjHF = 0.;
5687 double sigmajHF = 0.;
5688 for (
int j = 1;
j <= ny;
j++) {
5689 ccc0HF = Ghf1->GetBinContent(1,
j);
5691 for (
int i = 1;
i <= nx;
i++) {
5692 double ccc2 = Ghf1->GetBinContent(
i,
j);
5699 for (
int i = 1;
i <= nx;
i++) {
5700 double ccc1 = Ghf1->GetBinContent(
i,
j) / ccc0HF;
5702 ssumjHF += (ccc1 - meanjHF) * (ccc1 - meanjHF);
5706 sigmajHF =
sqrt(ssumjHF / njHF);
5710 double dif3rmsHFMIN = meanjHF - 3 * sigmajHF;
5711 if (dif3rmsHFMIN < 0.)
5713 double dif3rmsHFMAX = meanjHF + 3 * sigmajHF;
5714 cout <<
"22HF-2 meanjHF= " << meanjHF <<
" sigmajHF= " << sigmajHF <<
" dif3rmsHFMIN= " << dif3rmsHFMIN
5715 <<
" dif3rmsHFMAX= " << dif3rmsHFMAX << endl;
5717 double MAXdif3rmsHFMIN = dif3rmsHFMIN;
5718 double MINdif3rmsHFMAX = dif3rmsHFMAX;
5719 if (MAXdif3rmsHFMIN < 0.95)
5720 MAXdif3rmsHFMIN = 0.95;
5721 if (MINdif3rmsHFMAX > 1.05)
5722 MINdif3rmsHFMAX = 1.05;
5723 cout <<
"22HF-2 MAXdif3rmsHFMIN= " << MAXdif3rmsHFMIN <<
" MINdif3rmsHFMAX= " << MINdif3rmsHFMAX << endl;
5725 for (
int j = 1;
j <= ny;
j++) {
5726 ccc0HF = Ghf1->GetBinContent(1,
j);
5728 for (
int i = 1;
i <= nx;
i++) {
5729 double ccc2 = Ghf1->GetBinContent(
i,
j);
5736 int jeta = (
j - 1) / 18;
5737 int jphi = (
j - 1) - 18 *
jeta;
5739 for (
int i = 1;
i <= nx;
i++) {
5740 double ccc1 = Ghf1->GetBinContent(
i,
j);
5742 double Rij = ccc1 / ccc0HF;
5743 if (Rij < MAXdif3rmsHFMIN || Rij > MINdif3rmsHFMAX) {
5744 Ghf61->Fill(
jeta - 11, jphi, Rij);
5745 Ghf60->Fill(
jeta - 11, jphi, 1.);
5747 if (Rij < 0.8 || Rij > 1.2) {
5748 G20hf61->Fill(
jeta - 11, jphi, Rij);
5749 G20hf60->Fill(
jeta - 11, jphi, 1.);
5751 if (Rij < 0.7 || Rij > 1.3) {
5752 G30hf61->Fill(
jeta - 11, jphi, Rij);
5753 G30hf60->Fill(
jeta - 11, jphi, 1.);
5755 if (Rij < 0.6 || Rij > 1.4) {
5756 G40hf61->Fill(
jeta - 11, jphi, Rij);
5757 G40hf60->Fill(
jeta - 11, jphi, 1.);
5763 Ghf6->Divide(Ghf61, Ghf60, 1, 1,
"B");
5764 G20hf6->Divide(G20hf61, G20hf60, 1, 1,
"B");
5765 G30hf6->Divide(G30hf61, G30hf60, 1, 1,
"B");
5766 G40hf6->Divide(G40hf61, G40hf60, 1, 1,
"B");
5769 Ghf6->GetZaxis()->SetLabelSize(0.025);
5771 Ghf6->SetXTitle(
" #eta \b");
5772 Ghf6->SetYTitle(
" #phi \b");
5774 "<Rj> for |1-<R>| > 0.05 \b");
5780 TH1F *Ghf7 =
new TH1F(
"Ghf7",
"", 120, 0.4, 1.6);
5782 for (
int j = 1;
j <= ny;
j++) {
5783 ccc0HF = Ghf1->GetBinContent(1,
j);
5785 for (
int i = 1;
i <= nx;
i++) {
5786 double ccc2 = Ghf1->GetBinContent(
i,
j);
5794 for (
int i = 1;
i <= nx;
i++) {
5795 double ccc1 = Ghf1->GetBinContent(
i,
j);
5797 double Rij = ccc1 / ccc0HF;
5803 Ghf7->SetMarkerStyle(20);
5804 Ghf7->SetMarkerSize(0.4);
5805 Ghf7->GetYaxis()->SetLabelSize(0.04);
5806 Ghf7->SetMarkerColor(2);
5807 Ghf7->SetLineColor(0);
5808 Ghf7->SetYTitle(
" N \b");
5809 Ghf7->SetXTitle(
" Rij \b");
5810 Ghf7->SetTitle(
" Rij \b");
5815 Ghf7->GetYaxis()->SetLabelSize(0.025);
5816 Ghf7->Draw(
"Error");
5817 Float_t ymaxHF = Ghf7->GetMaximum();
5818 cout <<
"22HF-3 ymaxHF= " << ymaxHF <<
" MAXdif3rmsHFMIN= " << MAXdif3rmsHFMIN
5819 <<
" MINdif3rmsHFMAX= " << MINdif3rmsHFMAX << endl;
5820 TLine *lineHF =
new TLine(MAXdif3rmsHFMIN, 0., MAXdif3rmsHFMIN, ymaxHF);
5821 lineHF->SetLineColor(kBlue);
5823 TLine *line1HF =
new TLine(MINdif3rmsHFMAX, 0., MINdif3rmsHFMAX, ymaxHF);
5824 line1HF->SetLineColor(kBlue);
5829 cRBX31->Print(
"RBX-HF-3plots.png");
5864 gStyle->SetOptStat(1110000);
5865 cout <<
" RBX HF Ratio plotsmore *****" << endl;
5868 cRBX31->Divide(3, 1);
5871 G20hf6->GetZaxis()->SetLabelSize(0.025);
5872 G20hf6->SetXTitle(
" #eta \b");
5873 G20hf6->SetYTitle(
" #phi \b");
5874 G20hf6->SetTitle(
"<Rj> for |1-<R>| > 0.20 \b");
5875 G20hf6->SetStats(0);
5876 G20hf6->Draw(
"COLZ");
5879 G30hf6->GetZaxis()->SetLabelSize(0.025);
5880 G30hf6->SetXTitle(
" #eta \b");
5881 G30hf6->SetYTitle(
" #phi \b");
5882 G30hf6->SetTitle(
"<Rj> for |1-<R>| > 0.30 \b");
5883 G30hf6->SetStats(0);
5884 G30hf6->Draw(
"COLZ");
5887 G40hf6->GetZaxis()->SetLabelSize(0.025);
5888 G40hf6->SetXTitle(
" #eta \b");
5889 G40hf6->SetYTitle(
" #phi \b");
5890 G40hf6->SetTitle(
"<Rj> for |1-<R>| > 0.40 \b");
5891 G40hf6->SetStats(0);
5892 G40hf6->Draw(
"COLZ");
5897 cRBX31->Print(
"RBX-HF-3plotsmore.png");
5907 gStyle->SetOptStat(0);
5909 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> " << endl;
5910 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> " << endl;
5911 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> " << endl;
5919 int mymaxbins = MaxLum;
5925 TH2F *occhbm = (TH2F *)
dir->FindObjectAny(
"h_RatioOccupancy_HBM");
5926 TH1F *uyhbm =
new TH1F(
"uyhbm",
"", mymaxbins, 1., mymaxbins + 1.);
5927 for (
int i = 1;
i <= occhbm->GetXaxis()->GetNbins();
i++) {
5928 double ccc1 = occhbm->GetBinContent(
i);
5931 uyhbm->Fill(
float(
i), ccc1);
5934 uyhbm->SetMarkerStyle(20);
5935 uyhbm->SetMarkerSize(0.6);
5936 uyhbm->GetYaxis()->SetLabelSize(0.04);
5937 uyhbm->SetXTitle(
"min/av occupancy - HBM \b");
5938 uyhbm->SetMarkerColor(2);
5939 uyhbm->SetLineColor(0);
5940 uyhbm->SetMaximum(1.0);
5941 uyhbm->SetMinimum(0.2);
5943 uyhbm->Draw(
"Error");
5946 TH2F *occhbp = (TH2F *)
dir->FindObjectAny(
"h_RatioOccupancy_HBP");
5947 TH1F *uyhbp =
new TH1F(
"uyhbp",
"", mymaxbins, 1., mymaxbins + 1.);
5948 for (
int i = 1;
i <= occhbp->GetXaxis()->GetNbins();
i++) {
5949 double ccc1 = occhbp->GetBinContent(
i);
5952 uyhbp->Fill(
float(
i), ccc1);
5955 uyhbp->SetMarkerStyle(20);
5956 uyhbp->SetMarkerSize(0.6);
5957 uyhbp->GetYaxis()->SetLabelSize(0.04);
5958 uyhbp->SetXTitle(
"min/av occupancy - HBP \b");
5959 uyhbp->SetMarkerColor(2);
5960 uyhbp->SetLineColor(0);
5961 uyhbp->SetMaximum(1.0);
5962 uyhbp->SetMinimum(0.2);
5964 uyhbp->Draw(
"Error");
5969 cHB->Print(Form(
"OccPlots_HB.png"));
5989 TH2F *occhem = (TH2F *)
dir->FindObjectAny(
"h_RatioOccupancy_HEM");
5990 TH1F *uyhem =
new TH1F(
"uyhem",
"", mymaxbins, 1., mymaxbins + 1.);
5991 for (
int i = 1;
i <= occhem->GetXaxis()->GetNbins();
i++) {
5992 double ccc1 = occhem->GetBinContent(
i);
5995 uyhem->Fill(
float(
i), ccc1);
5998 uyhem->SetMarkerStyle(20);
5999 uyhem->SetMarkerSize(0.6);
6000 uyhem->GetYaxis()->SetLabelSize(0.04);
6001 uyhem->SetXTitle(
"min/av occupancy - HEM \b");
6002 uyhem->SetMarkerColor(2);
6003 uyhem->SetLineColor(0);
6004 uyhem->SetMaximum(1.0);
6005 uyhem->SetMinimum(0.2);
6007 uyhem->Draw(
"Error");
6010 TH2F *occhep = (TH2F *)
dir->FindObjectAny(
"h_RatioOccupancy_HEP");
6011 TH1F *uyhep =
new TH1F(
"uyhep",
"", mymaxbins, 1., mymaxbins + 1.);
6012 for (
int i = 1;
i <= occhep->GetXaxis()->GetNbins();
i++) {
6013 double ccc1 = occhep->GetBinContent(
i);
6016 uyhep->Fill(
float(
i), ccc1);
6019 uyhep->SetMarkerStyle(20);
6020 uyhep->SetMarkerSize(0.6);
6021 uyhep->GetYaxis()->SetLabelSize(0.04);
6022 uyhep->SetXTitle(
"min/av occupancy - HEP \b");
6023 uyhep->SetMarkerColor(2);
6024 uyhep->SetLineColor(0);
6025 uyhep->SetMaximum(1.0);
6026 uyhep->SetMinimum(0.2);
6028 uyhep->Draw(
"Error");
6033 cHB->Print(Form(
"OccPlots_HE.png"));
6053 TH2F *occhom = (TH2F *)
dir->FindObjectAny(
"h_RatioOccupancy_HOM");
6054 TH1F *uyhom =
new TH1F(
"uyhom",
"", mymaxbins, 1., mymaxbins + 1.);
6055 for (
int i = 1;
i <= occhom->GetXaxis()->GetNbins();
i++) {
6056 double ccc1 = occhom->GetBinContent(
i);
6059 uyhom->Fill(
float(
i), ccc1);
6062 uyhom->SetMarkerStyle(20);
6063 uyhom->SetMarkerSize(0.6);
6064 uyhom->GetYaxis()->SetLabelSize(0.04);
6065 uyhom->SetXTitle(
"min/av occupancy - HOM \b");
6066 uyhom->SetMarkerColor(2);
6067 uyhom->SetLineColor(0);
6068 uyhom->SetMaximum(1.0);
6069 uyhom->SetMinimum(0.2);
6071 uyhom->Draw(
"Error");
6074 TH2F *occhop = (TH2F *)
dir->FindObjectAny(
"h_RatioOccupancy_HOP");
6075 TH1F *uyhop =
new TH1F(
"uyhop",
"", mymaxbins, 1., mymaxbins + 1.);
6076 for (
int i = 1;
i <= occhop->GetXaxis()->GetNbins();
i++) {
6077 double ccc1 = occhop->GetBinContent(
i);
6080 uyhop->Fill(
float(
i), ccc1);
6083 uyhop->SetMarkerStyle(20);
6084 uyhop->SetMarkerSize(0.6);
6085 uyhop->GetYaxis()->SetLabelSize(0.04);
6086 uyhop->SetXTitle(
"min/av occupancy - HOP \b");
6087 uyhop->SetMarkerColor(2);
6088 uyhop->SetLineColor(0);
6089 uyhop->SetMaximum(1.0);
6090 uyhop->SetMinimum(0.2);
6092 uyhop->Draw(
"Error");
6097 cHB->Print(Form(
"OccPlots_HO.png"));
6117 TH2F *occhfm = (TH2F *)
dir->FindObjectAny(
"h_RatioOccupancy_HFM");
6118 TH1F *uyhfm =
new TH1F(
"uyhfm",
"", mymaxbins, 1., mymaxbins + 1.);
6119 for (
int i = 1;
i <= occhfm->GetXaxis()->GetNbins();
i++) {
6120 double ccc1 = occhfm->GetBinContent(
i);
6123 uyhfm->Fill(
float(
i), ccc1);
6126 uyhfm->SetMarkerStyle(20);
6127 uyhfm->SetMarkerSize(0.6);
6128 uyhfm->GetYaxis()->SetLabelSize(0.04);
6129 uyhfm->SetXTitle(
"min/av occupancy - HFM \b");
6130 uyhfm->SetMarkerColor(2);
6131 uyhfm->SetLineColor(0);
6132 uyhfm->SetMaximum(1.0);
6133 uyhfm->SetMinimum(0.2);
6135 uyhfm->Draw(
"Error");
6138 TH2F *occhfp = (TH2F *)
dir->FindObjectAny(
"h_RatioOccupancy_HFP");
6139 TH1F *uyhfp =
new TH1F(
"uyhfp",
"", mymaxbins, 1., mymaxbins + 1.);
6140 for (
int i = 1;
i <= occhfp->GetXaxis()->GetNbins();
i++) {
6141 double ccc1 = occhfp->GetBinContent(
i);
6144 uyhfp->Fill(
float(
i), ccc1);
6147 uyhfp->SetMarkerStyle(20);
6148 uyhfp->SetMarkerSize(0.6);
6149 uyhfp->GetYaxis()->SetLabelSize(0.04);
6150 uyhfp->SetXTitle(
"min/av occupancy - HFP \b");
6151 uyhfp->SetMarkerColor(2);
6152 uyhfp->SetLineColor(0);
6153 uyhfp->SetMaximum(1.0);
6154 uyhfp->SetMinimum(0.2);
6156 uyhfp->Draw(
"Error");
6161 cHB->Print(Form(
"OccPlots_HF.png"));
6174 std::cout <<
"************>>> occupancy plots done" << std::endl;
6181 cout <<
">>>>>>>>>>>>>>>>>>>>>>>>start Summed Amplitude Plots " << endl;
6182 int maxbins = MaxLum;
6183 cout <<
">>>> maxbins = " << maxbins << endl;
6184 TH1F *SummedAmplitudeHisto[4];
6185 SummedAmplitudeHisto[0] = (TH1F *)
dir->FindObjectAny(
"h_averSIGNALsumamplitude_HB");
6186 SummedAmplitudeHisto[1] = (TH1F *)
dir->FindObjectAny(
"h_averSIGNALsumamplitude_HE");
6187 SummedAmplitudeHisto[2] = (TH1F *)
dir->FindObjectAny(
"h_averSIGNALsumamplitude_HO");
6188 SummedAmplitudeHisto[3] = (TH1F *)
dir->FindObjectAny(
"h_averSIGNALsumamplitude_HF");
6189 TH1F *SummedAmplitudeOccupancyHisto[4];
6190 SummedAmplitudeOccupancyHisto[0] = (TH1F *)
dir->FindObjectAny(
"h_averSIGNALoccupancy_HB");
6191 SummedAmplitudeOccupancyHisto[1] = (TH1F *)
dir->FindObjectAny(
"h_averSIGNALoccupancy_HE");
6192 SummedAmplitudeOccupancyHisto[2] = (TH1F *)
dir->FindObjectAny(
"h_averSIGNALoccupancy_HO");
6193 SummedAmplitudeOccupancyHisto[3] = (TH1F *)
dir->FindObjectAny(
"h_averSIGNALoccupancy_HF");
6194 for (
int sub = 0; sub < 4; sub++) {
6198 TH1F *kslpq =
new TH1F(
"kslpq",
"", maxbins, 1., maxbins + 1.);
6200 for (
int i = 1;
i <= kslpq->GetXaxis()->GetNbins();
i++) {
6202 if (SummedAmplitudeHisto[sub])
6203 ccc1 = SummedAmplitudeHisto[sub]->GetBinContent(
i);
6206 kslpq->Fill(
float(
i), ccc1);
6209 kslpq->SetMarkerStyle(20);
6210 kslpq->SetMarkerSize(0.8);
6211 kslpq->GetYaxis()->SetLabelSize(0.04);
6212 kslpq->SetXTitle(
"SumA of channels w/ signal per LS \b");
6213 kslpq->SetMarkerColor(2);
6214 kslpq->SetLineColor(0);
6217 kslpq->Draw(
"Error");
6220 TH1F *pqmks =
new TH1F(
"pqmks",
"", maxbins, 1., maxbins + 1.);
6221 for (
int i = 1;
i <= pqmks->GetXaxis()->GetNbins();
i++) {
6223 if (SummedAmplitudeOccupancyHisto[sub])
6224 ccc1 = SummedAmplitudeOccupancyHisto[sub]->GetBinContent(
i);
6227 pqmks->Fill(
float(
i), ccc1);
6230 pqmks->SetMarkerStyle(20);
6231 pqmks->SetMarkerSize(0.8);
6232 pqmks->GetYaxis()->SetLabelSize(0.04);
6233 pqmks->SetXTitle(
"Occupancy of channels w/ signal per LS \b");
6234 pqmks->SetMarkerColor(4);
6235 pqmks->SetLineColor(0);
6238 pqmks->Draw(
"Error");
6241 cHE->Print(
"SummedAmplitudesSignal_HB.png");
6243 cHE->Print(
"SummedAmplitudesSignal_HE.png");
6245 cHE->Print(
"SummedAmplitudesSignal_HO.png");
6247 cHE->Print(
"SummedAmplitudesSignal_HF.png");
6260 cout <<
">>>>>>>>>>>>>>>>>>>>>>>>start Summed Amplitude Plots NoSignal " << endl;
6261 TH1F *NoSignalSummedAmplitudeHisto[4];
6262 NoSignalSummedAmplitudeHisto[0] = (TH1F *)
dir->FindObjectAny(
"h_averNOSIGNALsumamplitude_HB");
6263 NoSignalSummedAmplitudeHisto[1] = (TH1F *)
dir->FindObjectAny(
"h_averNOSIGNALsumamplitude_HE");
6264 NoSignalSummedAmplitudeHisto[2] = (TH1F *)
dir->FindObjectAny(
"h_averNOSIGNALsumamplitude_HO");
6265 NoSignalSummedAmplitudeHisto[3] = (TH1F *)
dir->FindObjectAny(
"h_averNOSIGNALsumamplitude_HF");
6266 TH1F *NoSignalSummedAmplitudeOccupancyHisto[4];
6267 NoSignalSummedAmplitudeOccupancyHisto[0] = (TH1F *)
dir->FindObjectAny(
"h_averNOSIGNALoccupancy_HB");
6268 NoSignalSummedAmplitudeOccupancyHisto[1] = (TH1F *)
dir->FindObjectAny(
"h_averNOSIGNALoccupancy_HE");
6269 NoSignalSummedAmplitudeOccupancyHisto[2] = (TH1F *)
dir->FindObjectAny(
"h_averNOSIGNALoccupancy_HO");
6270 NoSignalSummedAmplitudeOccupancyHisto[3] = (TH1F *)
dir->FindObjectAny(
"h_averNOSIGNALoccupancy_HF");
6271 for (
int sub = 0; sub < 4; sub++) {
6276 TH1F *kslpq =
new TH1F(
"kslpq",
"", maxbins, 1., maxbins + 1.);
6277 for (
int i = 1;
i <= kslpq->GetXaxis()->GetNbins();
i++) {
6279 if (NoSignalSummedAmplitudeHisto[sub])
6280 ccc1 = NoSignalSummedAmplitudeHisto[sub]->GetBinContent(
i);
6283 kslpq->Fill(
float(
i), ccc1);
6286 kslpq->SetMarkerStyle(20);
6287 kslpq->SetMarkerSize(0.8);
6288 kslpq->GetYaxis()->SetLabelSize(0.04);
6289 kslpq->SetXTitle(
"SumA of channels w/o signal per LS \b");
6290 kslpq->SetMarkerColor(2);
6291 kslpq->SetLineColor(0);
6293 kslpq->SetMaximum(20000.);
6294 kslpq->SetMinimum(5000.);
6295 }
else if (sub == 1) {
6296 kslpq->SetMaximum(40000.);
6297 kslpq->SetMinimum(0.);
6298 }
else if (sub == 2) {
6299 kslpq->SetMaximum(10000.);
6300 kslpq->SetMinimum(15000.);
6301 }
else if (sub == 3) {
6302 kslpq->SetMaximum(100000.);
6303 kslpq->SetMinimum(0.);
6306 kslpq->Draw(
"Error");
6309 TH1F *pqmks =
new TH1F(
"pqmks",
"", maxbins, 1., maxbins + 1.);
6310 for (
int i = 1;
i <= pqmks->GetXaxis()->GetNbins();
i++) {
6312 if (NoSignalSummedAmplitudeOccupancyHisto[sub])
6313 ccc1 = NoSignalSummedAmplitudeOccupancyHisto[sub]->GetBinContent(
i);
6316 pqmks->Fill(
float(
i), ccc1);
6319 pqmks->SetMarkerStyle(20);
6320 pqmks->SetMarkerSize(0.8);
6321 pqmks->GetYaxis()->SetLabelSize(0.04);
6322 pqmks->SetXTitle(
"Occupancy of channels w/o signal per LS \b");
6323 pqmks->SetMarkerColor(4);
6324 pqmks->SetLineColor(0);
6326 pqmks->SetMaximum(600.);
6327 pqmks->SetMinimum(200.);
6328 }
else if (sub == 1) {
6329 pqmks->SetMaximum(910.);
6330 pqmks->SetMinimum(10.);
6331 }
else if (sub == 2) {
6332 pqmks->SetMaximum(200.);
6333 pqmks->SetMinimum(50.);
6334 }
else if (sub == 3) {
6335 pqmks->SetMaximum(866.);
6336 pqmks->SetMinimum(856.);
6339 pqmks->Draw(
"Error");
6342 cHE->Print(
"NoSignalSummedAmplitudes_HB.png");
6344 cHE->Print(
"NoSignalSummedAmplitudes_HE.png");
6346 cHE->Print(
"NoSignalSummedAmplitudes_HO.png");
6348 cHE->Print(
"NoSignalSummedAmplitudes_HF.png");
6362 cout <<
">>>>>>>>>>>>>>>>>>>>>>>>start Summed Amplitude Plots Maxx " << endl;
6363 TH1F *MaxxSummedAmplitudeHisto[4];
6364 MaxxSummedAmplitudeHisto[0] = (TH1F *)
dir->FindObjectAny(
"h_maxxSUMAmpl_HB");
6365 MaxxSummedAmplitudeHisto[1] = (TH1F *)
dir->FindObjectAny(
"h_maxxSUMAmpl_HE");
6366 MaxxSummedAmplitudeHisto[2] = (TH1F *)
dir->FindObjectAny(
"h_maxxSUMAmpl_HO");
6367 MaxxSummedAmplitudeHisto[3] = (TH1F *)
dir->FindObjectAny(
"h_maxxSUMAmpl_HF");
6368 TH1F *MaxxSummedAmplitudeOccupancyHisto[4];
6369 MaxxSummedAmplitudeOccupancyHisto[0] = (TH1F *)
dir->FindObjectAny(
"h_maxxOCCUP_HB");
6370 MaxxSummedAmplitudeOccupancyHisto[1] = (TH1F *)
dir->FindObjectAny(
"h_maxxOCCUP_HE");
6371 MaxxSummedAmplitudeOccupancyHisto[2] = (TH1F *)
dir->FindObjectAny(
"h_maxxOCCUP_HO");
6372 MaxxSummedAmplitudeOccupancyHisto[3] = (TH1F *)
dir->FindObjectAny(
"h_maxxOCCUP_HF");
6373 TH1F *SAmplitudeHisto[4];
6374 SAmplitudeHisto[0] = (TH1F *)
dir->FindObjectAny(
"h_eventamplitude_HB");
6375 SAmplitudeHisto[1] = (TH1F *)
dir->FindObjectAny(
"h_eventamplitude_HE");
6376 SAmplitudeHisto[2] = (TH1F *)
dir->FindObjectAny(
"h_eventamplitude_HO");
6377 SAmplitudeHisto[3] = (TH1F *)
dir->FindObjectAny(
"h_eventamplitude_HF");
6378 TH1F *OccupancyHisto[4];
6379 OccupancyHisto[0] = (TH1F *)
dir->FindObjectAny(
"h_eventoccupancy_HB");
6380 OccupancyHisto[1] = (TH1F *)
dir->FindObjectAny(
"h_eventoccupancy_HE");
6381 OccupancyHisto[2] = (TH1F *)
dir->FindObjectAny(
"h_eventoccupancy_HO");
6382 OccupancyHisto[3] = (TH1F *)
dir->FindObjectAny(
"h_eventoccupancy_HF");
6384 int countamplmaxHB = 0;
6385 int countamplmaxHE = 0;
6386 int countamplmaxHO = 0;
6387 int countamplmaxHF = 0;
6388 int countoccumaxHB = 0;
6389 int countoccumaxHE = 0;
6390 int countoccumaxHO = 0;
6391 int countoccumaxHF = 0;
6392 unsigned long int countamplHB = 0;
6393 unsigned long int countamplHE = 0;
6394 unsigned long int countamplHO = 0;
6395 unsigned long int countamplHF = 0;
6396 unsigned long int countoccuHB = 0;
6397 unsigned long int countoccuHE = 0;
6398 unsigned long int countoccuHO = 0;
6399 unsigned long int countoccuHF = 0;
6400 gStyle->SetOptStat(110000);
6401 for (
int sub = 0; sub < 4; sub++) {
6403 cFour->Divide(2, 2);
6406 TH1F *lpqxc =
new TH1F(
"lpqxc",
"", maxbins, 1., maxbins + 1.);
6407 for (
int i = 1;
i <= lpqxc->GetXaxis()->GetNbins();
i++) {
6409 if (MaxxSummedAmplitudeHisto[sub])
6410 ccc1 = MaxxSummedAmplitudeHisto[sub]->GetBinContent(
i);
6413 lpqxc->Fill(
float(
i), ccc1);
6414 if (sub == 0 && ccc1 > 60000.)
6416 if (sub == 1 && ccc1 > 60000.)
6418 if (sub == 2 && ccc1 > 150000.)
6420 if (sub == 3 && ccc1 > 22000.)
6424 lpqxc->SetMarkerStyle(20);
6425 lpqxc->SetMarkerSize(0.8);
6428 lpqxc->SetXTitle(
"HB: max SA over LS-events per LS \b");
6430 lpqxc->SetXTitle(
"HE: max SA over LS-events per LS \b");
6432 lpqxc->SetXTitle(
"HO: max SA over LS-events per LS \b");
6434 lpqxc->SetXTitle(
"HF: max SA over LS-events per LS \b");
6435 lpqxc->SetMarkerColor(2);
6436 lpqxc->SetLineColor(0);
6438 lpqxc->Draw(
"Error");
6442 TH1F *hpzlm =
new TH1F(
"hpzlm",
"", maxbins, 1., maxbins + 1.);
6443 for (
int i = 1;
i <= hpzlm->GetXaxis()->GetNbins();
i++) {
6445 if (MaxxSummedAmplitudeOccupancyHisto[sub])
6446 ccc1 = MaxxSummedAmplitudeOccupancyHisto[sub]->GetBinContent(
i);
6449 hpzlm->Fill(
float(
i), ccc1);
6450 if (sub == 0 && ccc1 > 2000.)
6452 if (sub == 1 && ccc1 > 1200.)
6454 if (sub == 2 && ccc1 > 2000.)
6456 if (sub == 3 && ccc1 > 860.)
6460 hpzlm->SetMarkerStyle(20);
6461 hpzlm->SetMarkerSize(0.8);
6464 hpzlm->SetXTitle(
"HB: max Occupancy over LS-events per LS \b");
6466 hpzlm->SetXTitle(
"HE: max Occupancy over LS-events per LS \b");
6468 hpzlm->SetXTitle(
"HO: max Occupancy over LS-events per LS \b");
6470 hpzlm->SetXTitle(
"HF: max Occupancy over LS-events per LS \b");
6471 hpzlm->SetMarkerColor(4);
6472 hpzlm->SetLineColor(0);
6475 hpzlm->SetMaximum(866.);
6476 hpzlm->SetMinimum(856.);
6478 hpzlm->Draw(
"Error");
6483 if (SAmplitudeHisto[sub]) {
6484 for (
int i = 1;
i <= SAmplitudeHisto[sub]->GetXaxis()->GetNbins();
i++) {
6489 if (sub == 0 &&
i * 800 > 60000.)
6490 countamplHB += SAmplitudeHisto[sub]->GetBinContent(
i);
6491 if (sub == 1 &&
i * 1000 > 60000.)
6492 countamplHE += SAmplitudeHisto[sub]->GetBinContent(
i);
6493 if (sub == 2 &&
i * 2500 > 150000.)
6494 countamplHO += SAmplitudeHisto[sub]->GetBinContent(
i);
6495 if (sub == 3 &&
i * 1400 > 22000.)
6496 countamplHF += SAmplitudeHisto[sub]->GetBinContent(
i);
6498 SAmplitudeHisto[sub]->SetMarkerStyle(20);
6499 SAmplitudeHisto[sub]->SetMarkerSize(0.8);
6501 SAmplitudeHisto[sub]->SetTitle(
"HB event Amplitude\b");
6503 SAmplitudeHisto[sub]->SetTitle(
"HE event Amplitude\b");
6505 SAmplitudeHisto[sub]->SetTitle(
"HO event Amplitude\b");
6507 SAmplitudeHisto[sub]->SetTitle(
"HF event Amplitude\b");
6509 SAmplitudeHisto[sub]->SetXTitle(
"event amplitude \b");
6510 SAmplitudeHisto[sub]->SetMarkerColor(2);
6511 SAmplitudeHisto[sub]->SetLineColor(2);
6512 SAmplitudeHisto[sub]->Draw(
"");
6517 if (OccupancyHisto[sub]) {
6518 for (
int i = 1;
i <= OccupancyHisto[sub]->GetXaxis()->GetNbins();
i++) {
6519 if (sub == 0 &&
i * 30 > 2000.)
6520 countoccuHB += OccupancyHisto[sub]->GetBinContent(
i);
6521 if (sub == 1 &&
i * 20 > 1200.)
6522 countoccuHE += OccupancyHisto[sub]->GetBinContent(
i);
6523 if (sub == 2 &&
i * 25 > 2000.)
6524 countoccuHO += OccupancyHisto[sub]->GetBinContent(
i);
6525 if (sub == 3 &&
i * 10 > 860.)
6526 countoccuHF += OccupancyHisto[sub]->GetBinContent(
i);
6528 OccupancyHisto[sub]->SetMarkerStyle(20);
6529 OccupancyHisto[sub]->SetMarkerSize(0.8);
6531 OccupancyHisto[sub]->SetTitle(
"HB event Occupancy\b");
6533 OccupancyHisto[sub]->SetTitle(
"HE event Occupancy\b");
6535 OccupancyHisto[sub]->SetTitle(
"HO event Occupancy\b");
6537 OccupancyHisto[sub]->SetTitle(
"HF event Occupancy\b");
6539 OccupancyHisto[sub]->SetXTitle(
"event occupancy \b");
6540 OccupancyHisto[sub]->SetMarkerColor(4);
6541 OccupancyHisto[sub]->SetLineColor(4);
6542 OccupancyHisto[sub]->Draw(
"");
6547 cFour->Print(
"MaxxSummedAmplitudes_HB.png");
6549 cFour->Print(
"MaxxSummedAmplitudes_HE.png");
6551 cFour->Print(
"MaxxSummedAmplitudes_HO.png");
6553 cFour->Print(
"MaxxSummedAmplitudes_HF.png");
6560 gStyle->SetOptStat(0);
6562 cout <<
">=>=>>=> countamplmaxHB= " << countamplmaxHB <<
" countamplmaxHE= " << countamplmaxHE
6563 <<
" countamplmaxHO= " << countamplmaxHO <<
" countamplmaxHF= " << countamplmaxHF << endl;
6564 cout <<
">=>=>>=> countoccumaxHB= " << countoccumaxHB <<
" countoccumaxHE= " << countoccumaxHE
6565 <<
" countoccumaxHO= " << countoccumaxHO <<
" countoccumaxHF= " << countoccumaxHF << endl;
6566 cout <<
">=>=>>=> countamplHB= " << countamplHB <<
" countamplHE= " << countamplHE <<
" countamplHO= " << countamplHO
6567 <<
" countamplHF= " << countamplHF << endl;
6568 cout <<
">=>=>>=> countoccuHB= " << countoccuHB <<
" countoccuHE= " << countoccuHE <<
" countoccuHO= " << countoccuHO
6569 <<
" countoccuHF= " << countoccuHF << endl;
6574 cout <<
">>>>>>>>>>>>>>>>>>>>>>>>channelsummedA over depths " << endl;
6575 TH1F *ChannelDepthsummedAmplitudesPlots[4];
6576 ChannelDepthsummedAmplitudesPlots[0] = (TH1F *)
dir->FindObjectAny(
"h_sumamplitudechannel_HB");
6577 ChannelDepthsummedAmplitudesPlots[1] = (TH1F *)
dir->FindObjectAny(
"h_sumamplitudechannel_HE");
6578 ChannelDepthsummedAmplitudesPlots[2] = (TH1F *)
dir->FindObjectAny(
"h_sumamplitudechannel_HO");
6579 ChannelDepthsummedAmplitudesPlots[3] = (TH1F *)
dir->FindObjectAny(
"h_sumamplitudechannel_HF");
6581 if (ChannelDepthsummedAmplitudesPlots[0])
6582 litebdt[0] =
new TLine(80., 0.8, 80., ChannelDepthsummedAmplitudesPlots[0]->GetBinContent(4) + 100.);
6583 if (ChannelDepthsummedAmplitudesPlots[1])
6584 litebdt[1] =
new TLine(200., 0.8, 200., ChannelDepthsummedAmplitudesPlots[1]->GetBinContent(7) + 100.);
6585 if (ChannelDepthsummedAmplitudesPlots[2])
6586 litebdt[2] =
new TLine(1200., 0.8, 1200., ChannelDepthsummedAmplitudesPlots[2]->GetBinContent(17) + 100.);
6587 if (ChannelDepthsummedAmplitudesPlots[3])
6588 litebdt[3] =
new TLine(600., 0.8, 600., ChannelDepthsummedAmplitudesPlots[3]->GetBinContent(6) + 100.);
6590 gStyle->SetOptStat(110000);
6592 cFour1->Divide(2, 2);
6593 for (
int sub = 0; sub < 4; sub++) {
6603 ChannelDepthsummedAmplitudesPlots[sub]->SetMarkerStyle(20);
6604 ChannelDepthsummedAmplitudesPlots[sub]->SetMarkerSize(0.8);
6606 ChannelDepthsummedAmplitudesPlots[sub]->SetTitle(
"HB channel Amplitudes\b");
6608 ChannelDepthsummedAmplitudesPlots[sub]->SetTitle(
"HE channel Amplitudes\b");
6610 ChannelDepthsummedAmplitudesPlots[sub]->SetTitle(
"HO channel Amplitudes\b");
6612 ChannelDepthsummedAmplitudesPlots[sub]->SetTitle(
"HF channel Amplitudes\b");
6614 ChannelDepthsummedAmplitudesPlots[sub]->SetXTitle(
"HB channel depths summed Amplitudes \b");
6616 ChannelDepthsummedAmplitudesPlots[sub]->SetXTitle(
"HE channel depths summed Amplitudes \b");
6618 ChannelDepthsummedAmplitudesPlots[sub]->SetXTitle(
"HO channel depths summed Amplitudes \b");
6620 ChannelDepthsummedAmplitudesPlots[sub]->SetXTitle(
"HF channel depths summed Amplitudes \b");
6621 ChannelDepthsummedAmplitudesPlots[sub]->SetMarkerColor(2);
6622 ChannelDepthsummedAmplitudesPlots[sub]->SetLineColor(2);
6623 ChannelDepthsummedAmplitudesPlots[sub]->Draw(
"");
6624 litebdt[sub]->SetLineColor(kBlue);
6625 litebdt[sub]->Draw(
"s");
6628 cFour1->Print(
"ChannelDepthsummedAmplitudes.png");
6630 gStyle->SetOptStat(0);
6635 cout <<
">>>>>>>>>>>>>>>>>>>>>>>>2DAtaildepth " << endl;
6640 TH2F *DAtaildepth1[2];
6641 DAtaildepth1[0] = (TH2F *)
dir->FindObjectAny(
"h_2DAtaildepth1_HB");
6642 DAtaildepth1[1] = (TH2F *)
dir->FindObjectAny(
"h_2D0Ataildepth1_HB");
6644 if (!DAtaildepth1[0] || !DAtaildepth1[1]) {
6645 cout <<
">>>>>>>>>>>>>>>>>>>>>>>>Ataildepth1_HB EMPTY histoes for 2DAtaildepth 1" << endl;
6647 TH2F *tail1 = (TH2F *)DAtaildepth1[0]->Clone(
"tail1");
6648 tail1->Divide(DAtaildepth1[0], DAtaildepth1[1], 1, 1,
"B");
6653 tail1->SetMarkerStyle(20);
6654 tail1->SetMarkerSize(0.4);
6655 tail1->SetTitle(
"Amplitudes for tail-events (HBdepth1) \b");
6656 tail1->SetXTitle(
"#eta \b");
6657 tail1->SetYTitle(
"#phi \b");
6658 tail1->SetZTitle(
"2D <A> in the tail - HB Depth1 \b");
6659 tail1->SetMarkerColor(2);
6660 tail1->SetLineColor(2);
6661 tail1->Draw(
"COLZ");
6663 TH2F *DAtaildepth2[2];
6664 DAtaildepth2[0] = (TH2F *)
dir->FindObjectAny(
"h_2DAtaildepth2_HB");
6665 DAtaildepth2[1] = (TH2F *)
dir->FindObjectAny(
"h_2D0Ataildepth2_HB");
6667 if (!DAtaildepth2[0] || !DAtaildepth2[1]) {
6668 cout <<
">>>>>>>>>>>>>>>>>>>>>>>>Ataildepth1_HB EMPTY histoes for 2DAtaildepth 2" << endl;
6670 TH2F *tail2 = (TH2F *)DAtaildepth2[0]->Clone(
"tail2");
6671 tail2->Divide(DAtaildepth2[0], DAtaildepth2[1], 1, 1,
"B");
6676 tail2->SetMarkerStyle(20);
6677 tail2->SetMarkerSize(0.4);
6678 tail2->SetTitle(
"Amplitudes for tail-events (HBdepth2) \b");
6679 tail2->SetXTitle(
"#eta \b");
6680 tail2->SetYTitle(
"#phi \b");
6681 tail2->SetZTitle(
"2D <A> in the tail - HB Depth2 \b");
6682 tail2->SetMarkerColor(2);
6683 tail2->SetLineColor(2);
6684 tail2->Draw(
"COLZ");
6688 cHB->Print(
"AtaildepthHB.png");
6694 cout <<
">>>>>>>>>>>>>>>>>>>>>>>>sumOccupancyHF " << endl;
6699 if (SummedAmplitudeOccupancyHisto[3]) {
6700 TH1F *ufrew1 = (TH1F *)SummedAmplitudeOccupancyHisto[3]->Clone(
"ufrew1");
6701 if (SummedAmplitudeOccupancyHisto[3] && NoSignalSummedAmplitudeOccupancyHisto[3])
6702 ufrew1->Add(SummedAmplitudeOccupancyHisto[3], NoSignalSummedAmplitudeOccupancyHisto[3], 1, 1);
6703 ufrew1->GetXaxis()->SetRangeUser(1., maxbins + 1.);
6705 ufrew1->SetMarkerStyle(20);
6706 ufrew1->SetMarkerSize(0.8);
6707 ufrew1->GetYaxis()->SetLabelSize(0.04);
6708 ufrew1->SetTitle(
"HF Occupancy vs LS\b");
6709 ufrew1->SetXTitle(
"average occupancy per LS HF\b");
6710 ufrew1->SetMarkerColor(4);
6711 ufrew1->SetLineColor(0);
6712 ufrew1->SetMaximum(866.);
6713 ufrew1->SetMinimum(856.);
6714 ufrew1->Draw(
"Error");
6716 cHB->Print(
"sumOccupancyHF.png");
6730 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> =====================================================================" << endl;
6733 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> ==================================================" << endl;
6736 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> =================================" << endl;
6737 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> =================================" << endl;
6738 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> =================================" << endl;
6739 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> =================================" << endl;
6741 cout <<
">>>>>>> START NOW CREATING OF HTML PAGES <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<" << endl;
6748 for (
int sub = 1; sub <= 4; sub++) {
6753 htmlFile.open(
"HB_CapID.html");
6756 htmlFile.open(
"HE_CapID.html");
6759 htmlFile.open(
"HO_CapID.html");
6762 htmlFile.open(
"HF_CapID.html");
6767 htmlFile.open(
"HB_ADCampl.html");
6770 htmlFile.open(
"HE_ADCampl.html");
6773 htmlFile.open(
"HO_ADCampl.html");
6776 htmlFile.open(
"HF_ADCampl.html");
6781 htmlFile.open(
"HB_Width.html");
6784 htmlFile.open(
"HE_Width.html");
6787 htmlFile.open(
"HO_Width.html");
6790 htmlFile.open(
"HF_Width.html");
6795 htmlFile.open(
"HB_Ratio.html");
6798 htmlFile.open(
"HE_Ratio.html");
6801 htmlFile.open(
"HO_Ratio.html");
6804 htmlFile.open(
"HF_Ratio.html");
6809 htmlFile.open(
"HB_Tmean.html");
6812 htmlFile.open(
"HE_Tmean.html");
6815 htmlFile.open(
"HO_Tmean.html");
6818 htmlFile.open(
"HF_Tmean.html");
6823 htmlFile.open(
"HB_Tmax.html");
6826 htmlFile.open(
"HE_Tmax.html");
6829 htmlFile.open(
"HO_Tmax.html");
6832 htmlFile.open(
"HF_Tmax.html");
6836 htmlFile <<
"</html><html xmlns=\"http://www.w3.org/1999/xhtml\">" << std::endl;
6837 htmlFile <<
"<head>" << std::endl;
6838 htmlFile <<
"<meta http-equiv=\"Content-Type\" content=\"text/html\"/>" << std::endl;
6839 htmlFile <<
"<title> Certification Monitoring Tool </title>" << std::endl;
6840 htmlFile <<
"<style type=\"text/css\">" << std::endl;
6841 htmlFile <<
" body,td{ background-color: #FFFFCC; font-family: arial, arial ce, helvetica; font-size: 12px; }" 6843 htmlFile <<
" td.s0 { font-family: arial, arial ce, helvetica; }" << std::endl;
6844 htmlFile <<
" td.s1 { font-family: arial, arial ce, helvetica; font-weight: bold; background-color: #FFC169; " 6845 "text-align: center;}" 6847 htmlFile <<
" td.s2 { font-family: arial, arial ce, helvetica; background-color: #eeeeee; }" << std::endl;
6848 htmlFile <<
" td.s3 { font-family: arial, arial ce, helvetica; background-color: #d0d0d0; }" << std::endl;
6849 htmlFile <<
" td.s4 { font-family: arial, arial ce, helvetica; background-color: #FFC169; }" << std::endl;
6850 htmlFile <<
" td.s5 { font-family: arial, arial ce, helvetica; background-color: #00FF00; }" << std::endl;
6851 htmlFile <<
" td.s6 { font-family: arial, arial ce, helvetica; background-color: #FF0000; }" << std::endl;
6852 htmlFile <<
"</style>" << std::endl;
6853 htmlFile <<
"<body>" << std::endl;
6857 htmlFile <<
"<h1> Cap ID estimator for HB, RUN = " <<
runnumber <<
" </h1>" << std::endl;
6859 htmlFile <<
"<h1> Cap ID estimator for HE, RUN = " <<
runnumber <<
" </h1>" << std::endl;
6861 htmlFile <<
"<h1> Cap ID estimator for HO, RUN = " <<
runnumber <<
" </h1>" << std::endl;
6863 htmlFile <<
"<h1> Cap ID estimator for HF, RUN = " <<
runnumber <<
" </h1>" << std::endl;
6867 htmlFile <<
"<h1> Mean ADC Amplitude estimator for HB, RUN = " <<
runnumber <<
" </h1>" << std::endl;
6869 htmlFile <<
"<h1> Mean ADC Amplitude estimator for HE, RUN = " <<
runnumber <<
" </h1>" << std::endl;
6871 htmlFile <<
"<h1> Mean ADC Amplitude estimator for HO, RUN = " <<
runnumber <<
" </h1>" << std::endl;
6873 htmlFile <<
"<h1> Mean ADC Amplitude estimator for HF, RUN = " <<
runnumber <<
" </h1>" << std::endl;
6877 htmlFile <<
"<h1> Width estimator for HB, RUN = " <<
runnumber <<
" </h1>" << std::endl;
6879 htmlFile <<
"<h1> Width estimator for HE, RUN = " <<
runnumber <<
" </h1>" << std::endl;
6881 htmlFile <<
"<h1> Width estimator for HO, RUN = " <<
runnumber <<
" </h1>" << std::endl;
6883 htmlFile <<
"<h1> Width estimator for HF, RUN = " <<
runnumber <<
" </h1>" << std::endl;
6887 htmlFile <<
"<h1> Ratio estimator for HB, RUN = " <<
runnumber <<
" </h1>" << std::endl;
6889 htmlFile <<
"<h1> Ratio estimator for HE, RUN = " <<
runnumber <<
" </h1>" << std::endl;
6891 htmlFile <<
"<h1> Ratio estimator for HO, RUN = " <<
runnumber <<
" </h1>" << std::endl;
6893 htmlFile <<
"<h1> Ratio estimator for HF, RUN = " <<
runnumber <<
" </h1>" << std::endl;
6897 htmlFile <<
"<h1> Mean bin timing estimator for HB, RUN = " <<
runnumber <<
" </h1>" << std::endl;
6899 htmlFile <<
"<h1> Mean bin timing estimator for HE, RUN = " <<
runnumber <<
" </h1>" << std::endl;
6901 htmlFile <<
"<h1> Mean bin timing estimator for HO, RUN = " <<
runnumber <<
" </h1>" << std::endl;
6903 htmlFile <<
"<h1> Mean bin timing estimator for HF, RUN = " <<
runnumber <<
" </h1>" << std::endl;
6907 htmlFile <<
"<h1> Maximum bin timing estimator for HB, RUN = " <<
runnumber <<
" </h1>" << std::endl;
6909 htmlFile <<
"<h1> Maximum bin timing estimator for HE, RUN = " <<
runnumber <<
" </h1>" << std::endl;
6911 htmlFile <<
"<h1> Maximum bin timing estimator for HO, RUN = " <<
runnumber <<
" </h1>" << std::endl;
6913 htmlFile <<
"<h1> Maximum bin timing estimator for HF, RUN = " <<
runnumber <<
" </h1>" << std::endl;
6917 htmlFile <<
"<a name=\"Top\"></a>\n";
6918 htmlFile <<
"<b>Contents:<br>\n";
6919 htmlFile <<
"1. <a href=\"#Aij\">A_ij_LS (averaged over events in LS) </a><br>\n";
6920 htmlFile <<
"2. <a href=\"#OverflowAij\">A_ij_LS in overflow & underflow</a><br>\n";
6921 htmlFile <<
"3. <a href=\"#MainEstimator\">Main Estimator !!! </a><br>\n";
6922 htmlFile <<
"4. <a href=\"#ErrorA\">Error type A </a><br>\n";
6923 htmlFile <<
"5. <a href=\"#ErrorAaverage\">ErrorA cross check</a><br>\n";
6924 htmlFile <<
"6. <a href=\"#ErrorAoccupancy\">ErrorA occupancy plots</a><br>\n";
6925 htmlFile <<
"7. <a href=\"#ErrorB\">Error type B</a><br>\n";
6926 htmlFile <<
"8. <a href=\"#LSstatus\">Table of Average channel-Amplitude in Depthes over LSs </a><br>\n";
6927 htmlFile <<
"9. <a href=\"#RBXstatus\">RBX Status </a><br>\n";
6928 htmlFile <<
"10. <a href=\"#RBXPHItable\">Table of Average RBX-Amplitude in Phi over LSs </a><br>\n";
6929 htmlFile <<
"11. <a href=\"#RBXETAtable\">Table of Average RBX-Amplitude in Eta over LSs </a><br>\n";
6930 htmlFile <<
"12. <a href=\"#RBX3plots\">RBX A-Ratio to 1st LS: 3 plots </a><br>\n";
6936 htmlFile <<
"<br>" << std::endl;
6938 htmlFile <<
"<h2> 0. Rate of CapID failures over all events of Run </h2>" << std::endl;
6939 htmlFile <<
"<h3> Channel legend: green - good, other colour - suspicious </h3>" << std::endl;
6941 htmlFile <<
" <img src=\"MapCapIdErrorHB.png\" />" << std::endl;
6943 htmlFile <<
" <img src=\"MapCapIdErrorHE.png\" />" << std::endl;
6945 htmlFile <<
" <img src=\"MapCapIdErrorHO.png\" />" << std::endl;
6947 htmlFile <<
" <img src=\"MapCapIdErrorHF.png\" />" << std::endl;
6950 htmlFile <<
"<a name=\"Aij\"></a>\n";
6952 htmlFile <<
"<h2> 1. Distribution of estimator averaged over events in LS, histogramed over all channels and " 6953 "all LSs (only few depthes shown as example) </h2>" 6957 htmlFile <<
"<h2> 1. Average Nbcs for only LS containing events with abnormal number of Bad channels >" 6958 << CutAb[sub][1] <<
" (Depth1), " << CutAb[sub][2] <<
" (Depth2).</h2>" << std::endl;
6960 htmlFile <<
"<h2> 1. Average Nbcs for only LS containing events with abnormal number of Bad channels >" 6961 << CutAb[sub][1] <<
" (Depth1), " << CutAb[sub][2] <<
" (Depth2), " << CutAb[sub][3]
6962 <<
" (Depth3).</h2>" << std::endl;
6964 htmlFile <<
"<h2> 1. Average Nbcs for only LS containing events with abnormal number of Bad channels >" 6965 << CutAb[sub][1] <<
" (Depth4).</h2>" << std::endl;
6967 htmlFile <<
"<h2> 1. Average Nbcs for only LS containing events with abnormal number of Bad channels >" 6968 << CutAb[sub][1] <<
" (Depth1), " << CutAb[sub][2] <<
" (Depth2).</h2>" << std::endl;
6972 htmlFile <<
"<h3> see Overflow and Underflow </h3>" << std::endl;
6974 htmlFile <<
"<h3> Legend: dots correspond to BAD LS candidates.</h3>" << std::endl;
6978 htmlFile <<
" <img src=\"Hist_CAPID_Abnorm_HB.png\" />" << std::endl;
6980 htmlFile <<
" <img src=\"Hist_CAPID_Abnorm_HE.png\" />" << std::endl;
6982 htmlFile <<
" <img src=\"Hist_CAPID_Abnorm_HO.png\" />" << std::endl;
6984 htmlFile <<
" <img src=\"Hist_CAPID_Abnorm_HF.png\" />" << std::endl;
6988 htmlFile <<
" <img src=\"H_ADCamplHB.png\" />" << std::endl;
6990 htmlFile <<
" <img src=\"H_ADCamplHE.png\" />" << std::endl;
6992 htmlFile <<
" <img src=\"H_ADCamplHO.png\" />" << std::endl;
6994 htmlFile <<
" <img src=\"H_ADCamplHF.png\" />" << std::endl;
6998 htmlFile <<
" <img src=\"H_WidthHB.png\" />" << std::endl;
7000 htmlFile <<
" <img src=\"H_WidthHE.png\" />" << std::endl;
7002 htmlFile <<
" <img src=\"H_WidthHO.png\" />" << std::endl;
7004 htmlFile <<
" <img src=\"H_WidthHF.png\" />" << std::endl;
7008 htmlFile <<
" <img src=\"H_RatioHB.png\" />" << std::endl;
7010 htmlFile <<
" <img src=\"H_RatioHE.png\" />" << std::endl;
7012 htmlFile <<
" <img src=\"H_RatioHO.png\" />" << std::endl;
7014 htmlFile <<
" <img src=\"H_RatioHF.png\" />" << std::endl;
7018 htmlFile <<
" <img src=\"H_TmeanHB.png\" />" << std::endl;
7020 htmlFile <<
" <img src=\"H_TmeanHE.png\" />" << std::endl;
7022 htmlFile <<
" <img src=\"H_TmeanHO.png\" />" << std::endl;
7024 htmlFile <<
" <img src=\"H_TmeanHF.png\" />" << std::endl;
7028 htmlFile <<
" <img src=\"H_TmaxHB.png\" />" << std::endl;
7030 htmlFile <<
" <img src=\"H_TmaxHE.png\" />" << std::endl;
7032 htmlFile <<
" <img src=\"H_TmaxHO.png\" />" << std::endl;
7034 htmlFile <<
" <img src=\"H_TmaxHF.png\" />" << std::endl;
7036 htmlFile <<
"<br>" << std::endl;
7038 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7041 htmlFile <<
"<h2> 2a. Number of bad channels per event distribution in Run</h2>" << std::endl;
7043 htmlFile <<
"<h3> Legends: dots correspond to BAD LS candidates. </h3>" << std::endl;
7046 htmlFile <<
" <img src=\"HistNBadChsHB.png\" />" << std::endl;
7048 htmlFile <<
" <img src=\"HistNBadChsHE.png\" />" << std::endl;
7050 htmlFile <<
" <img src=\"HistNBadChsHO.png\" />" << std::endl;
7052 htmlFile <<
" <img src=\"HistNBadChsHF.png\" />" << std::endl;
7056 htmlFile <<
"<a name=\"OverflowAij\"></a>\n";
7058 htmlFile <<
"<h2> 2. Estimator averaged over all events in the RUN for entries in overflow and underflow of " 7059 "corresponding histogram above (only few depthes shown as example) </h2>" 7063 htmlFile <<
"<h2> 2b. Averaged number of bad channels for each LS </h2>" << std::endl;
7067 htmlFile <<
"<h3> Legends: dots selected with following cuts: <td class=\"s6\" align=\"center\">" 7068 << Cut0[
test][sub][1] <<
" (Depth1), " << Cut0[
test][sub][2]
7069 <<
" (Depth2) correspond BAD LS.</td></h3>" << std::endl;
7071 htmlFile <<
"<h3> Legends: dots selected with following cuts: " << Cut0[
test][sub][1] <<
" (Depth1), " 7072 << Cut0[
test][sub][2] <<
" (Depth2), " << Cut0[
test][sub][3] <<
" (Depth3) correspond BAD LS.</h3>" 7075 htmlFile <<
"<h3> Legends: dots selected with following cuts: " << Cut0[
test][sub][4]
7076 <<
" (Depth4) correspond BAD LS.</h3>" << std::endl;
7078 htmlFile <<
"<h3> Legends: dots selected with following cuts: " << Cut0[
test][sub][1] <<
" (Depth1), " 7079 << Cut0[
test][sub][2] <<
" (Depth2) correspond BAD LS.</h3>" << std::endl;
7083 htmlFile <<
" <img src=\"HistNBCMNHB.png\" />" << std::endl;
7085 htmlFile <<
" <img src=\"HistNBCMNHE.png\" />" << std::endl;
7087 htmlFile <<
" <img src=\"HistNBCMNHO.png\" />" << std::endl;
7089 htmlFile <<
" <img src=\"HistNBCMNHF.png\" />" << std::endl;
7093 htmlFile <<
" <img src=\"MapADCamplHB.png\" />" << std::endl;
7095 htmlFile <<
" <img src=\"MapADCamplHE.png\" />" << std::endl;
7097 htmlFile <<
" <img src=\"MapADCamplHO.png\" />" << std::endl;
7099 htmlFile <<
" <img src=\"MapADCamplHF.png\" />" << std::endl;
7103 htmlFile <<
" <img src=\"MapWidthHB.png\" />" << std::endl;
7105 htmlFile <<
" <img src=\"MapWidthHE.png\" />" << std::endl;
7107 htmlFile <<
" <img src=\"MapWidthHO.png\" />" << std::endl;
7109 htmlFile <<
" <img src=\"MapWidthHF.png\" />" << std::endl;
7113 htmlFile <<
" <img src=\"MapRatioHB.png\" />" << std::endl;
7115 htmlFile <<
" <img src=\"MapRatioHE.png\" />" << std::endl;
7117 htmlFile <<
" <img src=\"MapRatioHO.png\" />" << std::endl;
7119 htmlFile <<
" <img src=\"MapRatioHF.png\" />" << std::endl;
7123 htmlFile <<
" <img src=\"MapTmeanHB.png\" />" << std::endl;
7125 htmlFile <<
" <img src=\"MapTmeanHE.png\" />" << std::endl;
7127 htmlFile <<
" <img src=\"MapTmeanHO.png\" />" << std::endl;
7129 htmlFile <<
" <img src=\"MapTmeanHF.png\" />" << std::endl;
7133 htmlFile <<
" <img src=\"MapTmaxHB.png\" />" << std::endl;
7135 htmlFile <<
" <img src=\"MapTmaxHE.png\" />" << std::endl;
7137 htmlFile <<
" <img src=\"MapTmaxHO.png\" />" << std::endl;
7139 htmlFile <<
" <img src=\"MapTmaxHF.png\" />" << std::endl;
7141 htmlFile <<
"<br>" << std::endl;
7143 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7146 htmlFile <<
"<a name=\"MainEstimator\"></a>\n";
7149 <<
"<h2> 3. Distribution of estimator averaged over events in LS and over all channels for each LS </h2>" 7153 htmlFile <<
"<h2> 3. Portion of events with Nbcs>" << CutPo[sub][1] <<
" (Depth1), " << CutPo[sub][2]
7154 <<
" (Depth2) in each LS.</h2>" << std::endl;
7156 htmlFile <<
"<h2> 3. Portion of events with Nbcs>" << CutPo[sub][1] <<
" (Depth1), " << CutPo[sub][2]
7157 <<
" (Depth2), " << CutPo[sub][3] <<
" (Depth3) in each LS.</h2>" << std::endl;
7159 htmlFile <<
"<h2> 3. Portion of events with Nbcs>" << CutPo[sub][4] <<
" (Depth4) in each LS.</h2>" 7162 htmlFile <<
"<h2> 3. Portion of events with Nbcs>" << CutPo[sub][1] <<
" (Depth1), " << CutPo[sub][2]
7163 <<
" (Depth2) in each LS.</h2>" << std::endl;
7164 htmlFile <<
"<h3> Legend: dots correspond to BAD LS candidates.</h3>" << std::endl;
7168 htmlFile <<
"<h3> Legends: dots selected with following cuts: <td class=\"s6\" align=\"center\">" 7169 << Cut0[
test][sub][1] <<
" (Depth1), " << Cut0[
test][sub][2]
7170 <<
" (Depth2) correspond BAD LS.</td></h3>" << std::endl;
7172 htmlFile <<
"<h3> Legends: dots selected with following cuts: " << Cut0[
test][sub][1] <<
" (Depth1), " 7173 << Cut0[
test][sub][2] <<
" (Depth2), " << Cut0[
test][sub][3] <<
" (Depth3), " << Cut0[
test][sub][4]
7174 <<
" (Depth4), " << Cut0[
test][sub][5] <<
" (Depth5), " << Cut0[
test][sub][6] <<
" (Depth6), " 7175 << Cut0[
test][sub][7] <<
" (Depth7) correspond BAD LS. </h3>" << std::endl;
7177 htmlFile <<
"<h3> Legends: dots selected with following cuts: " << Cut0[
test][sub][4]
7178 <<
" (Depth4) correspond BAD LS. </h3>" << std::endl;
7180 htmlFile <<
"<h3> Legends: dots selected with following cuts: " << Cut0[
test][sub][1] <<
" (Depth1), " 7181 << Cut0[
test][sub][2] <<
" (Depth2), " << Cut0[
test][sub][3] <<
" (Depth3), " << Cut0[
test][sub][4]
7182 <<
" (Depth4) correspond BAD LS. </h3>" << std::endl;
7186 htmlFile <<
" <img src=\"HistPortHB.png\" />" << std::endl;
7188 htmlFile <<
" <img src=\"HistPortHE.png\" />" << std::endl;
7190 htmlFile <<
" <img src=\"HistPortHO.png\" />" << std::endl;
7192 htmlFile <<
" <img src=\"HistPortHF.png\" />" << std::endl;
7196 htmlFile <<
" <img src=\"HistADCamplHB.png\" />" << std::endl;
7198 htmlFile <<
" <img src=\"HistADCamplHE.png\" />" << std::endl;
7200 htmlFile <<
" <img src=\"HistADCamplHO.png\" />" << std::endl;
7202 htmlFile <<
" <img src=\"HistADCamplHF.png\" />" << std::endl;
7206 htmlFile <<
" <img src=\"HistWidthHB.png\" />" << std::endl;
7208 htmlFile <<
" <img src=\"HistWidthHE.png\" />" << std::endl;
7210 htmlFile <<
" <img src=\"HistWidthHO.png\" />" << std::endl;
7212 htmlFile <<
" <img src=\"HistWidthHF.png\" />" << std::endl;
7216 htmlFile <<
" <img src=\"HistRatioHB.png\" />" << std::endl;
7218 htmlFile <<
" <img src=\"HistRatioHE.png\" />" << std::endl;
7220 htmlFile <<
" <img src=\"HistRatioHO.png\" />" << std::endl;
7222 htmlFile <<
" <img src=\"HistRatioHF.png\" />" << std::endl;
7226 htmlFile <<
" <img src=\"HistTmeanHB.png\" />" << std::endl;
7228 htmlFile <<
" <img src=\"HistTmeanHE.png\" />" << std::endl;
7230 htmlFile <<
" <img src=\"HistTmeanHO.png\" />" << std::endl;
7232 htmlFile <<
" <img src=\"HistTmeanHF.png\" />" << std::endl;
7236 htmlFile <<
" <img src=\"HistTmaxHB.png\" />" << std::endl;
7238 htmlFile <<
" <img src=\"HistTmaxHE.png\" />" << std::endl;
7240 htmlFile <<
" <img src=\"HistTmaxHO.png\" />" << std::endl;
7242 htmlFile <<
" <img src=\"HistTmaxHF.png\" />" << std::endl;
7244 htmlFile <<
"<br>" << std::endl;
7247 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7248 htmlFile <<
"<a name=\"ErrorA\"></a>\n";
7249 htmlFile <<
"<h2> 4. Error type A</h2>\n";
7250 htmlFile <<
"<h3> note: no sence to see plots of this item if max difference is too large(due to very high A " 7251 "of some channels)</h3>\n";
7252 htmlFile <<
"<br>\n";
7256 htmlFile <<
"<h3>Mean of max difference between dependencies to be within: 0.1-1.6 (p-p collisions) </h3>\n";
7257 htmlFile <<
" <img src=\"HistErrA_HB.png\" />\n";
7258 htmlFile <<
"<br>\n";
7259 if (flagErrAB_HB[0] == -1)
7260 htmlFile <<
"<h3>test was not possible</h3>\n";
7261 else if (flagErrAB_HB[0] == 0)
7262 htmlFile <<
"<h3> Fine:NoErrorA_HB (Mean of max difference " << avedelta_HB
7263 <<
" is within 0.1-1.6) </h3>\n";
7264 else if (flagErrAB_HB[0] == 1)
7265 htmlFile <<
"<<h3> ErrorA_HB is available once Mean of max difference " << avedelta_HB
7266 <<
" is out 0.1-1.6 (p-p collisions)</font></h3>\n";
7268 htmlFile <<
"<h3>auto-interpretation is not available</h3>\n";
7269 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7271 htmlFile <<
"<a name=\"ErrorAaverage\"></a>\n";
7273 htmlFile <<
"<h2> 5. Error type A cross check: see 2D pattern of channels (only 2 depthes shown as example) " 7275 htmlFile <<
"<h2> 1) with average channel Amplitudes(No cut), 2) with average channel Amplitudes(<A> >25), " 7276 "3) with channel Amplitude (A<35); </h2>\n";
7277 htmlFile <<
" <img src=\"ChkErrA_HB1.png\" /><br><br>\n";
7278 htmlFile <<
" <img src=\"ChkErrA_HB2.png\" /><br>\n";
7279 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7281 htmlFile <<
"<a name=\"ErrorAoccupancy\"></a>\n";
7282 htmlFile <<
"<h2> 6. Error type A: min/ave ratio for occupancy distributions with Amplitude bigger 25 " 7283 "(HBM:neg.eta;HBP:pos.eta) </h2>\n";
7284 htmlFile <<
"<h2> FOR CROSS-CHECK OLNY !!!</h2>\n";
7285 htmlFile <<
"<h2> TO IDENTIFY A-type errors: for most of LSs the ratio to be lower 0.6 at least for HF- or " 7287 htmlFile <<
"<h2> For runs without A-type errors: for most of LSs the ratio is higher 0.6 and is the same " 7288 "for HF- and HF+ </h2>\n";
7289 htmlFile <<
" <img src=\"OccPlots_HB.png\" /><br><br>\n";
7290 htmlFile <<
"<br>\n";
7291 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7293 htmlFile <<
"<a name=\"ErrorB\"></a>\n";
7294 htmlFile <<
"<h2> 7. Error type B (only 2 depthes shown as example) \n";
7295 htmlFile <<
"<h3> ErrorB identification: digi-collection size != 8.</h3>\n";
7296 htmlFile <<
" <img src=\"HistErrB_HB_1.png\" />\n<br>\n";
7297 htmlFile <<
" <img src=\"HistErrB_HB_2.png\" />\n<br>\n";
7298 htmlFile <<
"<br>\n";
7299 htmlFile <<
"<h3> if Error type B is available, it start from: " << LSofFirstErrB_HB <<
" LS </h3>\n";
7300 htmlFile <<
"<br>\n";
7305 htmlFile <<
"<h3>Mean of max difference between dependencies to be within: 0.2-1.8 (p-p collisions) </h3>\n";
7306 htmlFile <<
" <img src=\"HistErrA_HE.png\" />\n";
7307 htmlFile <<
"<br>\n";
7308 if (flagErrAB_HE[0] == -1)
7309 htmlFile <<
"<h3>test was not possible</h3>\n";
7310 else if (flagErrAB_HE[0] == 0)
7311 htmlFile <<
"<h3> Fine:NoErrorA_HE (Mean of max difference " << avedelta_HE
7312 <<
" is within 0.2-1.8) </h3>\n";
7313 else if (flagErrAB_HE[0] == 1)
7314 htmlFile <<
"<<h3> ErrorA_HE is available once Mean of max difference " << avedelta_HE
7315 <<
" is out 0.2-1.8 (p-p collisions)</font></h3>\n";
7317 htmlFile <<
"<h3>auto-interpretation is not available</h3>\n";
7318 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7320 htmlFile <<
"<a name=\"ErrorAaverage\"></a>\n";
7322 htmlFile <<
"<h2> 5. Error type A cross check: see 2D pattern of channels (only 3 depthes shown as example) " 7324 htmlFile <<
"<h2> 1) with average channel Amplitudes(No cut), 2) with average channel Amplitudes(<A> " 7325 ">1000.fC), 3) with channel Amplitude (A<500fC); </h2>\n";
7326 htmlFile <<
" <img src=\"ChkErrA_HE1.png\" /><br><br>\n";
7327 htmlFile <<
" <img src=\"ChkErrA_HE2.png\" /><br>\n";
7328 htmlFile <<
" <img src=\"ChkErrA_HE3.png\" /><br>\n";
7329 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7331 htmlFile <<
"<a name=\"ErrorAoccupancy\"></a>\n";
7332 htmlFile <<
"<h2> 6. Error type A: min/ave ratio for occupancy distributions with Amplitude bigger 35 " 7333 "(HEM:neg.eta;HEP:pos.eta) </h2>\n";
7334 htmlFile <<
"<h2> FOR CROSS-CHECK OLNY !!!</h2>\n";
7335 htmlFile <<
"<h2> TO IDENTIFY A-type errors: for most of LSs the ratio to be lower 0.3 at least for HF- or " 7337 htmlFile <<
"<h2> For runs without A-type errors: for most of LSs the ratio is higher 0.3 and is the same " 7338 "for HF- and HF+ </h2>\n";
7339 htmlFile <<
" <img src=\"OccPlots_HE.png\" /><br><br>\n";
7340 htmlFile <<
"<br>\n";
7341 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7343 htmlFile <<
"<a name=\"ErrorB\"></a>\n";
7344 htmlFile <<
"<h2> 7. Error type B (only 3 depthes shown as example) \n";
7345 htmlFile <<
"<h3> ErrorB identification: digi-collection size != 8.</h3>\n";
7346 htmlFile <<
" <img src=\"HistErrB_HE_1.png\" />\n<br>\n";
7347 htmlFile <<
" <img src=\"HistErrB_HE_2.png\" />\n<br>\n";
7348 htmlFile <<
" <img src=\"HistErrB_HE_3.png\" />\n<br>\n";
7349 htmlFile <<
"<br>\n";
7350 htmlFile <<
"<h3> if Error type B is available, it start from: " << LSofFirstErrB_HE <<
" LS </h3>\n";
7351 htmlFile <<
"<br>\n";
7356 htmlFile <<
"<h3>Mean of max difference between dependencies to be within: 0.1-1.5 (p-p collisions) </h3>\n";
7357 htmlFile <<
" <img src=\"HistErrA_HO.png\" />\n";
7358 htmlFile <<
"<br>\n";
7359 if (flagErrAB_HO[0] == -1)
7360 htmlFile <<
"<h3>test was not possible</h3>\n";
7361 else if (flagErrAB_HO[0] == 0)
7362 htmlFile <<
"<h3> Fine:NoErrorA_HO (Mean of max difference " << avedelta_HO
7363 <<
" is within 0.1-1.5) </h3>\n";
7364 else if (flagErrAB_HO[0] == 1)
7365 htmlFile <<
"<<h3> ErrorA_HO is available once Mean of max difference " << avedelta_HO
7366 <<
" is out 0.1-1.5 (p-p collisions)</font></h3>\n";
7368 htmlFile <<
"<h3>auto-interpretation is not available</h3>\n";
7369 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7371 htmlFile <<
"<a name=\"ErrorAaverage\"></a>\n";
7373 htmlFile <<
"<h2> 5. Error type A cross check: see 2D pattern of channels </h2>\n";
7374 htmlFile <<
"<h2> 1) with average channel Amplitudes(No cut), 2) with average channel Amplitudes(<A> >80), " 7375 "3) with channel Amplitude (A<100); </h2>\n";
7377 htmlFile <<
" <img src=\"ChkErrA_HO4.png\" /><br><br>\n";
7378 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7380 htmlFile <<
"<a name=\"ErrorAoccupancy\"></a>\n";
7381 htmlFile <<
"<h2> 6. Error type A: min/ave ratio for occupancy distributions with Amplitude bigger 80 " 7382 "(HOM:neg.eta;HOP:pos.eta) </h2>\n";
7383 htmlFile <<
"<h2> FOR CROSS-CHECK OLNY !!!</h2>\n";
7384 htmlFile <<
"<h2> TO IDENTIFY A-type errors: for most of LSs the ratio to be lower 0.8 at least for HF- or " 7386 htmlFile <<
"<h2> For runs without A-type errors: for most of LSs the ratio is higher 0.8 and is the same " 7387 "for HF- and HF+ </h2>\n";
7388 htmlFile <<
" <img src=\"OccPlots_HO.png\" /><br><br>\n";
7389 htmlFile <<
"<br>\n";
7390 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7392 htmlFile <<
"<a name=\"ErrorB\"></a>\n";
7393 htmlFile <<
"<h2> 7. Error type B\n";
7394 htmlFile <<
"<h3> ErrorB identification: digi-collection size != 10. </h3>\n";
7395 htmlFile <<
" <img src=\"HistErrB_HO_4.png\" />\n<br>\n";
7396 htmlFile <<
"<br>\n";
7397 htmlFile <<
"<h3> if Error type B is available, it start from: " << LSofFirstErrB_HO <<
" LS </h3>\n";
7398 htmlFile <<
"<br>\n";
7404 htmlFile <<
"<h3>Mean of max difference between dependencies to be within: 0.8-2.4 (p-p collisions) </h3>\n";
7405 htmlFile <<
" <img src=\"HistErrA_HF.png\" />\n";
7406 htmlFile <<
"<br>\n";
7407 if (flagErrAB_HF[0] == -1)
7408 htmlFile <<
"<h3>test was not possible</h3>\n";
7409 else if (flagErrAB_HF[0] == 0)
7410 htmlFile <<
"<h3> Fine:NoErrorA_HF (Mean of max difference " << avedelta_HF
7411 <<
" is within 0.8-2.4) </h3>\n";
7412 else if (flagErrAB_HF[0] == 1)
7413 htmlFile <<
"<<h3> ErrorA_HF is available once Mean of max difference " << avedelta_HF
7414 <<
" is out 0.8-2.4 (p-p collisions)</font></h3>\n";
7416 htmlFile <<
"<h3>auto-interpretation is not available</h3>\n";
7417 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7419 htmlFile <<
"<a name=\"ErrorAaverage\"></a>\n";
7421 htmlFile <<
"<h2> 5. Error type A cross check: see 2D pattern of channels (only 2 depthes shown as example) " 7423 htmlFile <<
"<h2> 1) with average channel Amplitudes(No cut), 2) with average channel Amplitudes(<A> >20), " 7424 "3) with channel Amplitude (A<20); </h2>\n";
7426 htmlFile <<
" <img src=\"ChkErrA_HF1.png\" /><br><br>\n";
7427 htmlFile <<
" <img src=\"ChkErrA_HF2.png\" /><br>\n";
7428 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7430 htmlFile <<
"<a name=\"ErrorAoccupancy\"></a>\n";
7431 htmlFile <<
"<h2> 6. Error type A: min/ave ratio for occupancy distributions with Amplitude bigger 20 " 7432 "(HFM:neg.eta;HFP:pos.eta) </h2>\n";
7433 htmlFile <<
"<h2> FOR CROSS-CHECK OLNY !!!</h2>\n";
7434 htmlFile <<
"<h2> TO IDENTIFY A-type errors: for most of LSs the ratio to be lower 0.8 at least for HF- or " 7436 htmlFile <<
"<h2> For runs without A-type errors: for most of LSs the ratio is higher 0.8 and is the same " 7437 "for HF- and HF+ </h2>\n";
7438 htmlFile <<
" <img src=\"OccPlots_HF.png\" /><br><br>\n";
7439 htmlFile <<
"<br>\n";
7440 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7442 htmlFile <<
"<a name=\"ErrorB\"></a>\n";
7443 htmlFile <<
"<h2> 7. Error type B (only 2 depthes shown as example) \n";
7444 htmlFile <<
"<h3> ErrorB identification: digi-collection size != 4. </h3>\n";
7445 htmlFile <<
" <img src=\"HistErrB_HF_1.png\" />\n<br>\n";
7446 htmlFile <<
" <img src=\"HistErrB_HF_2.png\" />\n<br>\n";
7447 htmlFile <<
"<br>\n";
7448 htmlFile <<
"<h3> if Error type B is available, it start from: " << LSofFirstErrB_HF <<
" LS </h3>\n";
7449 htmlFile <<
"<br>\n";
7451 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7456 htmlFile <<
"<a name=\"LSstatus\"></a>\n";
7459 htmlFile <<
"<h2> 8.Lumisection Status for HB: </h2>" << std::endl;
7461 htmlFile <<
"<h3> Legends: Red boxes correspond BAD LS selected with following cuts: " << Cut0[
test][sub][1]
7462 <<
" (Depth1), " << Cut0[
test][sub][2] <<
" (Depth2), " << Cut0[
test][sub][3] <<
" (Depth3), " 7463 << Cut0[
test][sub][4] <<
" (Depth4), </h3>" << std::endl;
7466 htmlFile <<
"<h2> 8.Lumisection Status for HE: </h2>" << std::endl;
7467 htmlFile <<
"<h3> Legends: Red boxes correspond BAD LS selected with following cuts: " << Cut0[
test][sub][1]
7468 <<
" (Depth1), " << Cut0[
test][sub][2] <<
" (Depth2), " << Cut0[
test][sub][3] <<
" (Depth3)," 7469 << Cut0[
test][sub][4] <<
" (Depth4)," << Cut0[
test][sub][5] <<
" (Depth5)," << Cut0[
test][sub][6]
7470 <<
" (Depth6)," << Cut0[
test][sub][7] <<
" (Depth7). </h3>" << std::endl;
7474 htmlFile <<
"<h2> 8.Lumisection Status for HO: </h2>" << std::endl;
7475 htmlFile <<
"<h3> Legends: Red boxes correspond BAD LS selected with following cuts: " << Cut0[
test][sub][4]
7476 <<
" (Depth4). </h3>" << std::endl;
7479 htmlFile <<
"<h2> 8.Lumisection Status for HF: </h2>" << std::endl;
7480 htmlFile <<
"<h3> Legends: Red boxes correspond BAD LS selected with following cuts: " << Cut0[
test][sub][1]
7481 <<
" (Depth1), " << Cut0[
test][sub][2] <<
" (Depth2), " << Cut0[
test][sub][3] <<
" (Depth3), " 7482 << Cut0[
test][sub][4] <<
" (Depth4), </h3>" << std::endl;
7484 htmlFile <<
"<br>" << std::endl;
7485 htmlFile <<
"<table>" << std::endl;
7487 htmlFile <<
"<td class=\"s4\" align=\"center\">LS</td>" << std::endl;
7489 htmlFile <<
"<td class=\"s1\" align=\"center\">Number of events</td>" << std::endl;
7492 int kkkkkkmax = k_max[sub];
7493 if ((sub == 4 || sub == 2 || sub == 1) &&
test == 1)
7494 kkkkkkmax = k_maxupgrade[sub];
7499 for (
int k = k_min[sub];
k <= kkkkkkmax;
k++)
7500 htmlFile <<
"<td class=\"s1\" align=\"center\">< Nbcs > Depth " <<
k <<
" </td>" << std::endl;
7502 for (
int k = k_min[sub];
k <= kkkkkkmax;
k++)
7503 htmlFile <<
"<td class=\"s1\" align=\"center\">< A > Depth " <<
k <<
" </td>" << std::endl;
7505 for (
int k = k_min[sub];
k <= kkkkkkmax;
k++)
7506 htmlFile <<
"<td class=\"s1\" align=\"center\">< W > Depth " <<
k <<
" </td>" << std::endl;
7508 for (
int k = k_min[sub];
k <= kkkkkkmax;
k++)
7509 htmlFile <<
"<td class=\"s1\" align=\"center\">< R > Depth " <<
k <<
" </td>" << std::endl;
7511 for (
int k = k_min[sub];
k <= kkkkkkmax;
k++)
7512 htmlFile <<
"<td class=\"s1\" align=\"center\">< TSn > Depth " <<
k <<
" </td>" << std::endl;
7514 for (
int k = k_min[sub];
k <= kkkkkkmax;
k++)
7515 htmlFile <<
"<td class=\"s1\" align=\"center\">< TSx > Depth " <<
k <<
" </td>" << std::endl;
7516 htmlFile <<
"</tr>" << std::endl;
7519 for (
int i = 1;
i <= MaxLum;
i++) {
7521 raw_class =
"<td class=\"s2\" align=\"center\">";
7523 raw_class =
"<td class=\"s3\" align=\"center\">";
7524 htmlFile <<
"<tr>" << std::endl;
7525 htmlFile <<
"<td class=\"s4\" align=\"center\">" <<
i <<
"</td>" << std::endl;
7527 htmlFile << raw_class << LumiEv->GetBinContent(
i) <<
"</td>" << std::endl;
7528 for (
int k = k_min[sub];
k <= kkkkkkmax;
k++) {
7529 if (HistNumBadChanDepth[
test][sub][
k]->GetBinContent(
i) > Cut0[
test][sub][
k]) {
7531 htmlFile <<
"<td class=\"s6\" align=\"center\">" 7532 <<
int(HistNumBadChanDepth[
test][sub][
k]->GetBinContent(
i)) <<
"</td>" << std::endl;
7534 htmlFile <<
"<td class=\"s6\" align=\"center\">" << (HistNumBadChanDepth[
test][sub][
k]->GetBinContent(
i))
7535 <<
"</td>" << std::endl;
7538 htmlFile << raw_class <<
int(HistNumBadChanDepth[
test][sub][
k]->GetBinContent(
i)) <<
"</td>" << std::endl;
7540 htmlFile << raw_class << (HistNumBadChanDepth[
test][sub][
k]->GetBinContent(
i)) <<
"</td>" << std::endl;
7543 htmlFile <<
"</tr>" << std::endl;
7546 htmlFile <<
"</table>" << std::endl;
7548 htmlFile <<
"<br>" << std::endl;
7550 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7551 htmlFile <<
"<br>" << std::endl;
7558 htmlFile <<
"<a name=\"RBXstatus\"></a>\n";
7562 htmlFile <<
"<h2> 9. Average Amplitudes of RBX for HB: </h2>" << std::endl;
7563 htmlFile <<
"<h3> where </h3>" << std::endl;
7564 htmlFile <<
"<h3> jeta = 7,8,9,10 (Negative direction); ............&& ............ jeta = 11,12,13,14 " 7565 "(Positive direction); </h3>" 7567 htmlFile <<
"<h3> jphi = 0, 1,..... 16, 17 </h3>" << std::endl;
7569 htmlFile <<
" <img src=\"RBX-HB-2Dplot.png\" />\n";
7570 htmlFile <<
"<br>\n";
7572 htmlFile <<
"<h2> Average Amplitudes of RBX-PHI for HB: </h2>" << std::endl;
7573 htmlFile <<
" <img src=\"RBX-HB-1Dplot.png\" />\n";
7574 htmlFile <<
"<br>\n";
7576 htmlFile <<
"<h2> Average Amplitudes of RBX-ETA for HB: </h2>" << std::endl;
7577 htmlFile <<
" <img src=\"RBX-HB-11Dplot.png\" />\n";
7578 htmlFile <<
"<br>\n";
7580 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7584 htmlFile <<
"<h2> 9. Averaged Amplitudes of RBX for HE: </h2>" << std::endl;
7585 htmlFile <<
"<h3> where </h3>" << std::endl;
7586 htmlFile <<
"<h3> jeta = 3,4,5, 6, 7 (Negative direction); ............&& ............ jeta = " 7587 "14,15,16,17,18 (Positive direction); </h3>" 7589 htmlFile <<
"<h3> jphi = 0, 1,..... 16, 17 </h3>" << std::endl;
7591 htmlFile <<
" <img src=\"RBX-HE-2Dplot.png\" />\n";
7592 htmlFile <<
"<br>\n";
7594 htmlFile <<
"<h2> Average Amplitudes of RBX-PHI for HE: </h2>" << std::endl;
7595 htmlFile <<
" <img src=\"RBX-HE-1Dplot.png\" />\n";
7596 htmlFile <<
"<br>\n";
7598 htmlFile <<
"<h2> Average Amplitudes of RBX-ETA for HE: </h2>" << std::endl;
7599 htmlFile <<
" <img src=\"RBX-HE-11Dplot.png\" />\n";
7600 htmlFile <<
"<br>\n";
7602 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7606 htmlFile <<
"<h2> 9. Averaged Amplitudes of RBX for HO: </h2>" << std::endl;
7607 htmlFile <<
"<h3> where </h3>" << std::endl;
7608 htmlFile <<
"<h3> jeta = 7,8,9,10 (Negative direction); ............&& ............ jeta = 11,12,13,14 " 7609 "(Positive direction); </h3>" 7611 htmlFile <<
"<h3> jphi = 0, 1,..... 16, 17 </h3>" << std::endl;
7613 htmlFile <<
" <img src=\"RBX-HO-2Dplot.png\" />\n";
7614 htmlFile <<
"<br>\n";
7616 htmlFile <<
"<h2> Average Amplitudes of RBX-PHI for HO: </h2>" << std::endl;
7617 htmlFile <<
" <img src=\"RBX-HO-1Dplot.png\" />\n";
7618 htmlFile <<
"<br>\n";
7620 htmlFile <<
"<h2> Average Amplitudes of RBX-ETA for HO: </h2>" << std::endl;
7621 htmlFile <<
" <img src=\"RBX-HO-11Dplot.png\" />\n";
7622 htmlFile <<
"<br>\n";
7624 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7628 htmlFile <<
"<h2> 9. Averaged Amplitudes of RBX for HF: </h2>" << std::endl;
7629 htmlFile <<
"<h3> where </h3>" << std::endl;
7630 htmlFile <<
"<h3> jeta = 0,1,2, 3 (Negative direction); ............&& ............ jeta = 18,19,20,21 " 7631 "(Positive direction); </h3>" 7633 htmlFile <<
"<h3> jphi = 0, 1,..... 16, 17 </h3>" << std::endl;
7635 htmlFile <<
" <img src=\"RBX-HF-2Dplot.png\" />\n";
7636 htmlFile <<
"<br>\n";
7638 htmlFile <<
"<h2> Average Amplitudes of RBX-PHI for HF: </h2>" << std::endl;
7639 htmlFile <<
" <img src=\"RBX-HF-1Dplot.png\" />\n";
7640 htmlFile <<
"<br>\n";
7642 htmlFile <<
"<h2> Average Amplitudes of RBX-ETA for HF: </h2>" << std::endl;
7643 htmlFile <<
" <img src=\"RBX-HF-11Dplot.png\" />\n";
7644 htmlFile <<
"<br>\n";
7646 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7648 htmlFile <<
"<br>" << std::endl;
7653 htmlFile <<
"<a name=\"RBXPHItable\"></a>\n";
7657 htmlFile <<
"<h2> 10. Average RBX-Amplitude in Phi over LSs for HB: </h2>" << std::endl;
7659 <<
"<h3> Legends: Red boxes correspond BAD LS selected with cut = <td class=\"s6\" align=\"center\">" 7660 << cutA_HB << std::endl;
7664 htmlFile <<
"<h2> 10. Average RBX-Amplitude in Phi over LSs for HE: </h2>" << std::endl;
7666 <<
"<h3> Legends: Red boxes correspond BAD LS selected with cut = <td class=\"s6\" align=\"center\">" 7667 << cutA_HE << std::endl;
7671 htmlFile <<
"<h2> 10. Average RBX-Amplitude in Phi over LSs for HO: </h2>" << std::endl;
7673 <<
"<h3> Legends: Red boxes correspond BAD LS selected with cut = <td class=\"s6\" align=\"center\">" 7674 << cutA_HO << std::endl;
7678 htmlFile <<
"<h2> 10. Average RBX-Amplitude in Phi over LSs for HF: </h2>" << std::endl;
7680 <<
"<h3> Legends: Red boxes correspond BAD LS selected with cut = <td class=\"s6\" align=\"center\">" 7681 << cutA_HF << std::endl;
7685 htmlFile <<
"<br>" << std::endl;
7686 htmlFile <<
"<table>" << std::endl;
7688 htmlFile <<
"<td class=\"s4\" align=\"center\">LS</td>" << std::endl;
7690 htmlFile <<
"<td class=\"s1\" align=\"center\">Number of events</td>" << std::endl;
7694 for (
int k = 0;
k < njphi;
k++)
7695 htmlFile <<
"<td class=\"s1\" align=\"center\"> iPHI " <<
k <<
" </td>" << std::endl;
7696 htmlFile <<
"</tr>" << std::endl;
7701 for (
int i = 1;
i <= MaxLum;
i++) {
7703 raw_class =
"<td class=\"s2\" align=\"center\">";
7705 raw_class =
"<td class=\"s3\" align=\"center\">";
7706 htmlFile <<
"<tr>" << std::endl;
7707 htmlFile <<
"<td class=\"s4\" align=\"center\">" <<
i <<
"</td>" << std::endl;
7709 htmlFile << raw_class << LumiEv->GetBinContent(
i) <<
"</td>" << std::endl;
7712 for (
int k = 0;
k < njphi;
k++) {
7714 if (
int(alexhb[
k][
i - 1]) > cutA_ALL) {
7715 htmlFile <<
"<td class=\"s6\" align=\"center\">" <<
int(alexhb[
k][
i - 1]) <<
"</td>" << std::endl;
7717 htmlFile << raw_class <<
int(alexhb[
k][
i - 1]) <<
"</td>" << std::endl;
7721 if (
int(alexhe[
k][
i - 1]) > cutA_ALL) {
7722 htmlFile <<
"<td class=\"s6\" align=\"center\">" <<
int(alexhe[
k][
i - 1]) <<
"</td>" << std::endl;
7724 htmlFile << raw_class <<
int(alexhe[
k][
i - 1]) <<
"</td>" << std::endl;
7728 if (
int(alexho[
k][
i - 1]) > cutA_ALL) {
7729 htmlFile <<
"<td class=\"s6\" align=\"center\">" <<
int(alexho[
k][
i - 1]) <<
"</td>" << std::endl;
7731 htmlFile << raw_class <<
int(alexho[
k][
i - 1]) <<
"</td>" << std::endl;
7735 if (
int(alexhf[
k][
i - 1]) > cutA_ALL) {
7736 htmlFile <<
"<td class=\"s6\" align=\"center\">" <<
int(alexhf[
k][
i - 1]) <<
"</td>" << std::endl;
7738 htmlFile << raw_class <<
int(alexhf[
k][
i - 1]) <<
"</td>" << std::endl;
7743 htmlFile <<
"</tr>" << std::endl;
7746 htmlFile <<
"</table>" << std::endl;
7747 htmlFile <<
"<br>" << std::endl;
7748 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7749 htmlFile <<
"<br>" << std::endl;
7752 htmlFile <<
"<a name=\"RBXETAtable\"></a>\n";
7756 htmlFile <<
"<h2> 11. Average RBX-Amplitude in Eta over LSs for HB: </h2>" << std::endl;
7758 <<
"<h3> Legends: Red boxes correspond BAD LS selected with cut = <td class=\"s6\" align=\"center\">" 7759 << cutB_HB << std::endl;
7763 htmlFile <<
"<h2> 11. Average RBX-Amplitude in Eta over LSs for HE: </h2>" << std::endl;
7765 <<
"<h3> Legends: Red boxes correspond BAD LS selected with cut = <td class=\"s6\" align=\"center\">" 7766 << cutB_HE << std::endl;
7770 htmlFile <<
"<h2> 11. Average RBX-Amplitude in Eta over LSs for HO: </h2>" << std::endl;
7772 <<
"<h3> Legends: Red boxes correspond BAD LS selected with cut = <td class=\"s6\" align=\"center\">" 7773 << cutB_HO << std::endl;
7777 htmlFile <<
"<h2> 11. Average RBX-Amplitude in Eta over LSs for HF: </h2>" << std::endl;
7779 <<
"<h3> Legends: Red boxes correspond BAD LS selected with cut = <td class=\"s6\" align=\"center\">" 7780 << cutB_HF << std::endl;
7784 htmlFile <<
"<br>" << std::endl;
7785 htmlFile <<
"<table>" << std::endl;
7787 htmlFile <<
"<td class=\"s4\" align=\"center\">LS</td>" << std::endl;
7789 htmlFile <<
"<td class=\"s1\" align=\"center\">Number of events</td>" << std::endl;
7793 for (
int k = 0;
k < njeta;
k++)
7794 htmlFile <<
"<td class=\"s1\" align=\"center\"> iETA " <<
k <<
" </td>" << std::endl;
7795 htmlFile <<
"</tr>" << std::endl;
7800 for (
int i = 1;
i <= MaxLum;
i++) {
7802 raw_class =
"<td class=\"s2\" align=\"center\">";
7804 raw_class =
"<td class=\"s3\" align=\"center\">";
7805 htmlFile <<
"<tr>" << std::endl;
7806 htmlFile <<
"<td class=\"s4\" align=\"center\">" <<
i <<
"</td>" << std::endl;
7808 htmlFile << raw_class << LumiEv->GetBinContent(
i) <<
"</td>" << std::endl;
7811 for (
int k = 0;
k < njeta;
k++) {
7813 if (
int(blexhb[
k][
i - 1]) > cutB_ALL) {
7814 htmlFile <<
"<td class=\"s6\" align=\"center\">" <<
int(blexhb[
k][
i - 1]) <<
"</td>" << std::endl;
7816 htmlFile << raw_class <<
int(blexhb[
k][
i - 1]) <<
"</td>" << std::endl;
7820 if (
int(blexhe[
k][
i - 1]) > cutB_ALL) {
7821 htmlFile <<
"<td class=\"s6\" align=\"center\">" <<
int(blexhe[
k][
i - 1]) <<
"</td>" << std::endl;
7823 htmlFile << raw_class <<
int(blexhe[
k][
i - 1]) <<
"</td>" << std::endl;
7827 if (
int(blexho[
k][
i - 1]) > cutB_ALL) {
7828 htmlFile <<
"<td class=\"s6\" align=\"center\">" <<
int(blexho[
k][
i - 1]) <<
"</td>" << std::endl;
7830 htmlFile << raw_class <<
int(blexho[
k][
i - 1]) <<
"</td>" << std::endl;
7834 if (
int(blexhf[
k][
i - 1]) > cutB_ALL) {
7835 htmlFile <<
"<td class=\"s6\" align=\"center\">" <<
int(blexhf[
k][
i - 1]) <<
"</td>" << std::endl;
7837 htmlFile << raw_class <<
int(blexhf[
k][
i - 1]) <<
"</td>" << std::endl;
7842 htmlFile <<
"</tr>" << std::endl;
7845 htmlFile <<
"</table>" << std::endl;
7846 htmlFile <<
"<br>" << std::endl;
7847 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7848 htmlFile <<
"<br>" << std::endl;
7853 htmlFile <<
"<a name=\"RBX3plots\"></a>\n";
7854 htmlFile <<
"<br>\n";
7855 htmlFile <<
"<h2> 12. (Rij) - RBX-amplitudes normilized on reference LS (~=1st) </h2>" << std::endl;
7856 htmlFile <<
"<h3> ( Rji . . is ratio of . . . . A_j_i . . to . . A_j_ref . . . . for . . j-RBX . . and . . " 7860 htmlFile <<
"<br>\n";
7861 htmlFile <<
"<h2> . . . . . . . . . . . . . . 1) . average Ri vs iLS:. . . . . . . . . . . . . . . . . . . . . " 7862 ". . 2) . average Rj shown for Rij outside meanValue range either 0.95-1.05 or 3RMS: . . . . . . . " 7863 ". . . . . . . . . . . . . . . . . . 3) . Rij: </h2>" 7865 htmlFile <<
"<br>\n";
7867 htmlFile <<
" <img src=\"RBX-HB-3plots.png\" />\n";
7870 htmlFile <<
" <img src=\"RBX-HE-3plots.png\" />\n";
7873 htmlFile <<
" <img src=\"RBX-HO-3plots.png\" />\n";
7876 htmlFile <<
" <img src=\"RBX-HF-3plots.png\" />\n";
7878 htmlFile <<
"<br>\n";
7880 htmlFile <<
"<br>\n";
7881 htmlFile <<
"<h2> . 4). average Rj shown for Rij outside meanValue range 0.80-1.20: . . . . . . . .5) . " 7882 "average Rj shown for Rij outside meanValue range 0.70-1.30: . . . . . . . .6). average Rj shown " 7883 "for Rij outside meanValue range 0.60-1.40: </h2>" 7885 htmlFile <<
"<br>\n";
7887 htmlFile <<
" <img src=\"RBX-HB-3plotsmore.png\" />\n";
7890 htmlFile <<
" <img src=\"RBX-HE-3plotsmore.png\" />\n";
7893 htmlFile <<
" <img src=\"RBX-HO-3plotsmore.png\" />\n";
7896 htmlFile <<
" <img src=\"RBX-HF-3plotsmore.png\" />\n";
7898 htmlFile <<
"<br>\n";
7900 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7922 htmlFile.open(
"CapID_GL.html");
7924 htmlFile.open(
"ADCampl_GL.html");
7926 htmlFile.open(
"Width_GL.html");
7928 htmlFile.open(
"Ratio_GL.html");
7930 htmlFile.open(
"Tmean_GL.html");
7932 htmlFile.open(
"Tmax_GL.html");
7936 htmlFile <<
"</html><html xmlns=\"http://www.w3.org/1999/xhtml\">" << std::endl;
7937 htmlFile <<
"<head>" << std::endl;
7938 htmlFile <<
"<meta http-equiv=\"Content-Type\" content=\"text/html\"/>" << std::endl;
7939 htmlFile <<
"<title> Certification Monitoring Tool </title>" << std::endl;
7940 htmlFile <<
"<style type=\"text/css\">" << std::endl;
7941 htmlFile <<
" body,td{ background-color: #FFFFCC; font-family: arial, arial ce, helvetica; font-size: 12px; }" 7943 htmlFile <<
" td.s0 { font-family: arial, arial ce, helvetica; }" << std::endl;
7944 htmlFile <<
" td.s1 { font-family: arial, arial ce, helvetica; font-weight: bold; background-color: #FFC169; " 7945 "text-align: center;}" 7947 htmlFile <<
" td.s2 { font-family: arial, arial ce, helvetica; background-color: #eeeeee; }" << std::endl;
7948 htmlFile <<
" td.s3 { font-family: arial, arial ce, helvetica; background-color: #d0d0d0; }" << std::endl;
7949 htmlFile <<
" td.s4 { font-family: arial, arial ce, helvetica; background-color: #FFC169; }" << std::endl;
7950 htmlFile <<
" td.s5 { font-family: arial, arial ce, helvetica; background-color: #00FF00; }" << std::endl;
7951 htmlFile <<
" td.s6 { font-family: arial, arial ce, helvetica; background-color: #FF0000; }" << std::endl;
7952 htmlFile <<
"</style>" << std::endl;
7953 htmlFile <<
"<body>" << std::endl;
7955 htmlFile <<
"<h1> CAP ID ERRORS, GLOBAL RUN = " <<
runnumber <<
" </h1>" << std::endl;
7957 htmlFile <<
"<h1> ADC AMPLITIDE, GLOBAL RUN = " <<
runnumber <<
" </h1>" << std::endl;
7959 htmlFile <<
"<h1> WIDTH, GLOBAL RUN = " <<
runnumber <<
" </h1>" << std::endl;
7961 htmlFile <<
"<h1> RATIO, GLOBAL RUN = " <<
runnumber <<
" </h1>" << std::endl;
7963 htmlFile <<
"<h1> TIMING MEAN, GLOBAL RUN = " <<
runnumber <<
" </h1>" << std::endl;
7965 htmlFile <<
"<h1> TIMING MAX, GLOBAL RUN = " <<
runnumber <<
" </h1>" << std::endl;
7966 htmlFile <<
"<br>" << std::endl;
7967 htmlFile <<
"<h2> 1. Map of suspicious channels with this criterion for whole HCAL </h2>" << std::endl;
7968 htmlFile <<
"<h3> Channel legend: green - good, other colour - suspicious </h3>" << std::endl;
7969 htmlFile <<
"<br>" << std::endl;
7971 htmlFile <<
" <img src=\"MapCapIdError.png\" />" << std::endl;
7973 htmlFile <<
" <img src=\"MapADCAmpl.png\" />" << std::endl;
7975 htmlFile <<
" <img src=\"MapWidth.png\" />" << std::endl;
7977 htmlFile <<
" <img src=\"MapRatio.png\" />" << std::endl;
7979 htmlFile <<
" <img src=\"MapTmean.png\" />" << std::endl;
7981 htmlFile <<
" <img src=\"MapTmax.png\" />" << std::endl;
7982 htmlFile <<
"<br>" << std::endl;
7983 htmlFile <<
"<h2> 2. For whole HCAL: </h2>" << std::endl;
7984 htmlFile <<
"<br>" << std::endl;
7986 htmlFile <<
" <img src=\"HistCapID.png\" />" << std::endl;
7988 htmlFile <<
" <img src=\"HistADCAmpl.png\" />" << std::endl;
7990 htmlFile <<
" <img src=\"HistWidth.png\" />" << std::endl;
7992 htmlFile <<
" <img src=\"HistRatio.png\" />" << std::endl;
7994 htmlFile <<
" <img src=\"HistTmean.png\" />" << std::endl;
7996 htmlFile <<
" <img src=\"HistTmax.png\" />" << std::endl;
7997 htmlFile <<
"<br>" << std::endl;
7998 htmlFile <<
"<h2> 3. Status of subdetectors </h2>" << std::endl;
7999 htmlFile <<
"<table width=\"400\">" << std::endl;
8000 htmlFile <<
"<tr>" << std::endl;
8002 htmlFile <<
" <td><a href=\"https://cms-conddb.cern.ch/eosweb/hcal/HcalRemoteMonitoring/CMT/GLOBAL_" <<
runnumber 8003 <<
"/HB_CapID.html\">HB</a></td>" << std::endl;
8004 htmlFile <<
" <td><a href=\"https://cms-conddb.cern.ch/eosweb/hcal/HcalRemoteMonitoring/CMT/GLOBAL_" <<
runnumber 8005 <<
"/HE_CapID.html\">HE</a></td>" << std::endl;
8006 htmlFile <<
" <td><a href=\"https://cms-conddb.cern.ch/eosweb/hcal/HcalRemoteMonitoring/CMT/GLOBAL_" <<
runnumber 8007 <<
"/HO_CapID.html\">HO</a></td>" << std::endl;
8008 htmlFile <<
" <td><a href=\"https://cms-conddb.cern.ch/eosweb/hcal/HcalRemoteMonitoring/CMT/GLOBAL_" <<
runnumber 8009 <<
"/HF_CapID.html\">HF</a></td>" << std::endl;
8020 htmlFile <<
" <td><a href=\"https://cms-conddb.cern.ch/eosweb/hcal/HcalRemoteMonitoring/CMT/GLOBAL_" <<
runnumber 8021 <<
"/HB_ADCampl.html\">HB</a></td>" << std::endl;
8022 htmlFile <<
" <td><a href=\"https://cms-conddb.cern.ch/eosweb/hcal/HcalRemoteMonitoring/CMT/GLOBAL_" <<
runnumber 8023 <<
"/HE_ADCampl.html\">HE</a></td>" << std::endl;
8024 htmlFile <<
" <td><a href=\"https://cms-conddb.cern.ch/eosweb/hcal/HcalRemoteMonitoring/CMT/GLOBAL_" <<
runnumber 8025 <<
"/HO_ADCampl.html\">HO</a></td>" << std::endl;
8026 htmlFile <<
" <td><a href=\"https://cms-conddb.cern.ch/eosweb/hcal/HcalRemoteMonitoring/CMT/GLOBAL_" <<
runnumber 8027 <<
"/HF_ADCampl.html\">HF</a></td>" << std::endl;
8030 htmlFile <<
" <td><a href=\"https://cms-conddb.cern.ch/eosweb/hcal/HcalRemoteMonitoring/CMT/GLOBAL_" <<
runnumber 8031 <<
"/HB_Width.html\">HB</a></td>" << std::endl;
8032 htmlFile <<
" <td><a href=\"https://cms-conddb.cern.ch/eosweb/hcal/HcalRemoteMonitoring/CMT/GLOBAL_" <<
runnumber 8033 <<
"/HE_Width.html\">HE</a></td>" << std::endl;
8034 htmlFile <<
" <td><a href=\"https://cms-conddb.cern.ch/eosweb/hcal/HcalRemoteMonitoring/CMT/GLOBAL_" <<
runnumber 8035 <<
"/HO_Width.html\">HO</a></td>" << std::endl;
8036 htmlFile <<
" <td><a href=\"https://cms-conddb.cern.ch/eosweb/hcal/HcalRemoteMonitoring/CMT/GLOBAL_" <<
runnumber 8037 <<
"/HF_Width.html\">HF</a></td>" << std::endl;
8040 htmlFile <<
" <td><a href=\"https://cms-conddb.cern.ch/eosweb/hcal/HcalRemoteMonitoring/CMT/GLOBAL_" <<
runnumber 8041 <<
"/HB_Ratio.html\">HB</a></td>" << std::endl;
8042 htmlFile <<
" <td><a href=\"https://cms-conddb.cern.ch/eosweb/hcal/HcalRemoteMonitoring/CMT/GLOBAL_" <<
runnumber 8043 <<
"/HE_Ratio.html\">HE</a></td>" << std::endl;
8044 htmlFile <<
" <td><a href=\"https://cms-conddb.cern.ch/eosweb/hcal/HcalRemoteMonitoring/CMT/GLOBAL_" <<
runnumber 8045 <<
"/HO_Ratio.html\">HO</a></td>" << std::endl;
8046 htmlFile <<
" <td><a href=\"https://cms-conddb.cern.ch/eosweb/hcal/HcalRemoteMonitoring/CMT/GLOBAL_" <<
runnumber 8047 <<
"/HF_Ratio.html\">HF</a></td>" << std::endl;
8050 htmlFile <<
" <td><a href=\"https://cms-conddb.cern.ch/eosweb/hcal/HcalRemoteMonitoring/CMT/GLOBAL_" <<
runnumber 8051 <<
"/HB_Tmean.html\">HB</a></td>" << std::endl;
8052 htmlFile <<
" <td><a href=\"https://cms-conddb.cern.ch/eosweb/hcal/HcalRemoteMonitoring/CMT/GLOBAL_" <<
runnumber 8053 <<
"/HE_Tmean.html\">HE</a></td>" << std::endl;
8054 htmlFile <<
" <td><a href=\"https://cms-conddb.cern.ch/eosweb/hcal/HcalRemoteMonitoring/CMT/GLOBAL_" <<
runnumber 8055 <<
"/HO_Tmean.html\">HO</a></td>" << std::endl;
8056 htmlFile <<
" <td><a href=\"https://cms-conddb.cern.ch/eosweb/hcal/HcalRemoteMonitoring/CMT/GLOBAL_" <<
runnumber 8057 <<
"/HF_Tmean.html\">HF</a></td>" << std::endl;
8060 htmlFile <<
" <td><a href=\"https://cms-conddb.cern.ch/eosweb/hcal/HcalRemoteMonitoring/CMT/GLOBAL_" <<
runnumber 8061 <<
"/HB_Tmax.html\">HB</a></td>" << std::endl;
8062 htmlFile <<
" <td><a href=\"https://cms-conddb.cern.ch/eosweb/hcal/HcalRemoteMonitoring/CMT/GLOBAL_" <<
runnumber 8063 <<
"/HE_Tmax.html\">HE</a></td>" << std::endl;
8064 htmlFile <<
" <td><a href=\"https://cms-conddb.cern.ch/eosweb/hcal/HcalRemoteMonitoring/CMT/GLOBAL_" <<
runnumber 8065 <<
"/HO_Tmax.html\">HO</a></td>" << std::endl;
8066 htmlFile <<
" <td><a href=\"https://cms-conddb.cern.ch/eosweb/hcal/HcalRemoteMonitoring/CMT/GLOBAL_" <<
runnumber 8067 <<
"/HF_Tmax.html\">HF</a></td>" << std::endl;
8070 htmlFile <<
"</tr>" << std::endl;
8071 htmlFile <<
"</table>" << std::endl;
8072 htmlFile <<
"<br>" << std::endl;
8076 htmlFile <<
"<h2> 4. Table of estimator-values in sub-detectors for ONLY suspicious LSs </h3>" << std::endl;
8078 htmlFile <<
"<h2> 4. Table of average Nbcs in sub-detectors for ONLY suspicious LSs </h3>" << std::endl;
8079 htmlFile <<
"<table>" << std::endl;
8081 htmlFile <<
"<td class=\"s4\" align=\"center\">LS</td>" << std::endl;
8083 htmlFile <<
"<td class=\"s1\" align=\"center\">Number of events</td>" << std::endl;
8085 for (
int sub = 1; sub <= 4; sub++) {
8088 int kkkkkkmax = k_max[sub];
8089 if ((sub == 4 || sub == 2 || sub == 1) &&
test == 1)
8090 kkkkkkmax = k_maxupgrade[sub];
8095 for (
int k = k_min[sub];
k <= kkkkkkmax;
k++)
8096 htmlFile <<
"<td class=\"s1\" align=\"center\">< Nbcs > HBdep " <<
k <<
" </td>" << std::endl;
8098 for (
int k = k_min[sub];
k <= kkkkkkmax;
k++)
8099 htmlFile <<
"<td class=\"s1\" align=\"center\">< A > HBdepth " <<
k <<
" </td>" << std::endl;
8101 for (
int k = k_min[sub];
k <= kkkkkkmax;
k++)
8102 htmlFile <<
"<td class=\"s1\" align=\"center\">< W > HBdepth " <<
k <<
" </td>" << std::endl;
8104 for (
int k = k_min[sub];
k <= kkkkkkmax;
k++)
8105 htmlFile <<
"<td class=\"s1\" align=\"center\">< R > HBdepth " <<
k <<
" </td>" << std::endl;
8107 for (
int k = k_min[sub];
k <= kkkkkkmax;
k++)
8108 htmlFile <<
"<td class=\"s1\" align=\"center\">< TSn > HBdep " <<
k <<
" </td>" << std::endl;
8110 for (
int k = k_min[sub];
k <= kkkkkkmax;
k++)
8111 htmlFile <<
"<td class=\"s1\" align=\"center\">< TSx > HBdep " <<
k <<
" </td>" << std::endl;
8115 for (
int k = k_min[sub];
k <= kkkkkkmax;
k++)
8116 htmlFile <<
"<td class=\"s1\" align=\"center\">< Nbcs > HEdep " <<
k <<
" </td>" << std::endl;
8118 for (
int k = k_min[sub];
k <= kkkkkkmax;
k++)
8119 htmlFile <<
"<td class=\"s1\" align=\"center\">< A > HEdepth " <<
k <<
" </td>" << std::endl;
8121 for (
int k = k_min[sub];
k <= kkkkkkmax;
k++)
8122 htmlFile <<
"<td class=\"s1\" align=\"center\">< W > HEdepth " <<
k <<
" </td>" << std::endl;
8124 for (
int k = k_min[sub];
k <= kkkkkkmax;
k++)
8125 htmlFile <<
"<td class=\"s1\" align=\"center\">< R > HEdepth " <<
k <<
" </td>" << std::endl;
8127 for (
int k = k_min[sub];
k <= kkkkkkmax;
k++)
8128 htmlFile <<
"<td class=\"s1\" align=\"center\">< TSn > HEdep " <<
k <<
" </td>" << std::endl;
8130 for (
int k = k_min[sub];
k <= kkkkkkmax;
k++)
8131 htmlFile <<
"<td class=\"s1\" align=\"center\">< TSx > HEdep " <<
k <<
" </td>" << std::endl;
8135 for (
int k = k_min[sub];
k <= kkkkkkmax;
k++)
8136 htmlFile <<
"<td class=\"s1\" align=\"center\">< Nbcs > HOdep " <<
k <<
" </td>" << std::endl;
8138 for (
int k = k_min[sub];
k <= kkkkkkmax;
k++)
8139 htmlFile <<
"<td class=\"s1\" align=\"center\">< A > HOdepth " <<
k <<
" </td>" << std::endl;
8141 for (
int k = k_min[sub];
k <= kkkkkkmax;
k++)
8142 htmlFile <<
"<td class=\"s1\" align=\"center\">< W > HOdepth " <<
k <<
" </td>" << std::endl;
8144 for (
int k = k_min[sub];
k <= kkkkkkmax;
k++)
8145 htmlFile <<
"<td class=\"s1\" align=\"center\">< R > HOdepth " <<
k <<
" </td>" << std::endl;
8147 for (
int k = k_min[sub];
k <= kkkkkkmax;
k++)
8148 htmlFile <<
"<td class=\"s1\" align=\"center\">< TSn > HOdep " <<
k <<
" </td>" << std::endl;
8150 for (
int k = k_min[sub];
k <= kkkkkkmax;
k++)
8151 htmlFile <<
"<td class=\"s1\" align=\"center\">< TSx > HOdep " <<
k <<
" </td>" << std::endl;
8155 for (
int k = k_min[sub];
k <= kkkkkkmax;
k++)
8156 htmlFile <<
"<td class=\"s1\" align=\"center\">< Nbcs > HFdep " <<
k <<
" </td>" << std::endl;
8158 for (
int k = k_min[sub];
k <= kkkkkkmax;
k++)
8159 htmlFile <<
"<td class=\"s1\" align=\"center\">< A > HFdepth " <<
k <<
" </td>" << std::endl;
8161 for (
int k = k_min[sub];
k <= kkkkkkmax;
k++)
8162 htmlFile <<
"<td class=\"s1\" align=\"center\">< W > HFdepth " <<
k <<
" </td>" << std::endl;
8164 for (
int k = k_min[sub];
k <= kkkkkkmax;
k++)
8165 htmlFile <<
"<td class=\"s1\" align=\"center\">< R > HFdepth " <<
k <<
" </td>" << std::endl;
8167 for (
int k = k_min[sub];
k <= kkkkkkmax;
k++)
8168 htmlFile <<
"<td class=\"s1\" align=\"center\">< TSn > HFdep " <<
k <<
" </td>" << std::endl;
8170 for (
int k = k_min[sub];
k <= kkkkkkmax;
k++)
8171 htmlFile <<
"<td class=\"s1\" align=\"center\">< TSx > HFdep " <<
k <<
" </td>" << std::endl;
8174 htmlFile <<
"</tr>" << std::endl;
8194 for (
int i = 1;
i <= MaxLum;
i++) {
8197 for (
int sub = 1; sub <= 4; sub++) {
8198 int kkkkkkmax = k_max[sub];
8199 if ((sub == 4 || sub == 2 || sub == 1) &&
test == 1)
8200 kkkkkkmax = k_maxupgrade[sub];
8202 for (
int k = k_min[sub];
k <= kkkkkkmax;
k++) {
8206 if (HistNumBadChanDepth[
test][sub][
k]->GetBinContent(
i) > Cut0[
test][sub][
k])
8214 raw_class =
"<td class=\"s2\" align=\"center\">";
8216 raw_class =
"<td class=\"s3\" align=\"center\">";
8217 htmlFile <<
"<tr>" << std::endl;
8218 htmlFile <<
"<td class=\"s4\" align=\"center\">" <<
i <<
"</td>" << std::endl;
8220 htmlFile << raw_class << LumiEv->GetBinContent(
i) <<
"</td>" << std::endl;
8221 for (
int sub = 1; sub <= 4; sub++) {
8222 int kkkkkkmax = k_max[sub];
8223 if ((sub == 4 || sub == 2 || sub == 1) &&
test == 1)
8224 kkkkkkmax = k_maxupgrade[sub];
8226 for (
int k = k_min[sub];
k <= kkkkkkmax;
k++) {
8227 if (HistNumBadChanDepth[
test][sub][
k]->GetBinContent(
i) > Cut0[
test][sub][
k])
8228 htmlFile <<
"<td class=\"s6\" align=\"center\">" << HistNumBadChanDepth[
test][sub][
k]->GetBinContent(
i)
8229 <<
"</td>" << std::endl;
8231 htmlFile << raw_class << HistNumBadChanDepth[
test][sub][
k]->GetBinContent(
i) <<
"</td>" << std::endl;
8261 htmlFile <<
"</tr>" << std::endl;
8266 htmlFile <<
"</table>" << std::endl;
8267 htmlFile <<
"<br>" << std::endl;
8268 htmlFile <<
"</body> " << std::endl;
8269 htmlFile <<
"</html> " << std::endl;
8276 htmlFile.open(
"SummedAmplitudes_GL.html");
8277 htmlFile <<
"</html><html xmlns=\"http://www.w3.org/1999/xhtml\">" << std::endl;
8278 htmlFile <<
"<head>" << std::endl;
8279 htmlFile <<
"<meta http-equiv=\"Content-Type\" content=\"text/html\"/>" << std::endl;
8280 htmlFile <<
"<title> for summed Amplitudes of each sub-detector </title>" << std::endl;
8281 htmlFile <<
"<style type=\"text/css\">" << std::endl;
8282 htmlFile <<
" body,td{ background-color: #FFFFCC; font-family: arial, arial ce, helvetica; font-size: 12px; }" 8284 htmlFile <<
" td.s0 { font-family: arial, arial ce, helvetica; }" << std::endl;
8285 htmlFile <<
" td.s1 { font-family: arial, arial ce, helvetica; font-weight: bold; background-color: #FFC169; " 8286 "text-align: center;}" 8288 htmlFile <<
" td.s2 { font-family: arial, arial ce, helvetica; background-color: #eeeeee; }" << std::endl;
8289 htmlFile <<
" td.s3 { font-family: arial, arial ce, helvetica; background-color: #d0d0d0; }" << std::endl;
8290 htmlFile <<
" td.s4 { font-family: arial, arial ce, helvetica; background-color: #FFC169; }" << std::endl;
8291 htmlFile <<
" td.s5 { font-family: arial, arial ce, helvetica; background-color: #00FF00; }" << std::endl;
8292 htmlFile <<
" td.s6 { font-family: arial, arial ce, helvetica; background-color: #FF0000; }" << std::endl;
8294 htmlFile <<
"</style>" << std::endl;
8295 htmlFile <<
"<body>" << std::endl;
8296 htmlFile <<
"<h1> Averaged Summed Amplitudes & corresponding occupancy of each sub-detector in Global Run = " 8298 htmlFile <<
"<a name=\"Top\"></a>\n";
8299 htmlFile <<
"<b>Contents:<br>\n";
8300 htmlFile <<
"1. <a href=\"#SAhigh\">average SA&Occupancy for Signal </a><br>\n";
8301 htmlFile <<
"2. <a href=\"#SAlow\">average SA&Occupancy for NoSignal </a><br>\n";
8302 htmlFile <<
"3. <a href=\"#SAmax\"> maxSA & maxOccupancy; SA & Occupancy; </a><br>\n";
8303 htmlFile <<
"4. <a href=\"#FullTable\">Table(avA; avSA; avOccupancy; maxSA; maxOccupancy;) </a><br>\n";
8305 htmlFile <<
"<h2> Clarifying on averaged Summed Amplitude (avSA) : </h2>" << std::endl;
8306 htmlFile <<
"<h3> Summed Amplitudes (SA) are averaged over all events of each LS: avSA_LS = SUM (SA_eventsInLS) / " 8307 "N_eventsInLS ,</h3>" 8309 htmlFile <<
"<h3> where SA = SUM(A_i) ,and means that Amplitude is summed over all sub-detector channels, </h3>" 8311 htmlFile <<
"<h3> where A_i = SUM(A_depth) denotes channel amplitude summed over depths; </h3>" << std::endl;
8313 htmlFile <<
" <td><a href=\"https://cms-conddb.cern.ch/eosweb/hcal/HcalRemoteMonitoring/CMT/SAwriteup.html\"> see " 8314 "more details for SummedAmplitudes</a></td>" 8316 htmlFile <<
"<h2> Apply cuts on A_i to take into account channels with or/and without a'la Signal: </h2>" 8318 htmlFile <<
" <img src=\"ChannelDepthsummedAmplitudes.png\" />" << std::endl;
8319 htmlFile <<
"<br>" << std::endl;
8320 htmlFile <<
"<br>" << std::endl;
8321 htmlFile <<
"<a name=\"SAhigh\"></a>\n";
8322 htmlFile <<
"<h1> 1. for channels with signal </h1>" << std::endl;
8323 htmlFile <<
"<br>" << std::endl;
8324 htmlFile <<
"<h2> for HB: A_i> 80; </h2>" << std::endl;
8325 htmlFile <<
" <img src=\"SummedAmplitudesSignal_HB.png\" />" << std::endl;
8326 htmlFile <<
"<br>" << std::endl;
8327 htmlFile <<
"<h2> for HE: A_i> 200;</h2>" << std::endl;
8328 htmlFile <<
" <img src=\"SummedAmplitudesSignal_HE.png\" />" << std::endl;
8329 htmlFile <<
"<br>" << std::endl;
8330 htmlFile <<
"<h2> for HO: A_i> 1200;</h2>" << std::endl;
8331 htmlFile <<
" <img src=\"SummedAmplitudesSignal_HO.png\" />" << std::endl;
8332 htmlFile <<
"<br>" << std::endl;
8333 htmlFile <<
"<h2> for HF: A_i> 600;</h2>" << std::endl;
8334 htmlFile <<
" <img src=\"SummedAmplitudesSignal_HF.png\" />" << std::endl;
8335 htmlFile <<
"<br>" << std::endl;
8336 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
8338 htmlFile <<
"<a name=\"SAlow\"></a>\n";
8339 htmlFile <<
"<h1> 2. for channels w/o signal </h1>" << std::endl;
8340 htmlFile <<
"<br>" << std::endl;
8341 htmlFile <<
"<h2> for HB: A_i< 80;</h2>" << std::endl;
8342 htmlFile <<
" <img src=\"NoSignalSummedAmplitudes_HB.png\" />" << std::endl;
8343 htmlFile <<
"<br>" << std::endl;
8344 htmlFile <<
"<h2> for HE: A_i< 200;</h2>" << std::endl;
8345 htmlFile <<
" <img src=\"NoSignalSummedAmplitudes_HE.png\" />" << std::endl;
8346 htmlFile <<
"<br>" << std::endl;
8347 htmlFile <<
"<h2> for HO: A_i< 1200;</h2>" << std::endl;
8348 htmlFile <<
" <img src=\"NoSignalSummedAmplitudes_HO.png\" />" << std::endl;
8349 htmlFile <<
"<br>" << std::endl;
8350 htmlFile <<
"<h2> for HF: A_i< 600;</h2>" << std::endl;
8351 htmlFile <<
" <img src=\"NoSignalSummedAmplitudes_HF.png\" />" << std::endl;
8352 htmlFile <<
"<br>" << std::endl;
8353 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
8355 htmlFile <<
"<br>" << std::endl;
8356 htmlFile <<
"<br>" << std::endl;
8357 htmlFile <<
"<a name=\"SAmax\"></a>\n";
8358 htmlFile <<
"<h1> 3. four plots: ---1---> max SA ---2---> max Occupancy ---3---> SA ---4---> Occupancy over all " 8359 "events of LS </h1>" 8361 htmlFile <<
"<br>" << std::endl;
8363 htmlFile <<
"<h2> for HB: maxSA vs LS, masOccupancy vs LS, SA, Occupancy </h2>" << std::endl;
8364 htmlFile <<
" <img src=\"MaxxSummedAmplitudes_HB.png\" />" << std::endl;
8366 " ......(forCut:SAmax>60000) N= " 8367 << countamplmaxHB <<
" ...... (forCut:OCCUPmax>2000) N= " << countoccumaxHB <<
" </h2>" << std::endl;
8369 " ......(forCut:SA>60000) N= " 8370 << countamplHB <<
" ...... (forCut:OCCUP>2000) N= " << countoccuHB <<
" </h2>" << std::endl;
8371 htmlFile <<
"<br>" << std::endl;
8372 htmlFile <<
"<h3> ONLY for HB (cross-check): channel Amplitudes for events in the Tail (averaged): </h3>" 8374 htmlFile <<
" <img src=\"AtaildepthHB.png\" />" << std::endl;
8375 htmlFile <<
"<br>" << std::endl;
8377 htmlFile <<
"<h2> for HE: maxSA vs LS, masOccupancy vs LS, SA, Occupancy </h2>" << std::endl;
8378 htmlFile <<
" <img src=\"MaxxSummedAmplitudes_HE.png\" />" << std::endl;
8380 " ......(forCut:SAmax>60000) N= " 8381 << countamplmaxHE <<
" ...... (forCut:OCCUPmax>1200) N= " << countoccumaxHE <<
" </h2>" << std::endl;
8383 " ......(forCut:SA>60000) N= " 8384 << countamplHE <<
" ...... (forCut:OCCUP>1200) N= " << countoccuHE <<
" </h2>" << std::endl;
8385 htmlFile <<
"<br>" << std::endl;
8387 htmlFile <<
"<h2> for HO: maxSA vs LS, masOccupancy vs LS, SA, Occupancy </h2>" << std::endl;
8388 htmlFile <<
" <img src=\"MaxxSummedAmplitudes_HO.png\" />" << std::endl;
8390 " ......(forCut:SAmax>150000) N= " 8391 << countamplmaxHO <<
" ...... (forCut:OCCUPmax>2000) N= " << countoccumaxHO <<
" </h2>" << std::endl;
8393 " ......(forCut:SA>150000) N= " 8394 << countamplHO <<
" ...... (forCut:OCCUP>2000) N= " << countoccuHO <<
" </h2>" << std::endl;
8395 htmlFile <<
"<br>" << std::endl;
8397 htmlFile <<
"<h2> for HF: maxSA vs LS, masOccupancy vs LS, SA, Occupancy </h2>" << std::endl;
8398 htmlFile <<
" <img src=\"MaxxSummedAmplitudes_HF.png\" />" << std::endl;
8400 " ......(forCut:SAmax>22000) N= " 8401 << countamplmaxHF <<
" ...... (forCut:OCCUPmax>860) N= " << countoccumaxHF <<
" </h2>" << std::endl;
8403 " ......(forCut:SA>22000) N= " 8404 << countamplHF <<
" ...... (forCut:OCCUP>860) N= " << countoccuHF <<
" </h2>" << std::endl;
8405 htmlFile <<
"<br>" << std::endl;
8406 htmlFile <<
"<h2> Occupancy HF (ONLY) vs LS </h2>" << std::endl;
8407 htmlFile <<
" <img src=\"sumOccupancyHF.png\" />" << std::endl;
8408 htmlFile <<
"<br>" << std::endl;
8409 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
8411 htmlFile <<
"<a name=\"FullTable\"></a>\n";
8412 htmlFile <<
"<h2> 4.Lumisection Status: </h2>" << std::endl;
8413 htmlFile <<
"<h3> Legends: HBdepth1 red boxes correspond LSs selected with cut: <td class=\"s6\" align=\"center\">" 8414 << Cut0[1][1][1] << std::endl;
8415 htmlFile <<
"<h3> Legends: HEdepth1 red boxes correspond LSs selected with cut: <td class=\"s6\" align=\"center\">" 8416 << Cut0[1][2][1] << std::endl;
8417 htmlFile <<
"<h3> Legends: HOdepth4 red boxes correspond LSs selected with cut: <td class=\"s6\" align=\"center\">" 8418 << Cut0[1][3][4] << std::endl;
8419 htmlFile <<
"<h3> Legends: HFdepth1 red boxes correspond LSs selected with cut: <td class=\"s6\" align=\"center\">" 8420 << Cut0[1][4][1] << std::endl;
8421 htmlFile <<
"<br>" << std::endl;
8423 htmlFile <<
"<br>" << std::endl;
8424 htmlFile <<
"<table>" << std::endl;
8426 htmlFile <<
"<td class=\"s4\" align=\"center\">LS</td>" << std::endl;
8428 htmlFile <<
"<td class=\"s1\" align=\"center\"> Num.of ev.</td>" << std::endl;
8433 htmlFile <<
"<td class=\"s1\" align=\"center\">< A >HB Depth1</td>" << std::endl;
8434 htmlFile <<
"<td class=\"s1\" align=\"center\">< A >HE Depth1</td>" << std::endl;
8435 htmlFile <<
"<td class=\"s1\" align=\"center\">< A >HO Depth4</td>" << std::endl;
8436 htmlFile <<
"<td class=\"s1\" align=\"center\">< A >HF Depth1</td>" << std::endl;
8438 htmlFile <<
"<td class=\"s1\" align=\"center\">< SA >HB (Signal) </td>" << std::endl;
8439 htmlFile <<
"<td class=\"s1\" align=\"center\">< Occup. > HB (Signal) </td>" << std::endl;
8440 htmlFile <<
"<td class=\"s1\" align=\"center\">< SA >HF (Signal) </td>" << std::endl;
8441 htmlFile <<
"<td class=\"s1\" align=\"center\">< Occup. > HF (Signal) </td>" << std::endl;
8443 htmlFile <<
"<td class=\"s1\" align=\"center\">< SA >HB (NoSignal) </td>" << std::endl;
8444 htmlFile <<
"<td class=\"s1\" align=\"center\">< Occup. > HB (NoSignal) </td>" << std::endl;
8445 htmlFile <<
"<td class=\"s1\" align=\"center\">< SA >HF (NoSignal) </td>" << std::endl;
8446 htmlFile <<
"<td class=\"s1\" align=\"center\">< Occup. > HF (NoSignal) </td>" << std::endl;
8448 htmlFile <<
"<td class=\"s1\" align=\"center\"> maxSA HB </td>" << std::endl;
8449 htmlFile <<
"<td class=\"s1\" align=\"center\"> maxOccup. HB </td>" << std::endl;
8450 htmlFile <<
"<td class=\"s1\" align=\"center\"> maxSA HF </td>" << std::endl;
8451 htmlFile <<
"<td class=\"s1\" align=\"center\"> maxOccup. HF </td>" << std::endl;
8453 htmlFile <<
"</tr>" << std::endl;
8456 for (
int i = 1;
i <= MaxLum;
i++) {
8458 raw_class =
"<td class=\"s2\" align=\"center\">";
8460 raw_class =
"<td class=\"s3\" align=\"center\">";
8461 htmlFile <<
"<tr>" << std::endl;
8463 htmlFile <<
"<td class=\"s4\" align=\"center\">" <<
i <<
"</td>" << std::endl;
8466 htmlFile << raw_class << LumiEv->GetBinContent(
i) <<
"</td>" << std::endl;
8471 for (
int sub = 1; sub <= 4; sub++) {
8472 for (
int k = k_min[sub];
k <= k_min[sub];
k++) {
8473 if (HistNumBadChanDepth[
test][sub][
k]->GetBinContent(
i) > Cut0[
test][sub][
k])
8474 htmlFile <<
"<td class=\"s6\" align=\"center\">" << HistNumBadChanDepth[
test][sub][
k]->GetBinContent(
i)
8475 <<
"</td>" << std::endl;
8478 htmlFile << raw_class << HistNumBadChanDepth[
test][sub][
k]->GetBinContent(
i) <<
"</td>" << std::endl;
8481 if (SummedAmplitudeHisto[0]) {
8482 htmlFile << raw_class << SummedAmplitudeHisto[0]->GetBinContent(
i) <<
"</td>" << std::endl;
8483 htmlFile << raw_class << SummedAmplitudeOccupancyHisto[0]->GetBinContent(
i) <<
"</td>" << std::endl;
8484 htmlFile << raw_class << SummedAmplitudeHisto[3]->GetBinContent(
i) <<
"</td>" << std::endl;
8485 htmlFile << raw_class << SummedAmplitudeOccupancyHisto[3]->GetBinContent(
i) <<
"</td>" << std::endl;
8487 htmlFile << raw_class << NoSignalSummedAmplitudeHisto[0]->GetBinContent(
i) <<
"</td>" << std::endl;
8488 htmlFile << raw_class << NoSignalSummedAmplitudeOccupancyHisto[0]->GetBinContent(
i) <<
"</td>" << std::endl;
8489 htmlFile << raw_class << NoSignalSummedAmplitudeHisto[3]->GetBinContent(
i) <<
"</td>" << std::endl;
8490 htmlFile << raw_class << NoSignalSummedAmplitudeOccupancyHisto[3]->GetBinContent(
i) <<
"</td>" << std::endl;
8492 htmlFile << raw_class << MaxxSummedAmplitudeHisto[0]->GetBinContent(
i) <<
"</td>" << std::endl;
8493 htmlFile << raw_class << MaxxSummedAmplitudeOccupancyHisto[0]->GetBinContent(
i) <<
"</td>" << std::endl;
8494 htmlFile << raw_class << MaxxSummedAmplitudeHisto[3]->GetBinContent(
i) <<
"</td>" << std::endl;
8495 htmlFile << raw_class << MaxxSummedAmplitudeOccupancyHisto[3]->GetBinContent(
i) <<
"</td>" << std::endl;
8497 htmlFile <<
"</tr>" << std::endl;
8500 htmlFile <<
"</table>" << std::endl;
8501 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
8503 htmlFile <<
"<br>" << std::endl;
8504 htmlFile <<
"</body> " << std::endl;
8505 htmlFile <<
"</html> " << std::endl;
8547 htmlFile.open(
"CMTresults.html");
8548 htmlFile <<
"</html><html xmlns=\"http://www.w3.org/1999/xhtml\">" << std::endl;
8549 htmlFile <<
"<head>" << std::endl;
8550 htmlFile <<
"<meta http-equiv=\"Content-Type\" content=\"text/html\"/>" << std::endl;
8551 htmlFile <<
"<title> Certification Monitoring Tool </title>" << std::endl;
8552 htmlFile <<
"<style type=\"text/css\">" << std::endl;
8553 htmlFile <<
" body,td{ background-color: #FFFFCC; font-family: arial, arial ce, helvetica; font-size: 12px; }" 8555 htmlFile <<
" td.s0 { font-family: arial, arial ce, helvetica; }" << std::endl;
8556 htmlFile <<
" td.s1 { font-family: arial, arial ce, helvetica; font-weight: bold; background-color: #FFC169; " 8557 "text-align: center;}" 8559 htmlFile <<
" td.s2 { font-family: arial, arial ce, helvetica; background-color: #eeeeee; }" << std::endl;
8560 htmlFile <<
" td.s3 { font-family: arial, arial ce, helvetica; background-color: #d0d0d0; }" << std::endl;
8561 htmlFile <<
" td.s4 { font-family: arial, arial ce, helvetica; background-color: #FFC169; }" << std::endl;
8562 htmlFile <<
"</style>" << std::endl;
8563 htmlFile <<
"<body>" << std::endl;
8564 htmlFile <<
"<h1> LS-certification (recommendation) from analysis of CMT-dependencies of THIS run </h1>" 8566 htmlFile <<
"<br>" << std::endl;
8567 htmlFile <<
"<br>" << std::endl;
8568 htmlFile <<
"<h2> - List of suspicious LSs: </h2> " << std::endl;
8569 htmlFile <<
"<br>" << std::endl;
8570 htmlFile <<
"<h3> to be added </h3> " << std::endl;
8571 htmlFile <<
"<br>" << std::endl;
8572 htmlFile <<
"<br>" << std::endl;
8573 htmlFile <<
"<br>" << std::endl;
8574 htmlFile <<
"<h2> - Comments: </h2> " << std::endl;
8575 htmlFile <<
"<br>" << std::endl;
8576 htmlFile <<
"<h3> to be added </h3> " << std::endl;
8577 htmlFile <<
"<br>" << std::endl;
8578 htmlFile <<
"<br>" << std::endl;
8579 htmlFile <<
"<br>" << std::endl;
8580 htmlFile <<
"</body> " << std::endl;
8581 htmlFile <<
"</html> " << std::endl;
8587 htmlFile.open(
"LumiList.html");
8588 htmlFile <<
"</html><html xmlns=\"http://www.w3.org/1999/xhtml\">" << std::endl;
8589 htmlFile <<
"<head>" << std::endl;
8590 htmlFile <<
"<meta http-equiv=\"Content-Type\" content=\"text/html\"/>" << std::endl;
8591 htmlFile <<
"<title> Certification Monitoring Tool </title>" << std::endl;
8592 htmlFile <<
"<style type=\"text/css\">" << std::endl;
8593 htmlFile <<
" body,td{ background-color: #FFFFCC; font-family: arial, arial ce, helvetica; font-size: 12px; }" 8595 htmlFile <<
" td.s0 { font-family: arial, arial ce, helvetica; }" << std::endl;
8596 htmlFile <<
" td.s1 { font-family: arial, arial ce, helvetica; font-weight: bold; background-color: #FFC169; " 8597 "text-align: center;}" 8599 htmlFile <<
" td.s2 { font-family: arial, arial ce, helvetica; background-color: #eeeeee; }" << std::endl;
8600 htmlFile <<
" td.s3 { font-family: arial, arial ce, helvetica; background-color: #d0d0d0; }" << std::endl;
8601 htmlFile <<
" td.s4 { font-family: arial, arial ce, helvetica; background-color: #FFC169; }" << std::endl;
8602 htmlFile <<
" td.s5 { font-family: arial, arial ce, helvetica; background-color: #00FF00; }" << std::endl;
8603 htmlFile <<
" td.s6 { font-family: arial, arial ce, helvetica; background-color: #FF0000; }" << std::endl;
8605 htmlFile <<
"</style>" << std::endl;
8606 htmlFile <<
"<body>" << std::endl;
8608 htmlFile <<
"<h1> Certification Monitoring Tool, GLOBAL RUN = " <<
runnumber <<
". </h1>" << std::endl;
8609 htmlFile <<
"<br>" << std::endl;
8610 htmlFile <<
" <td><a href=\"https://cms-conddb.cern.ch/eosweb/hcal/HcalRemoteMonitoring/CMT/GLOBAL_" <<
runnumber 8611 <<
"/CMTresults.html\"> CMT-analysis RESULTS (for this run) </a></td>" << std::endl;
8612 htmlFile <<
"<br>" << std::endl;
8613 htmlFile <<
"<br>" << std::endl;
8616 htmlFile <<
"<h2> 1. General information (Full number of LS = " << MaxLum <<
" ). </h2>" << std::endl;
8617 htmlFile <<
" <img src=\"LumiEvent.png\" />" << std::endl;
8618 htmlFile <<
"<br>" << std::endl;
8620 htmlFile <<
"<h2> 2. HCAL status for different criteria </h2>" << std::endl;
8622 htmlFile <<
" <td><a href=\"https://cms-conddb.cern.ch/eosweb/hcal/HcalRemoteMonitoring/CMT/HELP.html\"> " 8623 "Description of criteria for bad channel selection</a></td>" 8625 htmlFile <<
"<br>" << std::endl;
8626 htmlFile <<
"<table width=\"600\">" << std::endl;
8627 htmlFile <<
"<tr>" << std::endl;
8628 htmlFile <<
" <td><a href=\"https://cms-conddb.cern.ch/eosweb/hcal/HcalRemoteMonitoring/CMT/GLOBAL_" <<
runnumber 8629 <<
"/CapID_GL.html\">Cap ID errors</a></td>" << std::endl;
8631 htmlFile <<
" <td><a href=\"https://cms-conddb.cern.ch/eosweb/hcal/HcalRemoteMonitoring/CMT/GLOBAL_" <<
runnumber 8632 <<
"/ADCampl_GL.html\">Amplitude</a></td>" << std::endl;
8634 htmlFile <<
" <td><a href=\"https://cms-conddb.cern.ch/eosweb/hcal/HcalRemoteMonitoring/CMT/GLOBAL_" <<
runnumber 8635 <<
"/Width_GL.html\">Width</a></td>" << std::endl;
8636 htmlFile <<
" <td><a href=\"https://cms-conddb.cern.ch/eosweb/hcal/HcalRemoteMonitoring/CMT/GLOBAL_" <<
runnumber 8637 <<
"/Ratio_GL.html\">Ratio</a></td>" << std::endl;
8638 htmlFile <<
" <td><a href=\"https://cms-conddb.cern.ch/eosweb/hcal/HcalRemoteMonitoring/CMT/GLOBAL_" <<
runnumber 8639 <<
"/Tmean_GL.html\">TS mean</a></td>" << std::endl;
8640 htmlFile <<
" <td><a href=\"https://cms-conddb.cern.ch/eosweb/hcal/HcalRemoteMonitoring/CMT/GLOBAL_" <<
runnumber 8641 <<
"/Tmax_GL.html\">TS max</a></td>" << std::endl;
8643 htmlFile <<
" <td><a href=\"https://cms-conddb.cern.ch/eosweb/hcal/HcalRemoteMonitoring/CMT/GLOBAL_" <<
runnumber 8644 <<
"/SummedAmplitudes_GL.html\">SummedAmplitudes</a></td>" << std::endl;
8646 htmlFile <<
"</tr>" << std::endl;
8647 htmlFile <<
"</table>" << std::endl;
8648 htmlFile <<
"<br>" << std::endl;
8649 htmlFile <<
"</body> " << std::endl;
8650 htmlFile <<
"</html> " << std::endl;
8665 int copyContents(TH1F **hDest, TString hname, TString htitle,
const TH1F *hSrc,
int lastBin) {
8666 if (lastBin > hSrc->GetNbinsX()) {
8667 std::cout <<
"copyContents from " << hSrc->GetName() <<
": histo has " << hSrc->GetNbinsX()
8668 <<
" bins, when lastBin=" << lastBin <<
" was requested\n";
8672 (*hDest) =
new TH1F(hname, htitle, lastBin, 0, lastBin);
8673 (*hDest)->SetDirectory(0);
8674 (*hDest)->SetStats(0);
8676 for (
int ibin = 1; ibin <= lastBin; ibin++) {
8677 (*hDest)->SetBinContent(ibin, hSrc->GetBinContent(ibin));
8678 (*hDest)->SetBinError(ibin, hSrc->GetBinError(ibin));
int main(int argc, char *argv[])
int copyContents(TH1F **hDest, TString hname, TString htitle, const TH1F *hSrc, int lastBin)