35 gROOT->SetStyle(
"Plain");
36 gStyle->SetOptStat(0);
37 gStyle->SetOptTitle(1);
42 sprintf(fname,
"%s",
argv[1]);
48 string promt = (
string)fname;
50 for (
unsigned int i = promt.size() - 11;
i < promt.size() - 5;
i++)
51 runnumber += fname[
i];
53 TFile *hfile =
new TFile(fname,
"READ");
55 TDirectory *
dir = (TDirectory *)hfile->FindObjectAny(dirnm.c_str());
59 double Cut0[7][5][8] = {
60 {{0., 0., 0., 0., 0., 0., 0., 0.},
61 {0., 1.0, 1.0, 0., 0., 0., 0., 0.},
62 {0., 1., 1., 1., 0., 0., 0., 0.},
63 {0., 0., 0., 0., 1., 0., 0., 0.},
64 {0., 1., 1., 0., 0., 0., 0., 0.}},
66 {{0., 0., 0., 0., 0., 0., 0., 0.},
67 {0., 3500., 3500., 3500., 3500., 0., 0., 0.},
68 {0., 12000., 4500., 3500., 3500., 4000., 4500., 5500.},
69 {0., 0., 0., 0., 200., 0., 0., 0.},
70 {0., 4500., 4500., 4500., 4500., 0., 0., 0.}},
71 {{0., 0., 0., 0., 0., 0., 0., 0.},
72 {0., 3., 3., 0., 0., 0., 0., 0.},
73 {0., 3., 3., 3., 0., 0., 0., 0.},
74 {0., 0., 0., 0., 3., 0., 0., 0.},
75 {0., 2., 2., 0., 0., 0., 0., 0.}},
76 {{0., 0., 0., 0., 0., 0., 0., 0.},
77 {0., 0.4, 0.4, 0., 0., 0., 0., 0.},
78 {0., 0.4, 0.4, 0.4, 0., 0., 0., 0.},
79 {0., 0., 0., 0., 0.4, 0., 0., 0.},
80 {0., 0.8, 0.8, 0., 0., 0., 0., 0.}},
81 {{0., 0., 0., 0., 0., 0., 0., 0.},
82 {0., 4.7, 4.7, 0., 0., 0., 0., 0.},
83 {0., 4.8, 4.8, 5.0, 0., 0., 0., 0.},
84 {0., 0., 0., 0., 4.8, 0., 0., 0.},
85 {0., 4.0, 4.0, 0., 0., 0., 0., 0.}},
86 {{0., 0., 0., 0., 0., 0., 0., 0.},
87 {0., 3.5, 3.5, 0., 0., 0., 0., 0.},
88 {0., 4.0, 4.0, 4.0, 0., 0., 0., 0.},
89 {0., 0., 0., 0., 3., 0., 0., 0.},
90 {0., 3.5, 3.5, 0., 0., 0., 0., 0.}},
91 {{0., 0., 0., 0., 0., 0., 0., 0.},
92 {0., 0., 0., 0., 0., 0., 0., 0.},
93 {0., 0., 0., 0., 0., 0., 0., 0.},
94 {0., 0., 0., 0., 0., 0., 0., 0.},
95 {0., 0., 0., 0., 0., 0., 0., 0.}}};
97 double CutAb[5][8] = {{0., 0., 0., 0., 0., 0., 0., 0.},
98 {0., 20., 7., 0., 0., 0., 0., 0.},
99 {0., 16., 13., 4., 0., 0., 0., 0.},
100 {0., 0., 0., 0., 45., 0., 0., 0.},
101 {0., 10., 5., 0., 0., 0., 0., 0.}};
103 double CutPo[5][8] = {{0., 0., 0., 0., 0., 0., 0., 0.},
104 {0., 9., 3., 0., 0., 0., 0., 0.},
105 {0., 8., 6., 2., 0., 0., 0., 0.},
106 {0., 0., 0., 0., 20., 0., 0., 0.},
107 {0., 5., 3., 0., 0., 0., 0., 0.}};
124 TCanvas *
c1 =
new TCanvas(
"c1",
"Hcal4test", 200, 10, 700, 900);
126 TCanvas *cHB =
new TCanvas(
"cHB",
"cHB", 1000, 500);
127 TCanvas *cHE =
new TCanvas(
"cHE",
"cHE", 1500, 500);
128 TCanvas *cONE =
new TCanvas(
"cONE",
"cONE", 500, 500);
129 TCanvas *cFour =
new TCanvas(
"cFour",
"cFour", 1500, 1000);
130 TCanvas *cFour1 =
new TCanvas(
"cFour1",
"cFour1", 1200, 800);
131 TCanvas *cNine =
new TCanvas(
"cNine",
"cNine", 1500, 1500);
135 TCanvas *c4x6 =
new TCanvas(
"c4x6",
"c4x6", 1200, 2400);
137 TCanvas *c5x6 =
new TCanvas(
"c5x6",
"c5x6", 1500, 2400);
139 TCanvas *cRBX1 =
new TCanvas(
"cRBX1",
"cRBX1", 1200, 1000);
142 TCanvas *cRBX31 =
new TCanvas(
"cRBX31",
"cRBX31", 1860, 600);
147 int k_min[5] = {0, 1, 1, 4, 1};
149 int k_max[5] = {0, 2, 3, 4, 2};
151 int k_maxupgrade[5] = {0, 4, 7, 4, 4};
159 TH1F *LumLum = (TH1F *)dir->FindObjectAny(
"h_lsnumber_per_eachLS");
160 int MaxLumDanila = LumLum->GetBinContent(LumLum->GetMaximumBin());
161 cout <<
" MaxLumDanila= " << MaxLumDanila << endl;
164 LumLum->SetMarkerStyle(10);
165 LumLum->SetMarkerSize(0.8);
166 LumLum->GetYaxis()->SetLabelSize(0.04);
167 LumLum->SetTitle(
"Cont. number per LS \b");
168 LumLum->SetXTitle(
"Cont.number \b");
169 LumLum->SetYTitle(
"Ls \b");
170 LumLum->SetMarkerColor(4);
171 LumLum->SetLineColor(0);
172 LumLum->SetMinimum(0.8);
173 LumLum->GetXaxis()->SetRangeUser(0, MaxLumDanila);
174 LumLum->Draw(
"Error");
177 TH1F *LumiEv = (TH1F *)dir->FindObjectAny(
"h_nevents_per_eachRealLS");
178 int MaxLum0 = LumiEv->GetBinContent(LumiEv->GetMaximumBin());
180 for (
int i = 1;
i <= LumiEv->GetXaxis()->GetNbins();
i++) {
181 if (LumiEv->GetBinContent(
i)) {
185 cout <<
" MaxLum0= " << MaxLum0 <<
" MaxLum= " << MaxLum << endl;
191 LumiEv->GetYaxis()->SetLabelSize(0.04);
192 LumiEv->SetTitle(
"Number of events per LS");
193 LumiEv->SetXTitle(
"LS");
194 LumiEv->SetYTitle(
"Number of events ");
195 LumiEv->SetMarkerStyle(10);
196 LumiEv->SetMarkerSize(0.8);
197 LumiEv->SetMarkerColor(4);
198 LumiEv->SetLineColor(0);
200 LumiEv->GetXaxis()->SetRangeUser(0, MaxLum);
201 LumiEv->Draw(
"Error");
203 cHB->Print(
"LumiEvent.png");
209 TH1F *H_NumBadChanDepth[7][5][5];
215 H_NumBadChanDepth[1][1][1] = (TH1F *)dir->FindObjectAny(
"h_sumADCAmplLS1");
216 H_NumBadChanDepth[1][1][2] = (TH1F *)dir->FindObjectAny(
"h_sumADCAmplLS2");
218 H_NumBadChanDepth[1][2][1] = (TH1F *)dir->FindObjectAny(
"h_sumADCAmplLS3");
219 H_NumBadChanDepth[1][2][2] = (TH1F *)dir->FindObjectAny(
"h_sumADCAmplLS4");
220 H_NumBadChanDepth[1][2][3] = (TH1F *)dir->FindObjectAny(
"h_sumADCAmplLS5");
222 H_NumBadChanDepth[1][3][4] = (TH1F *)dir->FindObjectAny(
"h_sumADCAmplLS8");
224 H_NumBadChanDepth[1][4][1] = (TH1F *)dir->FindObjectAny(
"h_sumADCAmplLS6");
225 H_NumBadChanDepth[1][4][2] = (TH1F *)dir->FindObjectAny(
"h_sumADCAmplLS7");
231 H_NumBadChanDepth[2][1][1] = (TH1F *)dir->FindObjectAny(
"h_sumAmplitudeLS1");
232 H_NumBadChanDepth[2][1][2] = (TH1F *)dir->FindObjectAny(
"h_sumAmplitudeLS2");
234 H_NumBadChanDepth[2][2][1] = (TH1F *)dir->FindObjectAny(
"h_sumAmplitudeLS3");
235 H_NumBadChanDepth[2][2][2] = (TH1F *)dir->FindObjectAny(
"h_sumAmplitudeLS4");
236 H_NumBadChanDepth[2][2][3] = (TH1F *)dir->FindObjectAny(
"h_sumAmplitudeLS5");
238 H_NumBadChanDepth[2][3][4] = (TH1F *)dir->FindObjectAny(
"h_sumAmplitudeLS8");
240 H_NumBadChanDepth[2][4][1] = (TH1F *)dir->FindObjectAny(
"h_sumAmplitudeLS6");
241 H_NumBadChanDepth[2][4][2] = (TH1F *)dir->FindObjectAny(
"h_sumAmplitudeLS7");
247 H_NumBadChanDepth[3][1][1] = (TH1F *)dir->FindObjectAny(
"h_sumAmplLS1");
248 H_NumBadChanDepth[3][1][2] = (TH1F *)dir->FindObjectAny(
"h_sumAmplLS2");
250 H_NumBadChanDepth[3][2][1] = (TH1F *)dir->FindObjectAny(
"h_sumAmplLS3");
251 H_NumBadChanDepth[3][2][2] = (TH1F *)dir->FindObjectAny(
"h_sumAmplLS4");
252 H_NumBadChanDepth[3][2][3] = (TH1F *)dir->FindObjectAny(
"h_sumAmplLS5");
254 H_NumBadChanDepth[3][3][4] = (TH1F *)dir->FindObjectAny(
"h_sumAmplLS8");
256 H_NumBadChanDepth[3][4][1] = (TH1F *)dir->FindObjectAny(
"h_sumAmplLS6");
257 H_NumBadChanDepth[3][4][2] = (TH1F *)dir->FindObjectAny(
"h_sumAmplLS7");
263 H_NumBadChanDepth[4][1][1] = (TH1F *)dir->FindObjectAny(
"h_sumTSmeanALS1");
264 H_NumBadChanDepth[4][1][2] = (TH1F *)dir->FindObjectAny(
"h_sumTSmeanALS2");
266 H_NumBadChanDepth[4][2][1] = (TH1F *)dir->FindObjectAny(
"h_sumTSmeanALS3");
267 H_NumBadChanDepth[4][2][2] = (TH1F *)dir->FindObjectAny(
"h_sumTSmeanALS4");
268 H_NumBadChanDepth[4][2][3] = (TH1F *)dir->FindObjectAny(
"h_sumTSmeanALS5");
270 H_NumBadChanDepth[4][3][4] = (TH1F *)dir->FindObjectAny(
"h_sumTSmeanALS8");
272 H_NumBadChanDepth[4][4][1] = (TH1F *)dir->FindObjectAny(
"h_sumTSmeanALS6");
273 H_NumBadChanDepth[4][4][2] = (TH1F *)dir->FindObjectAny(
"h_sumTSmeanALS7");
279 H_NumBadChanDepth[5][1][1] = (TH1F *)dir->FindObjectAny(
"h_sumTSmaxALS1");
280 H_NumBadChanDepth[5][1][2] = (TH1F *)dir->FindObjectAny(
"h_sumTSmaxALS2");
282 H_NumBadChanDepth[5][2][1] = (TH1F *)dir->FindObjectAny(
"h_sumTSmaxALS3");
283 H_NumBadChanDepth[5][2][2] = (TH1F *)dir->FindObjectAny(
"h_sumTSmaxALS4");
284 H_NumBadChanDepth[5][2][3] = (TH1F *)dir->FindObjectAny(
"h_sumTSmaxALS5");
286 H_NumBadChanDepth[5][3][4] = (TH1F *)dir->FindObjectAny(
"h_sumTSmaxALS8");
288 H_NumBadChanDepth[5][4][1] = (TH1F *)dir->FindObjectAny(
"h_sumTSmaxALS6");
289 H_NumBadChanDepth[5][4][2] = (TH1F *)dir->FindObjectAny(
"h_sumTSmaxALS7");
291 gStyle->SetOptStat(110000);
294 for (
int sub = 1; sub <= 4; sub++) {
303 for (
int k = k_min[sub];
k <= k_max[sub];
k++) {
315 H_NumBadChanDepth[
test][sub][
k]->SetMarkerStyle(20);
316 H_NumBadChanDepth[
test][sub][
k]->SetMarkerSize(0.8);
318 H_NumBadChanDepth[
test][sub][
k]->SetTitle(
"Depth 1\b");
320 H_NumBadChanDepth[
test][sub][
k]->SetTitle(
"Depth 2\b");
322 H_NumBadChanDepth[
test][sub][
k]->SetTitle(
"Depth 3\b");
324 H_NumBadChanDepth[
test][sub][
k]->SetTitle(
"Depth 4\b");
326 H_NumBadChanDepth[
test][sub][
k]->SetXTitle(
" <Amplitude> \b");
328 H_NumBadChanDepth[
test][sub][
k]->SetXTitle(
" <Width> \b");
330 H_NumBadChanDepth[
test][sub][
k]->SetXTitle(
" <Ratio> \b");
332 H_NumBadChanDepth[
test][sub][
k]->SetXTitle(
" <TS mean> \b");
334 H_NumBadChanDepth[
test][sub][
k]->SetXTitle(
" <TS max> \b");
335 H_NumBadChanDepth[
test][sub][
k]->SetYTitle(
"Number of channel-LSs\b");
336 H_NumBadChanDepth[
test][sub][
k]->SetMarkerColor(4);
337 H_NumBadChanDepth[
test][sub][
k]->SetLineColor(0);
339 H_NumBadChanDepth[
test][sub][
k]->SetMinimum(0.8);
340 H_NumBadChanDepth[
test][sub][
k]->Draw(
"Error");
344 cHB->Print(
"H_NBCMNHB.png");
348 cHE->Print(
"H_NBCMNHE.png");
352 cONE->Print(
"H_NBCMNHO.png");
356 cHB->Print(
"H_NBCMNHF.png");
363 cHB->Print(
"H_ADCamplHB.png");
367 cHE->Print(
"H_ADCamplHE.png");
371 cONE->Print(
"H_ADCamplHO.png");
375 cHB->Print(
"H_ADCamplHF.png");
381 cHB->Print(
"H_WidthHB.png");
385 cHE->Print(
"H_WidthHE.png");
389 cONE->Print(
"H_WidthHO.png");
393 cHB->Print(
"H_WidthHF.png");
399 cHB->Print(
"H_RatioHB.png");
403 cHE->Print(
"H_RatioHE.png");
407 cONE->Print(
"H_RatioHO.png");
411 cHB->Print(
"H_RatioHF.png");
417 cHB->Print(
"H_TmeanHB.png");
421 cHE->Print(
"H_TmeanHE.png");
425 cONE->Print(
"H_TmeanHO.png");
429 cHB->Print(
"H_TmeanHF.png");
435 cHB->Print(
"H_TmaxHB.png");
439 cHE->Print(
"H_TmaxHE.png");
443 cONE->Print(
"H_TmaxHO.png");
447 cHB->Print(
"H_TmaxHF.png");
454 gStyle->SetOptStat(0);
460 TH2F *MapNumBadChanDepth[7][5][5];
461 TH2F *MapNumChanDepth[7][5][5];
462 TH2F *MapNumBadChanFull[7];
463 TH2F *MapNumChanFull[7];
469 MapNumBadChanDepth[0][1][1] = (TH2F *)dir->FindObjectAny(
"h_mapDepth1Error_HB");
470 MapNumBadChanDepth[0][1][2] = (TH2F *)dir->FindObjectAny(
"h_mapDepth2Error_HB");
472 MapNumBadChanDepth[0][2][1] = (TH2F *)dir->FindObjectAny(
"h_mapDepth1Error_HE");
473 MapNumBadChanDepth[0][2][2] = (TH2F *)dir->FindObjectAny(
"h_mapDepth2Error_HE");
474 MapNumBadChanDepth[0][2][3] = (TH2F *)dir->FindObjectAny(
"h_mapDepth3Error_HE");
476 MapNumBadChanDepth[0][3][4] = (TH2F *)dir->FindObjectAny(
"h_mapDepth4Error_HO");
478 MapNumBadChanDepth[0][4][1] = (TH2F *)dir->FindObjectAny(
"h_mapDepth1Error_HF");
479 MapNumBadChanDepth[0][4][2] = (TH2F *)dir->FindObjectAny(
"h_mapDepth2Error_HF");
481 MapNumBadChanFull[0] = (TH2F *)MapNumBadChanDepth[0][1][1]->Clone();
483 MapNumChanDepth[0][1][1] = (TH2F *)dir->FindObjectAny(
"h_mapDepth1_HB");
484 MapNumChanDepth[0][1][2] = (TH2F *)dir->FindObjectAny(
"h_mapDepth2_HB");
486 MapNumChanDepth[0][2][1] = (TH2F *)dir->FindObjectAny(
"h_mapDepth1_HE");
487 MapNumChanDepth[0][2][2] = (TH2F *)dir->FindObjectAny(
"h_mapDepth2_HE");
488 MapNumChanDepth[0][2][3] = (TH2F *)dir->FindObjectAny(
"h_mapDepth3_HE");
490 MapNumChanDepth[0][3][4] = (TH2F *)dir->FindObjectAny(
"h_mapDepth4_HO");
492 MapNumChanDepth[0][4][1] = (TH2F *)dir->FindObjectAny(
"h_mapDepth1_HF");
493 MapNumChanDepth[0][4][2] = (TH2F *)dir->FindObjectAny(
"h_mapDepth2_HF");
495 MapNumChanFull[0] = (TH2F *)MapNumChanDepth[0][1][1]->Clone();
501 MapNumBadChanDepth[1][1][1] = (TH2F *)dir->FindObjectAny(
"h_2DsumADCAmplLS1");
502 MapNumBadChanDepth[1][1][2] = (TH2F *)dir->FindObjectAny(
"h_2DsumADCAmplLS2");
504 MapNumBadChanDepth[1][2][1] = (TH2F *)dir->FindObjectAny(
"h_2DsumADCAmplLS3");
505 MapNumBadChanDepth[1][2][2] = (TH2F *)dir->FindObjectAny(
"h_2DsumADCAmplLS4");
506 MapNumBadChanDepth[1][2][3] = (TH2F *)dir->FindObjectAny(
"h_2DsumADCAmplLS5");
508 MapNumBadChanDepth[1][3][4] = (TH2F *)dir->FindObjectAny(
"h_2DsumADCAmplLS8");
510 MapNumBadChanDepth[1][4][1] = (TH2F *)dir->FindObjectAny(
"h_2DsumADCAmplLS6");
511 MapNumBadChanDepth[1][4][2] = (TH2F *)dir->FindObjectAny(
"h_2DsumADCAmplLS7");
513 MapNumBadChanFull[1] = (TH2F *)MapNumBadChanDepth[1][1][1]->Clone();
515 MapNumChanDepth[1][1][1] = (TH2F *)dir->FindObjectAny(
"h_2D0sumADCAmplLS1");
516 MapNumChanDepth[1][1][2] = (TH2F *)dir->FindObjectAny(
"h_2D0sumADCAmplLS2");
518 MapNumChanDepth[1][2][1] = (TH2F *)dir->FindObjectAny(
"h_2D0sumADCAmplLS3");
519 MapNumChanDepth[1][2][2] = (TH2F *)dir->FindObjectAny(
"h_2D0sumADCAmplLS4");
520 MapNumChanDepth[1][2][3] = (TH2F *)dir->FindObjectAny(
"h_2D0sumADCAmplLS5");
522 MapNumChanDepth[1][3][4] = (TH2F *)dir->FindObjectAny(
"h_2D0sumADCAmplLS8");
524 MapNumChanDepth[1][4][1] = (TH2F *)dir->FindObjectAny(
"h_2D0sumADCAmplLS6");
525 MapNumChanDepth[1][4][2] = (TH2F *)dir->FindObjectAny(
"h_2D0sumADCAmplLS7");
527 MapNumChanFull[1] = (TH2F *)MapNumChanDepth[1][1][1]->Clone();
533 MapNumBadChanDepth[2][1][1] = (TH2F *)dir->FindObjectAny(
"h_2DsumAmplitudeLS1");
534 MapNumBadChanDepth[2][1][2] = (TH2F *)dir->FindObjectAny(
"h_2DsumAmplitudeLS2");
536 MapNumBadChanDepth[2][2][1] = (TH2F *)dir->FindObjectAny(
"h_2DsumAmplitudeLS3");
537 MapNumBadChanDepth[2][2][2] = (TH2F *)dir->FindObjectAny(
"h_2DsumAmplitudeLS4");
538 MapNumBadChanDepth[2][2][3] = (TH2F *)dir->FindObjectAny(
"h_2DsumAmplitudeLS5");
540 MapNumBadChanDepth[2][3][4] = (TH2F *)dir->FindObjectAny(
"h_2DsumAmplitudeLS8");
542 MapNumBadChanDepth[2][4][1] = (TH2F *)dir->FindObjectAny(
"h_2DsumAmplitudeLS6");
543 MapNumBadChanDepth[2][4][2] = (TH2F *)dir->FindObjectAny(
"h_2DsumAmplitudeLS7");
545 MapNumBadChanFull[2] = (TH2F *)MapNumBadChanDepth[2][1][1]->Clone();
547 MapNumChanDepth[2][1][1] = (TH2F *)dir->FindObjectAny(
"h_2D0sumAmplitudeLS1");
548 MapNumChanDepth[2][1][2] = (TH2F *)dir->FindObjectAny(
"h_2D0sumAmplitudeLS2");
550 MapNumChanDepth[2][2][1] = (TH2F *)dir->FindObjectAny(
"h_2D0sumAmplitudeLS3");
551 MapNumChanDepth[2][2][2] = (TH2F *)dir->FindObjectAny(
"h_2D0sumAmplitudeLS4");
552 MapNumChanDepth[2][2][3] = (TH2F *)dir->FindObjectAny(
"h_2D0sumAmplitudeLS5");
554 MapNumChanDepth[2][3][4] = (TH2F *)dir->FindObjectAny(
"h_2D0sumAmplitudeLS8");
556 MapNumChanDepth[2][4][1] = (TH2F *)dir->FindObjectAny(
"h_2D0sumAmplitudeLS6");
557 MapNumChanDepth[2][4][2] = (TH2F *)dir->FindObjectAny(
"h_2D0sumAmplitudeLS7");
559 MapNumChanFull[2] = (TH2F *)MapNumChanDepth[2][1][1]->Clone();
565 MapNumBadChanDepth[3][1][1] = (TH2F *)dir->FindObjectAny(
"h_2DsumAmplLS1");
566 MapNumBadChanDepth[3][1][2] = (TH2F *)dir->FindObjectAny(
"h_2DsumAmplLS2");
568 MapNumBadChanDepth[3][2][1] = (TH2F *)dir->FindObjectAny(
"h_2DsumAmplLS3");
569 MapNumBadChanDepth[3][2][2] = (TH2F *)dir->FindObjectAny(
"h_2DsumAmplLS4");
570 MapNumBadChanDepth[3][2][3] = (TH2F *)dir->FindObjectAny(
"h_2DsumAmplLS5");
572 MapNumBadChanDepth[3][3][4] = (TH2F *)dir->FindObjectAny(
"h_2DsumAmplLS8");
574 MapNumBadChanDepth[3][4][1] = (TH2F *)dir->FindObjectAny(
"h_2DsumAmplLS6");
575 MapNumBadChanDepth[3][4][2] = (TH2F *)dir->FindObjectAny(
"h_2DsumAmplLS7");
577 MapNumBadChanFull[3] = (TH2F *)MapNumBadChanDepth[3][1][1]->Clone();
579 MapNumChanDepth[3][1][1] = (TH2F *)dir->FindObjectAny(
"h_2D0sumAmplLS1");
580 MapNumChanDepth[3][1][2] = (TH2F *)dir->FindObjectAny(
"h_2D0sumAmplLS2");
582 MapNumChanDepth[3][2][1] = (TH2F *)dir->FindObjectAny(
"h_2D0sumAmplLS3");
583 MapNumChanDepth[3][2][2] = (TH2F *)dir->FindObjectAny(
"h_2D0sumAmplLS4");
584 MapNumChanDepth[3][2][3] = (TH2F *)dir->FindObjectAny(
"h_2D0sumAmplLS5");
586 MapNumChanDepth[3][3][4] = (TH2F *)dir->FindObjectAny(
"h_2D0sumAmplLS8");
588 MapNumChanDepth[3][4][1] = (TH2F *)dir->FindObjectAny(
"h_2D0sumAmplLS6");
589 MapNumChanDepth[3][4][2] = (TH2F *)dir->FindObjectAny(
"h_2D0sumAmplLS7");
591 MapNumChanFull[3] = (TH2F *)MapNumChanDepth[3][1][1]->Clone();
597 MapNumBadChanDepth[4][1][1] = (TH2F *)dir->FindObjectAny(
"h_2DsumTSmeanALS1");
598 MapNumBadChanDepth[4][1][2] = (TH2F *)dir->FindObjectAny(
"h_2DsumTSmeanALS2");
600 MapNumBadChanDepth[4][2][1] = (TH2F *)dir->FindObjectAny(
"h_2DsumTSmeanALS3");
601 MapNumBadChanDepth[4][2][2] = (TH2F *)dir->FindObjectAny(
"h_2DsumTSmeanALS4");
602 MapNumBadChanDepth[4][2][3] = (TH2F *)dir->FindObjectAny(
"h_2DsumTSmeanALS5");
604 MapNumBadChanDepth[4][3][4] = (TH2F *)dir->FindObjectAny(
"h_2DsumTSmeanALS8");
606 MapNumBadChanDepth[4][4][1] = (TH2F *)dir->FindObjectAny(
"h_2DsumTSmeanALS6");
607 MapNumBadChanDepth[4][4][2] = (TH2F *)dir->FindObjectAny(
"h_2DsumTSmeanALS7");
609 MapNumBadChanFull[4] = (TH2F *)MapNumBadChanDepth[4][1][1]->Clone();
611 MapNumChanDepth[4][1][1] = (TH2F *)dir->FindObjectAny(
"h_2D0sumTSmeanALS1");
612 MapNumChanDepth[4][1][2] = (TH2F *)dir->FindObjectAny(
"h_2D0sumTSmeanALS2");
614 MapNumChanDepth[4][2][1] = (TH2F *)dir->FindObjectAny(
"h_2D0sumTSmeanALS3");
615 MapNumChanDepth[4][2][2] = (TH2F *)dir->FindObjectAny(
"h_2D0sumTSmeanALS4");
616 MapNumChanDepth[4][2][3] = (TH2F *)dir->FindObjectAny(
"h_2D0sumTSmeanALS5");
618 MapNumChanDepth[4][3][4] = (TH2F *)dir->FindObjectAny(
"h_2D0sumTSmeanALS8");
620 MapNumChanDepth[4][4][1] = (TH2F *)dir->FindObjectAny(
"h_2D0sumTSmeanALS6");
621 MapNumChanDepth[4][4][2] = (TH2F *)dir->FindObjectAny(
"h_2D0sumTSmeanALS7");
623 MapNumChanFull[4] = (TH2F *)MapNumChanDepth[4][1][1]->Clone();
629 MapNumBadChanDepth[5][1][1] = (TH2F *)dir->FindObjectAny(
"h_2DsumTSmaxALS1");
630 MapNumBadChanDepth[5][1][2] = (TH2F *)dir->FindObjectAny(
"h_2DsumTSmaxALS2");
632 MapNumBadChanDepth[5][2][1] = (TH2F *)dir->FindObjectAny(
"h_2DsumTSmaxALS3");
633 MapNumBadChanDepth[5][2][2] = (TH2F *)dir->FindObjectAny(
"h_2DsumTSmaxALS4");
634 MapNumBadChanDepth[5][2][3] = (TH2F *)dir->FindObjectAny(
"h_2DsumTSmaxALS5");
636 MapNumBadChanDepth[5][3][4] = (TH2F *)dir->FindObjectAny(
"h_2DsumTSmaxALS8");
638 MapNumBadChanDepth[5][4][1] = (TH2F *)dir->FindObjectAny(
"h_2DsumTSmaxALS6");
639 MapNumBadChanDepth[5][4][2] = (TH2F *)dir->FindObjectAny(
"h_2DsumTSmaxALS7");
641 MapNumBadChanFull[5] = (TH2F *)MapNumBadChanDepth[5][1][1]->Clone();
643 MapNumChanDepth[5][1][1] = (TH2F *)dir->FindObjectAny(
"h_2D0sumTSmaxALS1");
644 MapNumChanDepth[5][1][2] = (TH2F *)dir->FindObjectAny(
"h_2D0sumTSmaxALS2");
646 MapNumChanDepth[5][2][1] = (TH2F *)dir->FindObjectAny(
"h_2D0sumTSmaxALS3");
647 MapNumChanDepth[5][2][2] = (TH2F *)dir->FindObjectAny(
"h_2D0sumTSmaxALS4");
648 MapNumChanDepth[5][2][3] = (TH2F *)dir->FindObjectAny(
"h_2D0sumTSmaxALS5");
650 MapNumChanDepth[5][3][4] = (TH2F *)dir->FindObjectAny(
"h_2D0sumTSmaxALS8");
652 MapNumChanDepth[5][4][1] = (TH2F *)dir->FindObjectAny(
"h_2D0sumTSmaxALS6");
653 MapNumChanDepth[5][4][2] = (TH2F *)dir->FindObjectAny(
"h_2D0sumTSmaxALS7");
655 MapNumChanFull[5] = (TH2F *)MapNumChanDepth[5][1][1]->Clone();
658 for (
int sub = 1; sub <= 4; sub++) {
667 for (
int k = k_min[sub];
k <= k_max[sub];
k++) {
676 MapNumBadChanDepth[
test][sub][
k]->Divide(
677 MapNumBadChanDepth[
test][sub][
k], MapNumChanDepth[
test][sub][k], 1, 1,
"B");
679 for (
int x = 1;
x <= MapNumBadChanFull[
test]->GetXaxis()->GetNbins();
x++) {
680 for (
int y = 1;
y <= MapNumBadChanFull[
test]->GetYaxis()->GetNbins();
y++) {
681 double ccc1 = MapNumBadChanDepth[
test][sub][
k]->GetBinContent(
x,
y);
682 MapNumBadChanFull[
test]->SetBinContent(
x,
y, MapNumBadChanFull[
test]->GetBinContent(
x,
y) + ccc1);
687 MapNumBadChanDepth[
test][sub][
k]->SetTitle(
"Depth 1\b");
689 MapNumBadChanDepth[
test][sub][
k]->SetTitle(
"Depth 2\b");
691 MapNumBadChanDepth[
test][sub][
k]->SetTitle(
"Depth 3\b");
693 MapNumBadChanDepth[
test][sub][
k]->SetTitle(
"Depth 4\b");
697 MapNumBadChanDepth[
test][sub][
k]->SetXTitle(
"#eta \b");
698 MapNumBadChanDepth[
test][sub][
k]->SetYTitle(
"#phi \b");
699 MapNumBadChanDepth[
test][sub][
k]->SetZTitle(
"Average estimator \b");
700 MapNumBadChanDepth[
test][sub][
k]->SetTitleOffset(0.75,
"Z");
701 MapNumBadChanDepth[
test][sub][
k]->Draw(
"COLZ");
702 MapNumBadChanDepth[
test][sub][
k]->GetYaxis()->SetRangeUser(0, 72.);
707 cHB->Print(
"MapCapIdErrorHB.png");
711 cHE->Print(
"MapCapIdErrorHE.png");
715 cONE->Print(
"MapCapIdErrorHO.png");
719 cHB->Print(
"MapCapIdErrorHF.png");
725 cHB->Print(
"MapADCamplHB.png");
729 cHE->Print(
"MapADCamplHE.png");
733 cONE->Print(
"MapADCamplHO.png");
737 cHB->Print(
"MapADCamplHF.png");
743 cHB->Print(
"MapWidthHB.png");
747 cHE->Print(
"MapWidthHE.png");
751 cONE->Print(
"MapWidthHO.png");
755 cHB->Print(
"MapWidthHF.png");
761 cHB->Print(
"MapRatioHB.png");
765 cHE->Print(
"MapRatioHE.png");
769 cONE->Print(
"MapRatioHO.png");
773 cHB->Print(
"MapRatioHF.png");
779 cHB->Print(
"MapTmeanHB.png");
783 cHE->Print(
"MapTmeanHE.png");
787 cONE->Print(
"MapTmeanHO.png");
791 cHB->Print(
"MapTmeanHF.png");
797 cHB->Print(
"MapTmaxHB.png");
801 cHE->Print(
"MapTmaxHE.png");
805 cONE->Print(
"MapTmaxHO.png");
809 cHB->Print(
"MapTmaxHF.png");
819 MapNumBadChanFull[
test]->SetTitle(
"All subdetectors\b");
820 MapNumBadChanFull[
test]->SetXTitle(
"#eta \b");
821 MapNumBadChanFull[
test]->SetYTitle(
"#phi \b");
823 MapNumBadChanFull[
test]->SetZTitle(
"Average Nbcs \b");
825 MapNumBadChanFull[
test]->SetZTitle(
"Average estimator \b");
827 MapNumBadChanFull[
test]->SetTitleOffset(0.75,
"Z");
828 MapNumBadChanFull[
test]->Draw(
"COLZ");
829 MapNumBadChanFull[
test]->GetYaxis()->SetRangeUser(0, 72.);
832 cONE->Print(
"MapCapIdError.png");
836 cONE->Print(
"MapADCAmpl.png");
840 cONE->Print(
"MapWidth.png");
844 cONE->Print(
"MapRatio.png");
848 cONE->Print(
"MapTmean.png");
852 cONE->Print(
"MapTmax.png");
862 TH1F *HistNumBadChanDepth[7][5][8];
863 TH1F *HistCutNumBadChanDepth[7][5][8];
864 TH1F *HistNumChanDepth[7][5][8];
870 TH1F *HistNumBadChanFull[7];
871 TH1F *HistNumChanFull[7];
877 HistNumBadChanDepth[0][1][1] = (TH1F *)dir->FindObjectAny(
"h_runnbadchannels_depth1_HB");
878 HistNumBadChanDepth[0][1][2] = (TH1F *)dir->FindObjectAny(
"h_runnbadchannels_depth2_HB");
880 HistNumBadChanDepth[0][2][1] = (TH1F *)dir->FindObjectAny(
"h_runnbadchannels_depth1_HE");
881 HistNumBadChanDepth[0][2][2] = (TH1F *)dir->FindObjectAny(
"h_runnbadchannels_depth2_HE");
882 HistNumBadChanDepth[0][2][3] = (TH1F *)dir->FindObjectAny(
"h_runnbadchannels_depth3_HE");
884 HistNumBadChanDepth[0][3][4] = (TH1F *)dir->FindObjectAny(
"h_runnbadchannels_depth4_HO");
886 HistNumBadChanDepth[0][4][1] = (TH1F *)dir->FindObjectAny(
"h_runnbadchannels_depth1_HF");
887 HistNumBadChanDepth[0][4][2] = (TH1F *)dir->FindObjectAny(
"h_runnbadchannels_depth2_HF");
889 HistNumBadChanFull[0] = (TH1F *)HistNumBadChanDepth[0][1][1]->Clone();
891 HistCutNumBadChanDepth[0][1][1] = (TH1F *)dir->FindObjectAny(
"h_runnbadchannels_depth1_HB");
892 HistCutNumBadChanDepth[0][1][2] = (TH1F *)dir->FindObjectAny(
"h_runnbadchannels_depth2_HB");
894 HistCutNumBadChanDepth[0][2][1] = (TH1F *)dir->FindObjectAny(
"h_runnbadchannels_depth1_HE");
895 HistCutNumBadChanDepth[0][2][2] = (TH1F *)dir->FindObjectAny(
"h_runnbadchannels_depth2_HE");
896 HistCutNumBadChanDepth[0][2][3] = (TH1F *)dir->FindObjectAny(
"h_runnbadchannels_depth3_HE");
898 HistCutNumBadChanDepth[0][3][4] = (TH1F *)dir->FindObjectAny(
"h_runnbadchannels_depth4_HO");
900 HistCutNumBadChanDepth[0][4][1] = (TH1F *)dir->FindObjectAny(
"h_runnbadchannels_depth1_HF");
901 HistCutNumBadChanDepth[0][4][2] = (TH1F *)dir->FindObjectAny(
"h_runnbadchannels_depth2_HF");
903 HistNumChanDepth[0][1][1] = (TH1F *)dir->FindObjectAny(
"h_runbadrate0_depth1_HB");
904 HistNumChanDepth[0][1][2] = (TH1F *)dir->FindObjectAny(
"h_runbadrate0_depth2_HB");
906 HistNumChanDepth[0][2][1] = (TH1F *)dir->FindObjectAny(
"h_runbadrate0_depth1_HE");
907 HistNumChanDepth[0][2][2] = (TH1F *)dir->FindObjectAny(
"h_runbadrate0_depth2_HE");
908 HistNumChanDepth[0][2][3] = (TH1F *)dir->FindObjectAny(
"h_runbadrate0_depth3_HE");
910 HistNumChanDepth[0][3][4] = (TH1F *)dir->FindObjectAny(
"h_runbadrate0_depth4_HO");
912 HistNumChanDepth[0][4][1] = (TH1F *)dir->FindObjectAny(
"h_runbadrate0_depth1_HF");
913 HistNumChanDepth[0][4][2] = (TH1F *)dir->FindObjectAny(
"h_runbadrate0_depth2_HF");
915 HistNumChanFull[0] = (TH1F *)HistNumChanDepth[0][1][1]->Clone();
923 HistNumBadChanDepth[1][1][1] = (TH1F *)dir->FindObjectAny(
"h_sumADCAmplperLS1");
924 HistNumBadChanDepth[1][1][2] = (TH1F *)dir->FindObjectAny(
"h_sumADCAmplperLS2");
926 HistNumBadChanDepth[1][1][3] = (TH1F *)dir->FindObjectAny(
"h_sumADCAmplperLSdepth3HBu");
927 HistNumBadChanDepth[1][1][4] = (TH1F *)dir->FindObjectAny(
"h_sumADCAmplperLSdepth4HBu");
930 HistNumBadChanDepth[1][2][1] = (TH1F *)dir->FindObjectAny(
"h_sumADCAmplperLS3");
931 HistNumBadChanDepth[1][2][2] = (TH1F *)dir->FindObjectAny(
"h_sumADCAmplperLS4");
932 HistNumBadChanDepth[1][2][3] = (TH1F *)dir->FindObjectAny(
"h_sumADCAmplperLS5");
934 HistNumBadChanDepth[1][2][4] = (TH1F *)dir->FindObjectAny(
"h_sumADCAmplperLSdepth4HEu");
935 HistNumBadChanDepth[1][2][5] = (TH1F *)dir->FindObjectAny(
"h_sumADCAmplperLSdepth5HEu");
936 HistNumBadChanDepth[1][2][6] = (TH1F *)dir->FindObjectAny(
"h_sumADCAmplperLSdepth6HEu");
937 HistNumBadChanDepth[1][2][7] = (TH1F *)dir->FindObjectAny(
"h_sumADCAmplperLSdepth7HEu");
940 HistNumBadChanDepth[1][3][4] = (TH1F *)dir->FindObjectAny(
"h_sumADCAmplperLS8");
943 HistNumBadChanDepth[1][4][1] = (TH1F *)dir->FindObjectAny(
"h_sumADCAmplperLS6");
944 HistNumBadChanDepth[1][4][2] = (TH1F *)dir->FindObjectAny(
"h_sumADCAmplperLS7");
946 HistNumBadChanDepth[1][4][3] = (TH1F *)dir->FindObjectAny(
"h_sumADCAmplperLS6u");
947 HistNumBadChanDepth[1][4][4] = (TH1F *)dir->FindObjectAny(
"h_sumADCAmplperLS7u");
950 HistNumBadChanFull[1] = (TH1F *)HistNumBadChanDepth[1][1][1]->Clone();
954 HistCutNumBadChanDepth[1][1][1] = (TH1F *)dir->FindObjectAny(
"h_sumCutADCAmplperLS1");
955 HistCutNumBadChanDepth[1][1][2] = (TH1F *)dir->FindObjectAny(
"h_sumCutADCAmplperLS2");
957 HistCutNumBadChanDepth[1][1][3] = (TH1F *)dir->FindObjectAny(
"h_sumCutADCAmplperLSdepth3HBu");
958 HistCutNumBadChanDepth[1][1][4] = (TH1F *)dir->FindObjectAny(
"h_sumCutADCAmplperLSdepth4HBu");
961 HistCutNumBadChanDepth[1][2][1] = (TH1F *)dir->FindObjectAny(
"h_sumCutADCAmplperLS3");
962 HistCutNumBadChanDepth[1][2][2] = (TH1F *)dir->FindObjectAny(
"h_sumCutADCAmplperLS4");
963 HistCutNumBadChanDepth[1][2][3] = (TH1F *)dir->FindObjectAny(
"h_sumCutADCAmplperLS5");
965 HistCutNumBadChanDepth[1][2][4] = (TH1F *)dir->FindObjectAny(
"h_sumCutADCAmplperLSdepth4HEu");
966 HistCutNumBadChanDepth[1][2][5] = (TH1F *)dir->FindObjectAny(
"h_sumCutADCAmplperLSdepth5HEu");
967 HistCutNumBadChanDepth[1][2][6] = (TH1F *)dir->FindObjectAny(
"h_sumCutADCAmplperLSdepth6HEu");
968 HistCutNumBadChanDepth[1][2][7] = (TH1F *)dir->FindObjectAny(
"h_sumCutADCAmplperLSdepth7HEu");
971 HistCutNumBadChanDepth[1][3][4] = (TH1F *)dir->FindObjectAny(
"h_sumCutADCAmplperLS8");
974 HistCutNumBadChanDepth[1][4][1] = (TH1F *)dir->FindObjectAny(
"h_sumCutADCAmplperLS6");
975 HistCutNumBadChanDepth[1][4][2] = (TH1F *)dir->FindObjectAny(
"h_sumCutADCAmplperLS7");
977 HistCutNumBadChanDepth[1][4][3] = (TH1F *)dir->FindObjectAny(
"h_sumCutADCAmplperLS6u");
978 HistCutNumBadChanDepth[1][4][4] = (TH1F *)dir->FindObjectAny(
"h_sumCutADCAmplperLS7u");
982 HistNumChanDepth[1][1][1] = (TH1F *)dir->FindObjectAny(
"h_sum0ADCAmplperLS1");
983 HistNumChanDepth[1][1][2] = (TH1F *)dir->FindObjectAny(
"h_sum0ADCAmplperLS2");
985 HistNumChanDepth[1][1][3] = (TH1F *)dir->FindObjectAny(
"h_sum0ADCAmplperLSdepth3HBu");
986 HistNumChanDepth[1][1][4] = (TH1F *)dir->FindObjectAny(
"h_sum0ADCAmplperLSdepth4HBu");
989 HistNumChanDepth[1][2][1] = (TH1F *)dir->FindObjectAny(
"h_sum0ADCAmplperLS3");
990 HistNumChanDepth[1][2][2] = (TH1F *)dir->FindObjectAny(
"h_sum0ADCAmplperLS4");
991 HistNumChanDepth[1][2][3] = (TH1F *)dir->FindObjectAny(
"h_sum0ADCAmplperLS5");
993 HistNumChanDepth[1][2][4] = (TH1F *)dir->FindObjectAny(
"h_sum0ADCAmplperLSdepth4HEu");
994 HistNumChanDepth[1][2][5] = (TH1F *)dir->FindObjectAny(
"h_sum0ADCAmplperLSdepth5HEu");
995 HistNumChanDepth[1][2][6] = (TH1F *)dir->FindObjectAny(
"h_sum0ADCAmplperLSdepth6HEu");
996 HistNumChanDepth[1][2][7] = (TH1F *)dir->FindObjectAny(
"h_sum0ADCAmplperLSdepth7HEu");
999 HistNumChanDepth[1][3][4] = (TH1F *)dir->FindObjectAny(
"h_sum0ADCAmplperLS8");
1002 HistNumChanDepth[1][4][1] = (TH1F *)dir->FindObjectAny(
"h_sum0ADCAmplperLS6");
1003 HistNumChanDepth[1][4][2] = (TH1F *)dir->FindObjectAny(
"h_sum0ADCAmplperLS7");
1005 HistNumChanDepth[1][4][3] = (TH1F *)dir->FindObjectAny(
"h_sum0ADCAmplperLS6u");
1006 HistNumChanDepth[1][4][4] = (TH1F *)dir->FindObjectAny(
"h_sum0ADCAmplperLS7u");
1009 HistNumChanFull[1] = (TH1F *)HistNumChanDepth[1][1][1]->Clone();
1011 HistNumChanFull[6] = (TH1F *)HistNumChanDepth[1][1][1]->Clone();
1017 HistNumBadChanDepth[2][1][1] = (TH1F *)dir->FindObjectAny(
"h_sumAmplitudeperLS1");
1018 HistNumBadChanDepth[2][1][2] = (TH1F *)dir->FindObjectAny(
"h_sumAmplitudeperLS2");
1020 HistNumBadChanDepth[2][2][1] = (TH1F *)dir->FindObjectAny(
"h_sumAmplitudeperLS3");
1021 HistNumBadChanDepth[2][2][2] = (TH1F *)dir->FindObjectAny(
"h_sumAmplitudeperLS4");
1022 HistNumBadChanDepth[2][2][3] = (TH1F *)dir->FindObjectAny(
"h_sumAmplitudeperLS5");
1024 HistNumBadChanDepth[2][3][4] = (TH1F *)dir->FindObjectAny(
"h_sumAmplitudeperLS8");
1026 HistNumBadChanDepth[2][4][1] = (TH1F *)dir->FindObjectAny(
"h_sumAmplitudeperLS6");
1027 HistNumBadChanDepth[2][4][2] = (TH1F *)dir->FindObjectAny(
"h_sumAmplitudeperLS7");
1029 HistNumBadChanFull[2] = (TH1F *)HistNumBadChanDepth[2][1][1]->Clone();
1031 HistCutNumBadChanDepth[2][1][1] = (TH1F *)dir->FindObjectAny(
"h_sumCutAmplitudeperLS1");
1032 HistCutNumBadChanDepth[2][1][2] = (TH1F *)dir->FindObjectAny(
"h_sumCutAmplitudeperLS2");
1034 HistCutNumBadChanDepth[2][2][1] = (TH1F *)dir->FindObjectAny(
"h_sumCutAmplitudeperLS3");
1035 HistCutNumBadChanDepth[2][2][2] = (TH1F *)dir->FindObjectAny(
"h_sumCutAmplitudeperLS4");
1036 HistCutNumBadChanDepth[2][2][3] = (TH1F *)dir->FindObjectAny(
"h_sumCutAmplitudeperLS5");
1038 HistCutNumBadChanDepth[2][3][4] = (TH1F *)dir->FindObjectAny(
"h_sumCutAmplitudeperLS8");
1040 HistCutNumBadChanDepth[2][4][1] = (TH1F *)dir->FindObjectAny(
"h_sumCutAmplitudeperLS6");
1041 HistCutNumBadChanDepth[2][4][2] = (TH1F *)dir->FindObjectAny(
"h_sumCutAmplitudeperLS7");
1043 HistNumChanDepth[2][1][1] = (TH1F *)dir->FindObjectAny(
"h_sum0AmplitudeperLS1");
1044 HistNumChanDepth[2][1][2] = (TH1F *)dir->FindObjectAny(
"h_sum0AmplitudeperLS2");
1046 HistNumChanDepth[2][2][1] = (TH1F *)dir->FindObjectAny(
"h_sum0AmplitudeperLS3");
1047 HistNumChanDepth[2][2][2] = (TH1F *)dir->FindObjectAny(
"h_sum0AmplitudeperLS4");
1048 HistNumChanDepth[2][2][3] = (TH1F *)dir->FindObjectAny(
"h_sum0AmplitudeperLS5");
1050 HistNumChanDepth[2][3][4] = (TH1F *)dir->FindObjectAny(
"h_sum0AmplitudeperLS8");
1052 HistNumChanDepth[2][4][1] = (TH1F *)dir->FindObjectAny(
"h_sum0AmplitudeperLS6");
1053 HistNumChanDepth[2][4][2] = (TH1F *)dir->FindObjectAny(
"h_sum0AmplitudeperLS7");
1055 HistNumChanFull[2] = (TH1F *)HistNumChanDepth[2][1][1]->Clone();
1060 HistNumBadChanDepth[3][1][1] = (TH1F *)dir->FindObjectAny(
"h_sumAmplperLS1");
1061 HistNumBadChanDepth[3][1][2] = (TH1F *)dir->FindObjectAny(
"h_sumAmplperLS2");
1063 HistNumBadChanDepth[3][2][1] = (TH1F *)dir->FindObjectAny(
"h_sumAmplperLS3");
1064 HistNumBadChanDepth[3][2][2] = (TH1F *)dir->FindObjectAny(
"h_sumAmplperLS4");
1065 HistNumBadChanDepth[3][2][3] = (TH1F *)dir->FindObjectAny(
"h_sumAmplperLS5");
1067 HistNumBadChanDepth[3][3][4] = (TH1F *)dir->FindObjectAny(
"h_sumAmplperLS8");
1069 HistNumBadChanDepth[3][4][1] = (TH1F *)dir->FindObjectAny(
"h_sumAmplperLS6");
1070 HistNumBadChanDepth[3][4][2] = (TH1F *)dir->FindObjectAny(
"h_sumAmplperLS7");
1072 HistNumBadChanFull[3] = (TH1F *)HistNumBadChanDepth[3][1][1]->Clone();
1074 HistCutNumBadChanDepth[3][1][1] = (TH1F *)dir->FindObjectAny(
"h_sumCutAmplperLS1");
1075 HistCutNumBadChanDepth[3][1][2] = (TH1F *)dir->FindObjectAny(
"h_sumCutAmplperLS2");
1077 HistCutNumBadChanDepth[3][2][1] = (TH1F *)dir->FindObjectAny(
"h_sumCutAmplperLS3");
1078 HistCutNumBadChanDepth[3][2][2] = (TH1F *)dir->FindObjectAny(
"h_sumCutAmplperLS4");
1079 HistCutNumBadChanDepth[3][2][3] = (TH1F *)dir->FindObjectAny(
"h_sumCutAmplperLS5");
1081 HistCutNumBadChanDepth[3][3][4] = (TH1F *)dir->FindObjectAny(
"h_sumCutAmplperLS8");
1083 HistCutNumBadChanDepth[3][4][1] = (TH1F *)dir->FindObjectAny(
"h_sumCutAmplperLS6");
1084 HistCutNumBadChanDepth[3][4][2] = (TH1F *)dir->FindObjectAny(
"h_sumCutAmplperLS7");
1086 HistNumChanDepth[3][1][1] = (TH1F *)dir->FindObjectAny(
"h_sum0AmplperLS1");
1087 HistNumChanDepth[3][1][2] = (TH1F *)dir->FindObjectAny(
"h_sum0AmplperLS2");
1089 HistNumChanDepth[3][2][1] = (TH1F *)dir->FindObjectAny(
"h_sum0AmplperLS3");
1090 HistNumChanDepth[3][2][2] = (TH1F *)dir->FindObjectAny(
"h_sum0AmplperLS4");
1091 HistNumChanDepth[3][2][3] = (TH1F *)dir->FindObjectAny(
"h_sum0AmplperLS5");
1093 HistNumChanDepth[3][3][4] = (TH1F *)dir->FindObjectAny(
"h_sum0AmplperLS8");
1095 HistNumChanDepth[3][4][1] = (TH1F *)dir->FindObjectAny(
"h_sum0AmplperLS6");
1096 HistNumChanDepth[3][4][2] = (TH1F *)dir->FindObjectAny(
"h_sum0AmplperLS7");
1098 HistNumChanFull[3] = (TH1F *)HistNumChanDepth[3][1][1]->Clone();
1103 HistNumBadChanDepth[4][1][1] = (TH1F *)dir->FindObjectAny(
"h_sumTSmeanAperLS1");
1104 HistNumBadChanDepth[4][1][2] = (TH1F *)dir->FindObjectAny(
"h_sumTSmeanAperLS2");
1106 HistNumBadChanDepth[4][2][1] = (TH1F *)dir->FindObjectAny(
"h_sumTSmeanAperLS3");
1107 HistNumBadChanDepth[4][2][2] = (TH1F *)dir->FindObjectAny(
"h_sumTSmeanAperLS4");
1108 HistNumBadChanDepth[4][2][3] = (TH1F *)dir->FindObjectAny(
"h_sumTSmeanAperLS5");
1110 HistNumBadChanDepth[4][3][4] = (TH1F *)dir->FindObjectAny(
"h_sumTSmeanAperLS8");
1112 HistNumBadChanDepth[4][4][1] = (TH1F *)dir->FindObjectAny(
"h_sumTSmeanAperLS6");
1113 HistNumBadChanDepth[4][4][2] = (TH1F *)dir->FindObjectAny(
"h_sumTSmeanAperLS7");
1115 HistNumBadChanFull[4] = (TH1F *)HistNumBadChanDepth[4][1][1]->Clone();
1117 HistCutNumBadChanDepth[4][1][1] = (TH1F *)dir->FindObjectAny(
"h_sumCutTSmeanAperLS1");
1118 HistCutNumBadChanDepth[4][1][2] = (TH1F *)dir->FindObjectAny(
"h_sumCutTSmeanAperLS2");
1120 HistCutNumBadChanDepth[4][2][1] = (TH1F *)dir->FindObjectAny(
"h_sumCutTSmeanAperLS3");
1121 HistCutNumBadChanDepth[4][2][2] = (TH1F *)dir->FindObjectAny(
"h_sumCutTSmeanAperLS4");
1122 HistCutNumBadChanDepth[4][2][3] = (TH1F *)dir->FindObjectAny(
"h_sumCutTSmeanAperLS5");
1124 HistCutNumBadChanDepth[4][3][4] = (TH1F *)dir->FindObjectAny(
"h_sumCutTSmeanAperLS8");
1126 HistCutNumBadChanDepth[4][4][1] = (TH1F *)dir->FindObjectAny(
"h_sumCutTSmeanAperLS6");
1127 HistCutNumBadChanDepth[4][4][2] = (TH1F *)dir->FindObjectAny(
"h_sumCutTSmeanAperLS7");
1129 HistNumChanDepth[4][1][1] = (TH1F *)dir->FindObjectAny(
"h_sum0TSmeanAperLS1");
1130 HistNumChanDepth[4][1][2] = (TH1F *)dir->FindObjectAny(
"h_sum0TSmeanAperLS2");
1132 HistNumChanDepth[4][2][1] = (TH1F *)dir->FindObjectAny(
"h_sum0TSmeanAperLS3");
1133 HistNumChanDepth[4][2][2] = (TH1F *)dir->FindObjectAny(
"h_sum0TSmeanAperLS4");
1134 HistNumChanDepth[4][2][3] = (TH1F *)dir->FindObjectAny(
"h_sum0TSmeanAperLS5");
1136 HistNumChanDepth[4][3][4] = (TH1F *)dir->FindObjectAny(
"h_sum0TSmeanAperLS8");
1138 HistNumChanDepth[4][4][1] = (TH1F *)dir->FindObjectAny(
"h_sum0TSmeanAperLS6");
1139 HistNumChanDepth[4][4][2] = (TH1F *)dir->FindObjectAny(
"h_sum0TSmeanAperLS7");
1141 HistNumChanFull[4] = (TH1F *)HistNumChanDepth[4][1][1]->Clone();
1146 HistNumBadChanDepth[5][1][1] = (TH1F *)dir->FindObjectAny(
"h_sumTSmaxAperLS1");
1147 HistNumBadChanDepth[5][1][2] = (TH1F *)dir->FindObjectAny(
"h_sumTSmaxAperLS2");
1149 HistNumBadChanDepth[5][2][1] = (TH1F *)dir->FindObjectAny(
"h_sumTSmaxAperLS3");
1150 HistNumBadChanDepth[5][2][2] = (TH1F *)dir->FindObjectAny(
"h_sumTSmaxAperLS4");
1151 HistNumBadChanDepth[5][2][3] = (TH1F *)dir->FindObjectAny(
"h_sumTSmaxAperLS5");
1153 HistNumBadChanDepth[5][3][4] = (TH1F *)dir->FindObjectAny(
"h_sumTSmaxAperLS8");
1155 HistNumBadChanDepth[5][4][1] = (TH1F *)dir->FindObjectAny(
"h_sumTSmaxAperLS6");
1156 HistNumBadChanDepth[5][4][2] = (TH1F *)dir->FindObjectAny(
"h_sumTSmaxAperLS7");
1158 HistNumBadChanFull[5] = (TH1F *)HistNumBadChanDepth[5][1][1]->Clone();
1160 HistCutNumBadChanDepth[5][1][1] = (TH1F *)dir->FindObjectAny(
"h_sumCutTSmaxAperLS1");
1161 HistCutNumBadChanDepth[5][1][2] = (TH1F *)dir->FindObjectAny(
"h_sumCutTSmaxAperLS2");
1163 HistCutNumBadChanDepth[5][2][1] = (TH1F *)dir->FindObjectAny(
"h_sumCutTSmaxAperLS3");
1164 HistCutNumBadChanDepth[5][2][2] = (TH1F *)dir->FindObjectAny(
"h_sumCutTSmaxAperLS4");
1165 HistCutNumBadChanDepth[5][2][3] = (TH1F *)dir->FindObjectAny(
"h_sumCutTSmaxAperLS5");
1167 HistCutNumBadChanDepth[5][3][4] = (TH1F *)dir->FindObjectAny(
"h_sumCutTSmaxAperLS8");
1169 HistCutNumBadChanDepth[5][4][1] = (TH1F *)dir->FindObjectAny(
"h_sumCutTSmaxAperLS6");
1170 HistCutNumBadChanDepth[5][4][2] = (TH1F *)dir->FindObjectAny(
"h_sumCutTSmaxAperLS7");
1172 HistNumChanDepth[5][1][1] = (TH1F *)dir->FindObjectAny(
"h_sum0TSmaxAperLS1");
1173 HistNumChanDepth[5][1][2] = (TH1F *)dir->FindObjectAny(
"h_sum0TSmaxAperLS2");
1175 HistNumChanDepth[5][2][1] = (TH1F *)dir->FindObjectAny(
"h_sum0TSmaxAperLS3");
1176 HistNumChanDepth[5][2][2] = (TH1F *)dir->FindObjectAny(
"h_sum0TSmaxAperLS4");
1177 HistNumChanDepth[5][2][3] = (TH1F *)dir->FindObjectAny(
"h_sum0TSmaxAperLS5");
1179 HistNumChanDepth[5][3][4] = (TH1F *)dir->FindObjectAny(
"h_sum0TSmaxAperLS8");
1181 HistNumChanDepth[5][4][1] = (TH1F *)dir->FindObjectAny(
"h_sum0TSmaxAperLS6");
1182 HistNumChanDepth[5][4][2] = (TH1F *)dir->FindObjectAny(
"h_sum0TSmaxAperLS7");
1184 HistNumChanFull[5] = (TH1F *)HistNumChanDepth[5][1][1]->Clone();
1187 for (
int sub = 1; sub <= 4; sub++) {
1188 if (sub == 1 &&
test != 1)
1190 if (sub == 1 &&
test == 1) {
1192 cFour1->Divide(2, 2);
1194 if (sub == 2 &&
test != 1)
1196 if (sub == 2 &&
test == 1) {
1198 cNine->Divide(3, 3);
1202 if (sub == 4 &&
test != 1)
1204 if (sub == 4 &&
test == 1) {
1206 cFour1->Divide(2, 2);
1209 int kkkkkkmax = k_max[sub];
1211 if ((sub == 4 || sub == 2 || sub == 1) &&
test == 1)
1212 kkkkkkmax = k_maxupgrade[sub];
1213 for (
int k = k_min[sub]; k <= kkkkkkmax; k++) {
1214 if (sub == 1 &&
test != 1)
1216 if (sub == 1 &&
test == 1)
1218 if (sub == 2 &&
test != 1)
1220 if (sub == 2 &&
test == 1)
1224 if (sub == 4 &&
test != 1)
1226 if (sub == 4 &&
test == 1)
1232 if (sub == 1 && k == 1) {
1235 for (
int x = 1;
x <= HistNumBadChanFull[
test]->GetXaxis()->GetNbins();
x++) {
1236 double ccc1 = HistNumBadChanDepth[
test][sub][
k]->GetBinContent(
x);
1237 HistNumBadChanFull[
test]->SetBinContent(
x, HistNumBadChanFull[
test]->GetBinContent(
x) + ccc1);
1238 double ccc2 = HistNumChanDepth[
test][sub][
k]->GetBinContent(
x);
1239 HistNumChanFull[
test]->SetBinContent(
x, HistNumChanFull[
test]->GetBinContent(
x) + ccc2);
1244 HistNumBadChanDepth[
test][sub][
k]->Divide(
1245 HistNumBadChanDepth[
test][sub][k], HistNumChanDepth[
test][sub][k], 1, 1,
"B");
1247 for (
int x = 1;
x <= HistNumBadChanDepth[
test][sub][
k]->GetXaxis()->GetNbins();
x++) {
1248 HistNumBadChanDepth[
test][sub][
k]->SetBinError(
float(
x), 0.01);
1253 HistNumBadChanDepth[
test][sub][
k]->GetXaxis()->SetRangeUser(0, MaxLum);
1256 HistNumBadChanDepth[
test][sub][
k]->SetMarkerStyle(20);
1257 HistNumBadChanDepth[
test][sub][
k]->SetMarkerSize(0.4);
1258 HistNumBadChanDepth[
test][sub][
k]->GetYaxis()->SetLabelSize(0.04);
1260 HistNumBadChanDepth[
test][sub][
k]->SetTitle(
"Depth 1\b");
1262 HistNumBadChanDepth[
test][sub][
k]->SetTitle(
"Depth 2\b");
1264 HistNumBadChanDepth[
test][sub][
k]->SetTitle(
"Depth 3\b");
1266 HistNumBadChanDepth[
test][sub][
k]->SetTitle(
"Depth 4\b");
1268 HistNumBadChanDepth[
test][sub][
k]->SetTitle(
"Depth 5\b");
1270 HistNumBadChanDepth[
test][sub][
k]->SetTitle(
"Depth 6\b");
1272 HistNumBadChanDepth[
test][sub][
k]->SetTitle(
"Depth 7\b");
1273 HistNumBadChanDepth[
test][sub][
k]->SetXTitle(
"LS \b");
1275 HistNumBadChanDepth[
test][sub][
k]->SetYTitle(
"<Number of bad channels> \b");
1277 HistNumBadChanDepth[
test][sub][
k]->SetYTitle(
"Averaged estimator \b");
1278 HistNumBadChanDepth[
test][sub][
k]->SetMarkerColor(2);
1279 HistNumBadChanDepth[
test][sub][
k]->SetLineColor(0);
1285 HistNumBadChanDepth[
test][sub][
k]->Draw(
"Error");
1323 if (sub == 1 &&
test != 1) {
1326 if (sub == 1 &&
test == 1) {
1329 if (sub == 2 &&
test != 1) {
1332 if (sub == 2 &&
test == 1) {
1338 if (sub == 4 &&
test != 1) {
1341 if (sub == 4 &&
test == 1) {
1349 cHE->Print(
"HistNBCMNHB.png");
1353 cHE->Print(
"HistNBCMNHE.png");
1357 cHB->Print(
"HistNBCMNHO.png");
1361 cHE->Print(
"HistNBCMNHF.png");
1368 cFour1->Print(
"HistADCamplHB.png");
1372 cNine->Print(
"HistADCamplHE.png");
1376 cHB->Print(
"HistADCamplHO.png");
1380 cFour1->Print(
"HistADCamplHF.png");
1386 cHE->Print(
"HistWidthHB.png");
1390 cHE->Print(
"HistWidthHE.png");
1394 cHB->Print(
"HistWidthHO.png");
1398 cHE->Print(
"HistWidthHF.png");
1404 cHE->Print(
"HistRatioHB.png");
1408 cHE->Print(
"HistRatioHE.png");
1412 cHB->Print(
"HistRatioHO.png");
1416 cHE->Print(
"HistRatioHF.png");
1422 cHE->Print(
"HistTmeanHB.png");
1426 cHE->Print(
"HistTmeanHE.png");
1430 cHB->Print(
"HistTmeanHO.png");
1434 cHE->Print(
"HistTmeanHF.png");
1440 cHE->Print(
"HistTmaxHB.png");
1444 cHE->Print(
"HistTmaxHE.png");
1448 cHB->Print(
"HistTmaxHO.png");
1452 cHE->Print(
"HistTmaxHF.png");
1459 for (
int x = 1;
x <= HistNumChanFull[6]->GetXaxis()->GetNbins();
x++) {
1460 HistNumChanFull[6]->SetBinContent(
x, 0.0);
1461 int depthsubcount = 0.;
1462 for (
int sub = 1; sub <= 4; sub++) {
1463 int kkkkkkmax = k_max[sub];
1464 if (sub == 4 || sub == 2 || sub == 1)
1465 kkkkkkmax = k_maxupgrade[sub];
1467 for (
int k = k_min[sub]; k <= kkkkkkmax; k++) {
1471 double ccc1 = HistNumBadChanDepth[
test][sub][
k]->GetBinContent(
x);
1472 HistNumChanFull[6]->SetBinContent(
x, HistNumChanFull[6]->GetBinContent(
x) + ccc1);
1475 if (depthsubcount > 0.) {
1476 HistNumChanFull[6]->SetBinContent(
x, (HistNumChanFull[6]->GetBinContent(
x)) / depthsubcount);
1478 HistNumChanFull[6]->SetBinContent(
x, (HistNumChanFull[6]->GetBinContent(
x)) / 8.);
1490 HistNumBadChanFull[
test]->Divide(HistNumBadChanFull[
test], HistNumChanFull[test], 1, 1,
"B");
1491 TH1F *kfitq =
new TH1F(
"kfitq",
"", MaxLum, 1., MaxLum + 1.);
1492 int nx = kfitq->GetXaxis()->GetNbins();
1493 for (
int i = 1;
i <= nx;
i++) {
1494 double ccc1 = HistNumBadChanFull[
test]->GetBinContent(
i);
1496 kfitq->Fill(
float(
i), ccc1);
1497 kfitq->SetBinError(
float(
i), 0.01);
1500 kfitq->SetMarkerStyle(20);
1501 kfitq->SetMarkerSize(0.4);
1502 kfitq->GetYaxis()->SetLabelSize(0.04);
1504 kfitq->SetTitle(
"Average Nbch for whole Hcal \b");
1506 kfitq->SetTitle(
"Averaged estimator for whole Hcal \b");
1507 kfitq->SetXTitle(
"LS \b");
1509 kfitq->SetYTitle(
"<Number of bad channels> \b");
1511 kfitq->SetYTitle(
"Averaged estimator \b");
1512 kfitq->SetMarkerColor(2);
1513 kfitq->SetLineColor(0);
1515 kfitq->Draw(
"Error");
1535 TH1F *lpuio =
new TH1F(
"lpuio",
"", MaxLum, 1., MaxLum + 1.);
1536 int nx = lpuio->GetXaxis()->GetNbins();
1537 for (
int i = 1;
i <= nx;
i++) {
1538 double ccc1 = HistNumChanFull[6]->GetBinContent(
i);
1540 lpuio->Fill(
float(
i), ccc1);
1541 lpuio->SetBinError(
float(
i), 0.01);
1544 lpuio->SetMarkerStyle(20);
1545 lpuio->SetMarkerSize(0.4);
1546 lpuio->GetYaxis()->SetLabelSize(0.04);
1547 lpuio->SetTitle(
"Mean of Averaged Amplitudes over all Hcal sub-detectors \b");
1548 lpuio->SetXTitle(
"LS \b");
1549 lpuio->SetYTitle(
"Mean of Averaged estimator \b");
1550 lpuio->SetMarkerColor(2);
1551 lpuio->SetLineColor(0);
1553 lpuio->Draw(
"Error");
1556 cHB->Print(
"HistCapID.png");
1560 cHE->Print(
"HistADCAmpl.png");
1564 cHB->Print(
"HistWidth.png");
1568 cHB->Print(
"HistRatio.png");
1572 cHB->Print(
"HistTmean.png");
1576 cHB->Print(
"HistTmax.png");
1590 TH1F *HistAbnormNumBadChanDepth[5][5];
1596 HistAbnormNumBadChanDepth[1][1] = (TH1F *)dir->FindObjectAny(
"h_runnbadchannelsC_depth1_HB");
1597 HistAbnormNumBadChanDepth[1][2] = (TH1F *)dir->FindObjectAny(
"h_runnbadchannelsC_depth2_HB");
1598 HistAbnormNumBadChanDepth[2][1] = (TH1F *)dir->FindObjectAny(
"h_runnbadchannelsC_depth1_HE");
1599 HistAbnormNumBadChanDepth[2][2] = (TH1F *)dir->FindObjectAny(
"h_runnbadchannelsC_depth2_HE");
1600 HistAbnormNumBadChanDepth[2][3] = (TH1F *)dir->FindObjectAny(
"h_runnbadchannelsC_depth3_HE");
1601 HistAbnormNumBadChanDepth[3][4] = (TH1F *)dir->FindObjectAny(
"h_runnbadchannelsC_depth4_HO");
1602 HistAbnormNumBadChanDepth[4][1] = (TH1F *)dir->FindObjectAny(
"h_runnbadchannelsC_depth1_HF");
1603 HistAbnormNumBadChanDepth[4][2] = (TH1F *)dir->FindObjectAny(
"h_runnbadchannelsC_depth2_HF");
1605 for (
int sub = 1; sub <= 4; sub++) {
1614 for (
int k = k_min[sub]; k <= k_max[sub]; k++) {
1626 HistAbnormNumBadChanDepth[sub][
k]->Divide(
1627 HistAbnormNumBadChanDepth[sub][k], HistNumChanDepth[0][sub][k], 1, 1,
"B");
1629 HistAbnormNumBadChanDepth[sub][
k]->SetTitle(
"Depth 1\b");
1631 HistAbnormNumBadChanDepth[sub][
k]->SetTitle(
"Depth 2\b");
1633 HistAbnormNumBadChanDepth[sub][
k]->SetTitle(
"Depth 3\b");
1635 HistAbnormNumBadChanDepth[sub][
k]->SetTitle(
"Depth 4\b");
1636 HistAbnormNumBadChanDepth[sub][
k]->SetXTitle(
"LS \b");
1637 HistAbnormNumBadChanDepth[sub][
k]->SetYTitle(
"< Number of bad channels > \b");
1638 if (MaxLum <= 1000) {
1639 HistAbnormNumBadChanDepth[sub][
k]->SetMarkerStyle(20);
1640 HistAbnormNumBadChanDepth[sub][
k]->SetMarkerSize(0.5);
1641 HistAbnormNumBadChanDepth[sub][
k]->SetMarkerColor(1);
1642 HistAbnormNumBadChanDepth[sub][
k]->SetLineColor(0);
1643 HistAbnormNumBadChanDepth[sub][
k]->GetXaxis()->SetRangeUser(0, MaxLum);
1644 HistAbnormNumBadChanDepth[sub][
k]->Draw(
"P");
1646 HistAbnormNumBadChanDepth[sub][
k]->SetLineColor(1);
1647 HistAbnormNumBadChanDepth[sub][
k]->GetXaxis()->SetRangeUser(0, MaxLum);
1648 HistAbnormNumBadChanDepth[sub][
k]->Draw(
"L");
1652 cHB->Print(
"Hist_CAPID_Abnorm_HB.png");
1656 cHE->Print(
"Hist_CAPID_Abnorm_HE.png");
1660 cONE->Print(
"Hist_CAPID_Abnorm_HO.png");
1664 cHB->Print(
"Hist_CAPID_Abnorm_HF.png");
1673 TH1F *HistPortBadEventsDepth[5][5];
1675 HistPortBadEventsDepth[1][1] = (TH1F *)dir->FindObjectAny(
"h_runbadrateC_depth1_HB");
1676 HistPortBadEventsDepth[1][2] = (TH1F *)dir->FindObjectAny(
"h_runbadrateC_depth2_HB");
1677 HistPortBadEventsDepth[2][1] = (TH1F *)dir->FindObjectAny(
"h_runbadrateC_depth1_HE");
1678 HistPortBadEventsDepth[2][2] = (TH1F *)dir->FindObjectAny(
"h_runbadrateC_depth2_HE");
1679 HistPortBadEventsDepth[2][3] = (TH1F *)dir->FindObjectAny(
"h_runbadrateC_depth3_HE");
1680 HistPortBadEventsDepth[3][4] = (TH1F *)dir->FindObjectAny(
"h_runbadrateC_depth4_HO");
1681 HistPortBadEventsDepth[4][1] = (TH1F *)dir->FindObjectAny(
"h_runbadrateC_depth1_HF");
1682 HistPortBadEventsDepth[4][2] = (TH1F *)dir->FindObjectAny(
"h_runbadrateC_depth2_HF");
1684 TH1F *HistNumRateDepth[5][5];
1685 HistNumRateDepth[1][1] = (TH1F *)dir->FindObjectAny(
"h_runbadrate0_depth1_HB");
1686 HistNumRateDepth[1][2] = (TH1F *)dir->FindObjectAny(
"h_runbadrate0_depth2_HB");
1687 HistNumRateDepth[2][1] = (TH1F *)dir->FindObjectAny(
"h_runbadrate0_depth1_HE");
1688 HistNumRateDepth[2][2] = (TH1F *)dir->FindObjectAny(
"h_runbadrate0_depth2_HE");
1689 HistNumRateDepth[2][3] = (TH1F *)dir->FindObjectAny(
"h_runbadrate0_depth3_HE");
1690 HistNumRateDepth[3][4] = (TH1F *)dir->FindObjectAny(
"h_runbadrate0_depth4_HO");
1691 HistNumRateDepth[4][1] = (TH1F *)dir->FindObjectAny(
"h_runbadrate0_depth1_HF");
1692 HistNumRateDepth[4][2] = (TH1F *)dir->FindObjectAny(
"h_runbadrate0_depth2_HF");
1694 for (
int sub = 1; sub <= 4; sub++) {
1703 for (
int k = k_min[sub]; k <= k_max[sub]; k++) {
1715 HistPortBadEventsDepth[sub][
k]->Divide(HistPortBadEventsDepth[sub][k], HistNumRateDepth[sub][k], 1, 1,
"B");
1718 HistPortBadEventsDepth[sub][
k]->SetTitle(
"Depth 1\b");
1720 HistPortBadEventsDepth[sub][
k]->SetTitle(
"Depth 2\b");
1722 HistPortBadEventsDepth[sub][
k]->SetTitle(
"Depth 3\b");
1724 HistPortBadEventsDepth[sub][
k]->SetTitle(
"Depth 4\b");
1725 HistPortBadEventsDepth[sub][
k]->SetXTitle(
"LS \b");
1726 HistPortBadEventsDepth[sub][
k]->SetYTitle(
"< Number of bad channels > \b");
1727 if (MaxLum <= 1000) {
1728 HistPortBadEventsDepth[sub][
k]->SetMarkerStyle(20);
1729 HistPortBadEventsDepth[sub][
k]->SetMarkerSize(0.5);
1730 HistPortBadEventsDepth[sub][
k]->SetMarkerColor(1);
1731 HistPortBadEventsDepth[sub][
k]->SetLineColor(0);
1732 HistPortBadEventsDepth[sub][
k]->GetXaxis()->SetRangeUser(0, MaxLum);
1733 HistPortBadEventsDepth[sub][
k]->Draw(
"P");
1735 HistPortBadEventsDepth[sub][
k]->SetLineColor(1);
1736 HistPortBadEventsDepth[sub][
k]->GetXaxis()->SetRangeUser(0, MaxLum);
1737 HistPortBadEventsDepth[sub][
k]->Draw(
"L");
1741 cHB->Print(
"HistPortHB.png");
1745 cHE->Print(
"HistPortHE.png");
1749 cONE->Print(
"HistPortHO.png");
1753 cHB->Print(
"HistPortHF.png");
1764 TH1F *HistNBadChsDepth[5][5];
1766 HistNBadChsDepth[1][1] = (TH1F *)dir->FindObjectAny(
"h_nbadchannels_depth1_HB");
1767 HistNBadChsDepth[1][2] = (TH1F *)dir->FindObjectAny(
"h_nbadchannels_depth2_HB");
1768 HistNBadChsDepth[2][1] = (TH1F *)dir->FindObjectAny(
"h_nbadchannels_depth1_HE");
1769 HistNBadChsDepth[2][2] = (TH1F *)dir->FindObjectAny(
"h_nbadchannels_depth2_HE");
1770 HistNBadChsDepth[2][3] = (TH1F *)dir->FindObjectAny(
"h_nbadchannels_depth3_HE");
1771 HistNBadChsDepth[3][4] = (TH1F *)dir->FindObjectAny(
"h_nbadchannels_depth4_HO");
1772 HistNBadChsDepth[4][1] = (TH1F *)dir->FindObjectAny(
"h_nbadchannels_depth1_HF");
1773 HistNBadChsDepth[4][2] = (TH1F *)dir->FindObjectAny(
"h_nbadchannels_depth2_HF");
1775 for (
int sub = 1; sub <= 4; sub++) {
1784 for (
int k = k_min[sub]; k <= k_max[sub]; k++) {
1798 HistNBadChsDepth[sub][
k]->SetTitle(
"Depth 1\b");
1800 HistNBadChsDepth[sub][
k]->SetTitle(
"Depth 2\b");
1802 HistNBadChsDepth[sub][
k]->SetTitle(
"Depth 3\b");
1804 HistNBadChsDepth[sub][
k]->SetTitle(
"Depth 4\b");
1805 HistNBadChsDepth[sub][
k]->SetXTitle(
"Number of bad channels\b");
1806 HistNBadChsDepth[sub][
k]->SetYTitle(
"Number of events\b");
1811 HistNBadChsDepth[sub][
k]->Draw(
"");
1814 cHB->Print(
"HistNBadChsHB.png");
1818 cHE->Print(
"HistNBadChsHE.png");
1822 cONE->Print(
"HistNBadChsHO.png");
1826 cHB->Print(
"HistNBadChsHF.png");
1837 int flagErrAB_HB[2];
1838 flagErrAB_HB[0] = -1;
1839 flagErrAB_HB[1] = -1;
1840 double avedelta_HB = 0.;
1841 int lastLumiBin_HB = -1;
1842 int LSofFirstErrB_HB = -1;
1844 const int specCountA = 4;
1845 const int specColors[specCountA] = {1, 2, 3, 4};
1846 const TString hnames[specCountA][2] = {{
"h_sumADCAmplperLS1_P1",
"h_sum0ADCAmplperLS1_P1"},
1847 {
"h_sumADCAmplperLS1_P2",
"h_sum0ADCAmplperLS1_P2"},
1848 {
"h_sumADCAmplperLS1_M1",
"h_sum0ADCAmplperLS1_M1"},
1849 {
"h_sumADCAmplperLS1_M2",
"h_sum0ADCAmplperLS1_M2"}};
1851 std::vector<TH1F *> hV;
1852 THStack *hs =
new THStack(
"hs",
"ADCAmplerLS1");
1859 for (
int i = 0;
i < specCountA;
i++) {
1861 std::cout <<
"debugger: errA_HB : get histos for i=" <<
i <<
" " << hnames[
i][0] <<
" and " << hnames[
i][1]
1863 TH1F *h1 = (TH1F *)dir->FindObjectAny(hnames[
i][0]);
1864 TH1F *h0 = (TH1F *)dir->FindObjectAny(hnames[i][1]);
1866 TPaveText *ptext =
new TPaveText(0.05, 0.85, 0.95, 0.95);
1867 ptext->AddText(
"Missing histo");
1869 std::cout <<
"\tfailed to get " << hnames[
i][0] <<
"\n";
1870 ptext->AddText(hnames[i][0]);
1873 std::cout <<
"\tfailed to get " << hnames[
i][1] <<
"\n";
1874 ptext->AddText(hnames[i][1]);
1879 TH1F *hERT1orig = (TH1F *)h1->Clone(Form(
"ERT1orig_%d", i));
1880 hERT1orig->Divide(h1, h0, 1, 1,
"B");
1882 if ((lastLumiBin_HB < 0) && (i == 0)) {
1883 for (
int ibin = hERT1orig->GetNbinsX(); ibin >= 1; ibin--) {
1884 if (hERT1orig->GetBinContent(ibin) == 0)
1885 lastLumiBin_HB = ibin;
1889 lastLumiBin_HB += 3;
1890 if (lastLumiBin_HB >= hERT1orig->GetNbinsX())
1891 lastLumiBin_HB = -1;
1894 if (lastLumiBin_HB > 1) {
1895 if (!
copyContents(&hERT1, Form(
"ERT1_%d", i),
"", hERT1orig, lastLumiBin_HB)) {
1896 std::cout <<
"code failed" << std::endl;
1902 hERT1->GetXaxis()->SetTitle(
"<ADCAmpl> per LS HB: black-P1, red-P2,green-M1,blue-M2");
1903 hV.push_back(hERT1);
1904 hERT1->SetMarkerStyle(20);
1905 hERT1->SetMarkerSize(0.4);
1906 hERT1->SetXTitle(
"<A>(ev.in LS & ch.) - HB P1 - iLS \b");
1907 hERT1->SetMarkerColor(specColors[i]);
1908 hERT1->SetLineColor(0);
1912 if (hERT1 != hERT1orig)
1915 hs->Draw(
"LPE1 nostack");
1917 hs->GetXaxis()->SetTitle(
"<A> per LS: black-P1, red-P2,green-M1,blue-M2");
1918 hs->Draw(
"LPE1 nostack");
1924 TH1F *
diff =
new TH1F(
"diff",
"", 100, 0., 4.);
1926 if (
int(hV.size()) == specCountA) {
1927 flagErrAB_HB[0] = 0;
1928 double sumdelta = 0.;
1930 for (
int ibin = 1; ibin <= hV[0]->GetNbinsX(); ibin++) {
1932 double maxdelta = 0.;
1933 for (
unsigned int i = 0; i < hV.size(); i++) {
1934 const TH1F *hi = hV[
i];
1935 for (
unsigned int j = 1;
j < hV.size();
j++) {
1936 const TH1F *hj = hV[
j];
1937 delta = fabs(hi->GetBinContent(ibin) - hj->GetBinContent(ibin));
1938 if (delta > maxdelta)
1942 if (maxdelta > 0.) {
1943 diff->Fill(maxdelta);
1944 sumdelta += maxdelta;
1949 avedelta_HB = sumdelta / nnndelta;
1950 std::cout <<
"******************>>>>>> ErrA_HB: avedelta_HB = " << avedelta_HB << std::endl;
1951 if (avedelta_HB > 0.24 || (avedelta_HB < 0.14 && avedelta_HB > 0.)) {
1952 flagErrAB_HB[0] = 1;
1955 diff->SetMarkerStyle(20);
1956 diff->SetMarkerSize(0.8);
1957 diff->SetXTitle(
"max difference \b");
1958 diff->SetMarkerColor(2);
1959 diff->SetLineColor(0);
1962 diff->Draw(
"Error");
1965 cHB->Print(
"HistErrA_HB.png");
1972 for (
unsigned int i = 0; i < hV.size(); i++)
1979 const int specCountB = 4;
1980 const TString hnames[specCountB][2] = {{
"h_2DsumErrorBLS1",
"h_2D0sumErrorBLS1"},
1981 {
"h_sumErrorBperLS1",
"h_sum0ErrorBperLS1"},
1982 {
"h_2DsumErrorBLS2",
"h_2D0sumErrorBLS2"},
1983 {
"h_sumErrorBperLS2",
"h_sum0ErrorBperLS2"}};
1990 TH1F *hRate2orig =
NULL;
1991 TH2F *h2Cefz6 =
NULL;
1992 TString hname1 = hnames[2 *
depth - 2][0];
1993 TString hname0 = hnames[2 *
depth - 2][1];
1994 TH2F *twod1 = (TH2F *)dir->FindObjectAny(hname1);
1995 TH2F *twod0 = (TH2F *)dir->FindObjectAny(hname0);
1997 std::cout <<
"debugger: errB_HB depth=" <<
depth <<
". get 2D histos " << hname1 <<
" and " << hname0 <<
"\n";
1998 if (!twod1 || !twod0) {
1999 TPaveText *ptext =
new TPaveText(0.05, 0.85, 0.95, 0.95);
2000 ptext->AddText(
"Missing histos");
2002 std::cout <<
"\tfailed to get " << hname1 <<
"\n";
2003 ptext->AddText(hname1);
2006 std::cout <<
"\tfailed to get " << hname0 <<
"\n";
2007 ptext->AddText(hname0);
2011 h2Cefz6 = (TH2F *)twod1->Clone(Form(
"Cefz6_%d",
depth));
2012 h2Cefz6->SetTitle(Form(
"HB Depth %d \b",
depth));
2013 h2Cefz6->Divide(twod1, twod0, 1, 1,
"B");
2018 h2Cefz6->SetTitle(Form(
"Depth %d \b",
depth));
2019 h2Cefz6->SetMarkerStyle(20);
2020 h2Cefz6->SetMarkerSize(0.4);
2022 h2Cefz6->SetXTitle(
"#eta \b");
2023 h2Cefz6->SetYTitle(
"#phi \b");
2024 h2Cefz6->SetZTitle(Form(
"<ErrorB> - HB Depth%d \b",
depth));
2025 h2Cefz6->SetMarkerColor(2);
2026 h2Cefz6->SetLineColor(2);
2027 h2Cefz6->Draw(
"COLZ");
2034 hname1 = hnames[2 *
depth - 1][0];
2035 hname0 = hnames[2 *
depth - 1][1];
2036 TH1F *h1 = (TH1F *)dir->FindObjectAny(hname1);
2037 TH1F *h0 = (TH1F *)dir->FindObjectAny(hname0);
2039 std::cout <<
"errB_HB depth=" <<
depth <<
". get 2D histos " << hname1 <<
" and " << hname0 <<
"\n";
2041 TPaveText *ptext =
new TPaveText(0.05, 0.85, 0.95, 0.95);
2042 ptext->AddText(
"Missing histo");
2044 std::cout <<
"\tfailed to get " << hname1 <<
"\n";
2045 ptext->AddText(hname1);
2048 std::cout <<
"\tfailed to get " << hname0 <<
"\n";
2049 ptext->AddText(hname0);
2056 hRate2orig = (TH1F *)h1->Clone(Form(
"Rate2orig_%d",
depth));
2057 hRate2orig->Divide(h1, h0, 1, 1,
"B");
2059 TH1F *hRate2 =
NULL;
2060 if (lastLumiBin_HB > 1) {
2061 if (!
copyContents(&hRate2, Form(
"Rate2_%d",
depth),
"", hRate2orig, lastLumiBin_HB)) {
2062 std::cout <<
"code failed" << std::endl;
2066 hRate2 = hRate2orig;
2068 hRate2->SetTitle(Form(
"Depth %d \b",
depth));
2069 hRate2->SetMarkerStyle(20);
2070 hRate2->SetMarkerSize(0.8);
2072 hRate2->SetXTitle(Form(
"<ErrorB>(ev.in LS & ch.) - HB depth%d - iLS \b",
depth));
2073 hRate2->SetMarkerColor(2);
2074 hRate2->SetLineColor(0);
2075 hRate2->Draw(
"Error");
2077 if (LSofFirstErrB_HB == -1) {
2078 int nx = hRate2->GetXaxis()->GetNbins();
2079 for (
int i = 1; i <= nx; i++) {
2080 double ccc1 = hRate2->GetBinContent(i);
2082 cout <<
"****************>>>>>>>>>>> ErrB_HB bad LS start at iLS = " << i <<
" with rate = " << ccc1
2084 LSofFirstErrB_HB =
i;
2092 if (hRate2 != hRate2orig) {
2094 hRate2orig = hRate2;
2099 cHB->Print(Form(
"HistErrB_HB_%d.png",
depth));
2114 int flagErrAB_HE[2];
2115 flagErrAB_HE[0] = -1;
2116 flagErrAB_HE[1] = -1;
2117 double avedelta_HE = 0.;
2118 int lastLumiBin_HE = -1;
2119 int LSofFirstErrB_HE = -1;
2121 const int specCountA = 4;
2122 const int specColors[specCountA] = {1, 2, 3, 4};
2123 const TString hnames[specCountA][2] = {{
"h_sumADCAmplperLS3_P1",
"h_sum0ADCAmplperLS3_P1"},
2124 {
"h_sumADCAmplperLS3_P2",
"h_sum0ADCAmplperLS3_P2"},
2125 {
"h_sumADCAmplperLS3_M1",
"h_sum0ADCAmplperLS3_M1"},
2126 {
"h_sumADCAmplperLS3_M2",
"h_sum0ADCAmplperLS3_M2"}};
2128 std::vector<TH1F *> hV;
2129 THStack *hs =
new THStack(
"hs",
"ADCAmplerLS1");
2136 for (
int i = 0; i < specCountA; i++) {
2138 std::cout <<
"debugger: errA_HE : get histos for i=" << i <<
" " << hnames[
i][0] <<
" and " << hnames[
i][1]
2140 TH1F *h1 = (TH1F *)dir->FindObjectAny(hnames[i][0]);
2141 TH1F *h0 = (TH1F *)dir->FindObjectAny(hnames[i][1]);
2143 TPaveText *ptext =
new TPaveText(0.05, 0.85, 0.95, 0.95);
2144 ptext->AddText(
"Missing histo");
2146 std::cout <<
"\tfailed to get " << hnames[
i][0] <<
"\n";
2147 ptext->AddText(hnames[i][0]);
2150 std::cout <<
"\tfailed to get " << hnames[
i][1] <<
"\n";
2151 ptext->AddText(hnames[i][1]);
2156 TH1F *hERT1orig = (TH1F *)h1->Clone(Form(
"ERT1orig_%d", i));
2157 hERT1orig->Divide(h1, h0, 1, 1,
"B");
2159 if ((lastLumiBin_HE < 0) && (i == 0)) {
2160 for (
int ibin = hERT1orig->GetNbinsX(); ibin >= 1; ibin--) {
2161 if (hERT1orig->GetBinContent(ibin) == 0)
2162 lastLumiBin_HE = ibin;
2166 lastLumiBin_HE += 3;
2167 if (lastLumiBin_HE >= hERT1orig->GetNbinsX())
2168 lastLumiBin_HE = -1;
2171 if (lastLumiBin_HE > 1) {
2172 if (!
copyContents(&hERT1, Form(
"ERT1_%d", i),
"", hERT1orig, lastLumiBin_HE)) {
2173 std::cout <<
"code failed" << std::endl;
2179 hERT1->GetXaxis()->SetTitle(
"<ADCAmpl> per LS HE: black-P1, red-P2,green-M1,blue-M2");
2180 hV.push_back(hERT1);
2181 hERT1->SetMarkerStyle(20);
2182 hERT1->SetMarkerSize(0.4);
2183 hERT1->SetXTitle(
"<A>(ev.in LS & ch.) - HE P1 - iLS \b");
2184 hERT1->SetMarkerColor(specColors[i]);
2185 hERT1->SetLineColor(0);
2189 if (hERT1 != hERT1orig)
2192 hs->Draw(
"LPE1 nostack");
2194 hs->GetXaxis()->SetTitle(
"<A> per LS: black-P1, red-P2,green-M1,blue-M2");
2195 hs->Draw(
"LPE1 nostack");
2201 TH1F *diff =
new TH1F(
"diff",
"", 100, 0., 4.);
2203 if (
int(hV.size()) == specCountA) {
2204 flagErrAB_HE[0] = 0;
2205 double sumdelta = 0.;
2207 for (
int ibin = 1; ibin <= hV[0]->GetNbinsX(); ibin++) {
2209 double maxdelta = 0.;
2210 for (
unsigned int i = 0; i < hV.size(); i++) {
2211 const TH1F *hi = hV[
i];
2212 for (
unsigned int j = 1;
j < hV.size();
j++) {
2213 const TH1F *hj = hV[
j];
2214 delta = fabs(hi->GetBinContent(ibin) - hj->GetBinContent(ibin));
2215 if (delta > maxdelta)
2219 if (maxdelta > 0.) {
2220 diff->Fill(maxdelta);
2221 sumdelta += maxdelta;
2226 avedelta_HE = sumdelta / nnndelta;
2227 std::cout <<
"******************>>>>>> ErrA_HE: avedelta_HE = " << avedelta_HE << std::endl;
2228 if (avedelta_HE > 1.1 || (avedelta_HE < 0.5 && avedelta_HE > 0.)) {
2229 flagErrAB_HE[0] = 1;
2232 diff->SetMarkerStyle(20);
2233 diff->SetMarkerSize(0.8);
2234 diff->SetXTitle(
"max difference \b");
2235 diff->SetMarkerColor(2);
2236 diff->SetLineColor(0);
2239 diff->Draw(
"Error");
2242 cHB->Print(
"HistErrA_HE.png");
2249 for (
unsigned int i = 0; i < hV.size(); i++)
2256 const int specCountB = 6;
2257 const TString hnames[specCountB][2] = {{
"h_2DsumErrorBLS3",
"h_2D0sumErrorBLS3"},
2258 {
"h_sumErrorBperLS3",
"h_sum0ErrorBperLS3"},
2259 {
"h_2DsumErrorBLS4",
"h_2D0sumErrorBLS4"},
2260 {
"h_sumErrorBperLS4",
"h_sum0ErrorBperLS4"},
2261 {
"h_2DsumErrorBLS5",
"h_2D0sumErrorBLS5"},
2262 {
"h_sumErrorBperLS5",
"h_sum0ErrorBperLS5"}};
2269 TH1F *hRate2orig =
NULL;
2270 TH2F *h2Cefz6 =
NULL;
2271 TString hname1 = hnames[2 *
depth - 2][0];
2272 TString hname0 = hnames[2 *
depth - 2][1];
2273 TH2F *twod1 = (TH2F *)dir->FindObjectAny(hname1);
2274 TH2F *twod0 = (TH2F *)dir->FindObjectAny(hname0);
2276 std::cout <<
"debugger: errB_HE depth=" <<
depth <<
". get 2D histos " << hname1 <<
" and " << hname0 <<
"\n";
2277 if (!twod1 || !twod0) {
2278 TPaveText *ptext =
new TPaveText(0.05, 0.85, 0.95, 0.95);
2279 ptext->AddText(
"Missing histos");
2281 std::cout <<
"\tfailed to get " << hname1 <<
"\n";
2282 ptext->AddText(hname1);
2285 std::cout <<
"\tfailed to get " << hname0 <<
"\n";
2286 ptext->AddText(hname0);
2290 h2Cefz6 = (TH2F *)twod1->Clone(Form(
"Cefz6_%d",
depth));
2291 h2Cefz6->SetTitle(Form(
"HE Depth %d \b",
depth));
2292 h2Cefz6->Divide(twod1, twod0, 1, 1,
"B");
2297 h2Cefz6->SetTitle(Form(
"Depth %d \b",
depth));
2298 h2Cefz6->SetMarkerStyle(20);
2299 h2Cefz6->SetMarkerSize(0.4);
2301 h2Cefz6->SetXTitle(
"#eta \b");
2302 h2Cefz6->SetYTitle(
"#phi \b");
2303 h2Cefz6->SetZTitle(Form(
"<ErrorB> - HE Depth%d \b",
depth));
2304 h2Cefz6->SetMarkerColor(2);
2305 h2Cefz6->SetLineColor(2);
2306 h2Cefz6->Draw(
"COLZ");
2313 hname1 = hnames[2 *
depth - 1][0];
2314 hname0 = hnames[2 *
depth - 1][1];
2315 TH1F *h1 = (TH1F *)dir->FindObjectAny(hname1);
2316 TH1F *h0 = (TH1F *)dir->FindObjectAny(hname0);
2318 std::cout <<
"errB_HE depth=" <<
depth <<
". get 2D histos " << hname1 <<
" and " << hname0 <<
"\n";
2320 TPaveText *ptext =
new TPaveText(0.05, 0.85, 0.95, 0.95);
2321 ptext->AddText(
"Missing histo");
2323 std::cout <<
"\tfailed to get " << hname1 <<
"\n";
2324 ptext->AddText(hname1);
2327 std::cout <<
"\tfailed to get " << hname0 <<
"\n";
2328 ptext->AddText(hname0);
2335 hRate2orig = (TH1F *)h1->Clone(Form(
"Rate2orig_%d",
depth));
2336 hRate2orig->Divide(h1, h0, 1, 1,
"B");
2338 TH1F *hRate2 =
NULL;
2339 if (lastLumiBin_HE > 1) {
2340 if (!
copyContents(&hRate2, Form(
"Rate2_%d",
depth),
"", hRate2orig, lastLumiBin_HE)) {
2341 std::cout <<
"code failed" << std::endl;
2345 hRate2 = hRate2orig;
2347 hRate2->SetTitle(Form(
"Depth %d \b",
depth));
2348 hRate2->SetMarkerStyle(20);
2349 hRate2->SetMarkerSize(0.8);
2351 hRate2->SetXTitle(Form(
"<ErrorB>(ev.in LS & ch.) - HE depth%d - iLS \b",
depth));
2352 hRate2->SetMarkerColor(2);
2353 hRate2->SetLineColor(0);
2354 hRate2->Draw(
"Error");
2356 if (LSofFirstErrB_HE == -1) {
2357 int nx = hRate2->GetXaxis()->GetNbins();
2358 for (
int i = 1; i <= nx; i++) {
2359 double ccc1 = hRate2->GetBinContent(i);
2361 cout <<
"****************>>>>>>>>>>> ErrB_HE bad LS start at iLS = " << i <<
" with rate = " << ccc1
2363 LSofFirstErrB_HE =
i;
2371 if (hRate2 != hRate2orig) {
2373 hRate2orig = hRate2;
2378 cHB->Print(Form(
"HistErrB_HE_%d.png",
depth));
2393 int flagErrAB_HO[2];
2394 flagErrAB_HO[0] = -1;
2395 flagErrAB_HO[1] = -1;
2396 double avedelta_HO = 0.;
2397 int lastLumiBin_HO = -1;
2398 int LSofFirstErrB_HO = -1;
2400 const int specCountA = 4;
2401 const int specColors[specCountA] = {1, 2, 3, 4};
2402 const TString hnames[specCountA][2] = {{
"h_sumADCAmplperLS8_P1",
"h_sum0ADCAmplperLS8_P1"},
2403 {
"h_sumADCAmplperLS8_P2",
"h_sum0ADCAmplperLS8_P2"},
2404 {
"h_sumADCAmplperLS8_M1",
"h_sum0ADCAmplperLS8_M1"},
2405 {
"h_sumADCAmplperLS8_M2",
"h_sum0ADCAmplperLS8_M2"}};
2407 std::vector<TH1F *> hV;
2408 THStack *hs =
new THStack(
"hs",
"ADCAmplerLS1");
2415 for (
int i = 0; i < specCountA; i++) {
2417 std::cout <<
"debugger: errA_HO : get histos for i=" << i <<
" " << hnames[
i][0] <<
" and " << hnames[
i][1]
2419 TH1F *h1 = (TH1F *)dir->FindObjectAny(hnames[i][0]);
2420 TH1F *h0 = (TH1F *)dir->FindObjectAny(hnames[i][1]);
2422 TPaveText *ptext =
new TPaveText(0.05, 0.85, 0.95, 0.95);
2423 ptext->AddText(
"Missing histo");
2425 std::cout <<
"\tfailed to get " << hnames[
i][0] <<
"\n";
2426 ptext->AddText(hnames[i][0]);
2429 std::cout <<
"\tfailed to get " << hnames[
i][1] <<
"\n";
2430 ptext->AddText(hnames[i][1]);
2435 TH1F *hoRT1orig = (TH1F *)h1->Clone(Form(
"ERT1orig_%d", i));
2436 hoRT1orig->Divide(h1, h0, 1, 1,
"B");
2438 if ((lastLumiBin_HO < 0) && (i == 0)) {
2439 for (
int ibin = hoRT1orig->GetNbinsX(); ibin >= 1; ibin--) {
2440 if (hoRT1orig->GetBinContent(ibin) == 0)
2441 lastLumiBin_HO = ibin;
2445 lastLumiBin_HO += 3;
2446 if (lastLumiBin_HO >= hoRT1orig->GetNbinsX())
2447 lastLumiBin_HO = -1;
2450 if (lastLumiBin_HO > 1) {
2451 if (!
copyContents(&hoRT1, Form(
"ERT1_%d", i),
"", hoRT1orig, lastLumiBin_HO)) {
2452 std::cout <<
"code failed" << std::endl;
2458 hoRT1->GetXaxis()->SetTitle(
"<ADCAmpl> per LS HO: black-P1, red-P2,green-M1,blue-M2");
2459 hV.push_back(hoRT1);
2460 hoRT1->SetMarkerStyle(20);
2461 hoRT1->SetMarkerSize(0.4);
2462 hoRT1->SetXTitle(
"<A>(ev.in LS & ch.) - HO P1 - iLS \b");
2463 hoRT1->SetMarkerColor(specColors[i]);
2464 hoRT1->SetLineColor(0);
2468 if (hoRT1 != hoRT1orig)
2471 hs->Draw(
"LPE1 nostack");
2473 hs->GetXaxis()->SetTitle(
"<A> per LS: black-P1, red-P2,green-M1,blue-M2");
2474 hs->Draw(
"LPE1 nostack");
2480 TH1F *diff =
new TH1F(
"diff",
"", 100, 0., 4.);
2482 if (
int(hV.size()) == specCountA) {
2483 flagErrAB_HO[0] = 0;
2484 double sumdelta = 0.;
2486 for (
int ibin = 1; ibin <= hV[0]->GetNbinsX(); ibin++) {
2488 double maxdelta = 0.;
2489 for (
unsigned int i = 0; i < hV.size(); i++) {
2490 const TH1F *hi = hV[
i];
2491 for (
unsigned int j = 1;
j < hV.size();
j++) {
2492 const TH1F *hj = hV[
j];
2493 delta = fabs(hi->GetBinContent(ibin) - hj->GetBinContent(ibin));
2494 if (delta > maxdelta)
2498 if (maxdelta > 0.) {
2499 diff->Fill(maxdelta);
2500 sumdelta += maxdelta;
2505 avedelta_HO = sumdelta / nnndelta;
2506 std::cout <<
"******************>>>>>> ErrA_HO: avedelta_HO = " << avedelta_HO << std::endl;
2507 if (avedelta_HO > 0.8 || (avedelta_HO < 0.2 && avedelta_HO > 0.)) {
2508 flagErrAB_HO[0] = 1;
2511 diff->SetMarkerStyle(20);
2512 diff->SetMarkerSize(0.8);
2513 diff->SetXTitle(
"max difference \b");
2514 diff->SetMarkerColor(2);
2515 diff->SetLineColor(0);
2518 diff->Draw(
"Error");
2521 cHB->Print(
"HistErrA_HO.png");
2528 for (
unsigned int i = 0; i < hV.size(); i++)
2535 const int specCountB = 2;
2536 const TString hnames[specCountB][2] = {{
"h_2DsumErrorBLS8",
"h_2D0sumErrorBLS8"},
2537 {
"h_sumErrorBperLS8",
"h_sum0ErrorBperLS8"}};
2544 TH1F *hRate2orig =
NULL;
2545 TH2F *h2Cefz6 =
NULL;
2546 TString hname1 = hnames[2 *
depth - 8][0];
2547 TString hname0 = hnames[2 *
depth - 8][1];
2548 TH2F *twod1 = (TH2F *)dir->FindObjectAny(hname1);
2549 TH2F *twod0 = (TH2F *)dir->FindObjectAny(hname0);
2551 std::cout <<
"debugger: errB_HO depth=" <<
depth <<
". get 2D histos " << hname1 <<
" and " << hname0 <<
"\n";
2552 if (!twod1 || !twod0) {
2553 TPaveText *ptext =
new TPaveText(0.05, 0.85, 0.95, 0.95);
2554 ptext->AddText(
"Missing histos");
2556 std::cout <<
"\tfailed to get " << hname1 <<
"\n";
2557 ptext->AddText(hname1);
2560 std::cout <<
"\tfailed to get " << hname0 <<
"\n";
2561 ptext->AddText(hname0);
2565 h2Cefz6 = (TH2F *)twod1->Clone(Form(
"Cefz6_%d",
depth));
2566 h2Cefz6->SetTitle(Form(
"HO Depth %d \b",
depth));
2567 h2Cefz6->Divide(twod1, twod0, 1, 1,
"B");
2572 h2Cefz6->SetTitle(Form(
"Depth %d \b",
depth));
2573 h2Cefz6->SetMarkerStyle(20);
2574 h2Cefz6->SetMarkerSize(0.4);
2576 h2Cefz6->SetXTitle(
"#eta \b");
2577 h2Cefz6->SetYTitle(
"#phi \b");
2578 h2Cefz6->SetZTitle(Form(
"<ErrorB> - HO Depth%d \b",
depth));
2579 h2Cefz6->SetMarkerColor(2);
2580 h2Cefz6->SetLineColor(2);
2581 h2Cefz6->Draw(
"COLZ");
2588 hname1 = hnames[2 *
depth - 7][0];
2589 hname0 = hnames[2 *
depth - 7][1];
2590 TH1F *h1 = (TH1F *)dir->FindObjectAny(hname1);
2591 TH1F *h0 = (TH1F *)dir->FindObjectAny(hname0);
2593 std::cout <<
"errB_HO depth=" <<
depth <<
". get 2D histos " << hname1 <<
" and " << hname0 <<
"\n";
2595 TPaveText *ptext =
new TPaveText(0.05, 0.85, 0.95, 0.95);
2596 ptext->AddText(
"Missing histo");
2598 std::cout <<
"\tfailed to get " << hname1 <<
"\n";
2599 ptext->AddText(hname1);
2602 std::cout <<
"\tfailed to get " << hname0 <<
"\n";
2603 ptext->AddText(hname0);
2610 hRate2orig = (TH1F *)h1->Clone(Form(
"Rate2orig_%d",
depth));
2611 hRate2orig->Divide(h1, h0, 1, 1,
"B");
2613 TH1F *hRate2 =
NULL;
2614 if (lastLumiBin_HO > 1) {
2615 if (!
copyContents(&hRate2, Form(
"Rate2_%d",
depth),
"", hRate2orig, lastLumiBin_HO)) {
2616 std::cout <<
"code failed" << std::endl;
2620 hRate2 = hRate2orig;
2622 hRate2->SetTitle(Form(
"Depth %d \b",
depth));
2623 hRate2->SetMarkerStyle(20);
2624 hRate2->SetMarkerSize(0.8);
2626 hRate2->SetXTitle(Form(
"<ErrorB>(ev.in LS & ch.) - HO depth%d - iLS \b",
depth));
2627 hRate2->SetMarkerColor(2);
2628 hRate2->SetLineColor(0);
2629 hRate2->Draw(
"Error");
2631 if (LSofFirstErrB_HO == -1) {
2632 int nx = hRate2->GetXaxis()->GetNbins();
2633 for (
int i = 1; i <= nx; i++) {
2634 double ccc1 = hRate2->GetBinContent(i);
2636 cout <<
"****************>>>>>>>>>>> ErrB_HO bad LS start at iLS = " << i <<
" with rate = " << ccc1
2638 LSofFirstErrB_HO =
i;
2646 if (hRate2 != hRate2orig) {
2648 hRate2orig = hRate2;
2653 cHB->Print(Form(
"HistErrB_HO_%d.png",
depth));
2667 int flagErrAB_HF[2];
2668 flagErrAB_HF[0] = -1;
2669 flagErrAB_HF[1] = -1;
2670 double avedelta_HF = 0.;
2671 int lastLumiBin_HF = -1;
2672 int LSofFirstErrB_HF = -1;
2674 const int specCountA = 4;
2675 const int specColors[specCountA] = {1, 2, 3, 4};
2676 const TString hnames[specCountA][2] = {{
"h_sumADCAmplperLS6_P1",
"h_sum0ADCAmplperLS6_P1"},
2677 {
"h_sumADCAmplperLS6_P2",
"h_sum0ADCAmplperLS6_P2"},
2678 {
"h_sumADCAmplperLS6_M1",
"h_sum0ADCAmplperLS6_M1"},
2679 {
"h_sumADCAmplperLS6_M2",
"h_sum0ADCAmplperLS6_M2"}};
2681 std::vector<TH1F *> hV;
2682 THStack *hs =
new THStack(
"hs",
"ADCAmplerLS6");
2689 for (
int i = 0; i < specCountA; i++) {
2691 std::cout <<
"debugger: errA_HF : get histos for i=" << i <<
" " << hnames[
i][0] <<
" and " << hnames[
i][1]
2693 TH1F *h1 = (TH1F *)dir->FindObjectAny(hnames[i][0]);
2694 TH1F *h0 = (TH1F *)dir->FindObjectAny(hnames[i][1]);
2696 TPaveText *ptext =
new TPaveText(0.05, 0.85, 0.95, 0.95);
2697 ptext->AddText(
"Missing histo");
2699 std::cout <<
"\tfailed to get " << hnames[
i][0] <<
"\n";
2700 ptext->AddText(hnames[i][0]);
2703 std::cout <<
"\tfailed to get " << hnames[
i][1] <<
"\n";
2704 ptext->AddText(hnames[i][1]);
2709 TH1F *hERT1orig = (TH1F *)h1->Clone(Form(
"ERT1orig_%d", i));
2710 hERT1orig->Divide(h1, h0, 1, 1,
"B");
2712 if ((lastLumiBin_HF < 0) && (i == 0)) {
2713 for (
int ibin = hERT1orig->GetNbinsX(); ibin >= 1; ibin--) {
2714 if (hERT1orig->GetBinContent(ibin) == 0)
2715 lastLumiBin_HF = ibin;
2719 lastLumiBin_HF += 3;
2720 if (lastLumiBin_HF >= hERT1orig->GetNbinsX())
2721 lastLumiBin_HF = -1;
2724 if (lastLumiBin_HF > 1) {
2725 if (!
copyContents(&hERT1, Form(
"ERT1_%d", i),
"", hERT1orig, lastLumiBin_HF)) {
2726 std::cout <<
"code failed" << std::endl;
2732 hERT1->GetXaxis()->SetTitle(
"<ADCAmpl> per LS HF: black-P1, red-P2,green-M1,blue-M2");
2733 hV.push_back(hERT1);
2734 hERT1->SetMarkerStyle(20);
2735 hERT1->SetMarkerSize(0.4);
2736 hERT1->SetXTitle(
"<A>(ev.in LS & ch.) - HF P1 - iLS \b");
2737 hERT1->SetMarkerColor(specColors[i]);
2738 hERT1->SetLineColor(0);
2742 if (hERT1 != hERT1orig)
2745 hs->Draw(
"LPE1 nostack");
2747 hs->GetXaxis()->SetTitle(
"<A> per LS: black-P1, red-P2,green-M1,blue-M2");
2748 hs->Draw(
"LPE1 nostack");
2754 TH1F *diff =
new TH1F(
"diff",
"", 100, 0., 4.);
2756 if (
int(hV.size()) == specCountA) {
2757 flagErrAB_HF[0] = 0;
2758 double sumdelta = 0.;
2760 std::cout <<
"******** GetNbinsX = " << hV[0]->GetNbinsX() << std::endl;
2761 for (
int ibin = 1; ibin <= hV[0]->GetNbinsX(); ibin++) {
2763 double maxdelta = 0.;
2764 for (
unsigned int i = 0; i < hV.size(); i++) {
2765 const TH1F *hi = hV[
i];
2766 for (
unsigned int j = 1;
j < hV.size();
j++) {
2767 const TH1F *hj = hV[
j];
2768 delta = fabs(hi->GetBinContent(ibin) - hj->GetBinContent(ibin));
2769 if (delta > maxdelta)
2774 if (maxdelta > 0.) {
2775 diff->Fill(maxdelta);
2776 sumdelta += maxdelta;
2781 avedelta_HF = sumdelta / nnndelta;
2783 if (avedelta_HF > 2.4 || (avedelta_HF < 0.8 && avedelta_HF > 0.)) {
2784 flagErrAB_HF[0] = 1;
2787 diff->SetMarkerStyle(20);
2788 diff->SetMarkerSize(0.8);
2789 diff->SetXTitle(
"max difference \b");
2790 diff->SetMarkerColor(2);
2791 diff->SetLineColor(0);
2794 diff->Draw(
"Error");
2797 cHB->Print(
"HistErrA_HF.png");
2803 for (
unsigned int i = 0; i < hV.size(); i++)
2809 const int specCountB = 4;
2810 const TString hnames[specCountB][2] = {{
"h_2DsumErrorBLS6",
"h_2D0sumErrorBLS6"},
2811 {
"h_sumErrorBperLS6",
"h_sum0ErrorBperLS6"},
2812 {
"h_2DsumErrorBLS7",
"h_2D0sumErrorBLS7"},
2813 {
"h_sumErrorBperLS7",
"h_sum0ErrorBperLS7"}};
2819 TH1F *hRate2orig =
NULL;
2820 TH2F *h2Cefz6 =
NULL;
2821 TString hname1 = hnames[2 *
depth - 2][0];
2822 TString hname0 = hnames[2 *
depth - 2][1];
2823 TH2F *twod1 = (TH2F *)dir->FindObjectAny(hname1);
2824 TH2F *twod0 = (TH2F *)dir->FindObjectAny(hname0);
2826 std::cout <<
"debugger: errB_HF depth=" <<
depth <<
". get 2D histos " << hname1 <<
" and " << hname0 <<
"\n";
2827 if (!twod1 || !twod0) {
2828 TPaveText *ptext =
new TPaveText(0.05, 0.85, 0.95, 0.95);
2829 ptext->AddText(
"Missing histos");
2831 std::cout <<
"\tfailed to get " << hname1 <<
"\n";
2832 ptext->AddText(hname1);
2835 std::cout <<
"\tfailed to get " << hname0 <<
"\n";
2836 ptext->AddText(hname0);
2840 h2Cefz6 = (TH2F *)twod1->Clone(Form(
"Cefz6_%d",
depth));
2841 h2Cefz6->SetTitle(Form(
"HF Depth %d \b",
depth));
2842 h2Cefz6->Divide(twod1, twod0, 1, 1,
"B");
2847 h2Cefz6->SetTitle(Form(
"Depth %d \b",
depth));
2848 h2Cefz6->SetMarkerStyle(20);
2849 h2Cefz6->SetMarkerSize(0.4);
2851 h2Cefz6->SetXTitle(
"#eta \b");
2852 h2Cefz6->SetYTitle(
"#phi \b");
2853 h2Cefz6->SetZTitle(Form(
"<ErrorB> - HF Depth%d \b",
depth));
2854 h2Cefz6->SetMarkerColor(2);
2855 h2Cefz6->SetLineColor(2);
2856 h2Cefz6->Draw(
"COLZ");
2861 hname1 = hnames[2 *
depth - 1][0];
2862 hname0 = hnames[2 *
depth - 1][1];
2863 TH1F *h1 = (TH1F *)dir->FindObjectAny(hname1);
2864 TH1F *h0 = (TH1F *)dir->FindObjectAny(hname0);
2866 std::cout <<
"errB_HF depth=" <<
depth <<
". get 2D histos " << hname1 <<
" and " << hname0 <<
"\n";
2868 TPaveText *ptext =
new TPaveText(0.05, 0.85, 0.95, 0.95);
2869 ptext->AddText(
"Missing histo");
2871 std::cout <<
"\tfailed to get " << hname1 <<
"\n";
2872 ptext->AddText(hname1);
2875 std::cout <<
"\tfailed to get " << hname0 <<
"\n";
2876 ptext->AddText(hname0);
2883 hRate2orig = (TH1F *)h1->Clone(Form(
"Rate2orig_%d",
depth));
2884 hRate2orig->Divide(h1, h0, 1, 1,
"B");
2886 TH1F *hRate2 =
NULL;
2887 if (lastLumiBin_HF > 1) {
2888 if (!
copyContents(&hRate2, Form(
"Rate2_%d",
depth),
"", hRate2orig, lastLumiBin_HF)) {
2889 std::cout <<
"code failed" << std::endl;
2893 hRate2 = hRate2orig;
2894 hRate2->SetTitle(Form(
"Depth %d \b",
depth));
2895 hRate2->SetMarkerStyle(20);
2896 hRate2->SetMarkerSize(0.8);
2898 hRate2->SetXTitle(Form(
"<ErrorB>(ev.in LS & ch.) - HF depth%d - iLS \b",
depth));
2899 hRate2->SetMarkerColor(2);
2900 hRate2->SetLineColor(0);
2901 hRate2->Draw(
"Error");
2902 if (LSofFirstErrB_HF == -1) {
2903 int nx = hRate2->GetXaxis()->GetNbins();
2904 for (
int i = 1; i <= nx; i++) {
2905 double ccc1 = hRate2->GetBinContent(i);
2907 cout <<
"****************>>>>>>>>>>> ErrB_HF bad LS start at iLS = " << i <<
" with rate = " << ccc1
2909 LSofFirstErrB_HF =
i;
2916 if (hRate2 != hRate2orig) {
2918 hRate2orig = hRate2;
2922 cHB->Print(Form(
"HistErrB_HF_%d.png",
depth));
2938 TH2F *h2Ceff =
NULL;
2939 TH2F *h2Diffe =
NULL;
2941 TH2F *h3Ceff =
NULL;
2948 TString hname1 = Form(
"h_mapDepth%dADCAmpl_HB",
depth);
2949 TString hname0 = Form(
"h_mapDepth%d_HB",
depth);
2950 TH2F *twod1 = (TH2F *)dir->FindObjectAny(hname1);
2951 TH2F *twod0 = (TH2F *)dir->FindObjectAny(hname0);
2952 if (!twod1 || !twod0) {
2953 TPaveText *ptext =
new TPaveText(0.05, 0.85, 0.95, 0.95);
2954 ptext->AddText(
"Missing histo");
2955 std::cout <<
"specHB test: failed to load " << hname1 <<
" and/or " << hname0 <<
"\n";
2957 ptext->AddText(hname1);
2959 ptext->AddText(hname0);
2964 h2Ceff = (TH2F *)twod1->Clone(Form(
"Ceff_HB%d",
depth));
2965 h2Ceff->SetTitle(Form(
"HB Depth %d. (No cut) \b",
depth));
2966 h2Ceff->Divide(twod1, twod0, 1, 1,
"B");
2971 h2Ceff->SetMarkerStyle(20);
2972 h2Ceff->SetMarkerSize(0.4);
2974 h2Ceff->SetXTitle(
"#eta \b");
2975 h2Ceff->SetYTitle(
"#phi \b");
2976 h2Ceff->SetZTitle(
"h_mapDepth1ADCAmpl_HB \b");
2977 h2Ceff->SetMarkerColor(2);
2978 h2Ceff->SetLineColor(2);
2979 h2Ceff->Draw(
"COLZ");
2986 h2Diffe = (TH2F *)h2Ceff->Clone(Form(
"Diffe_Depth%d_HB",
depth));
2987 h2Diffe->SetTitle(Form(
"HB Depth %d. Cut avg(ADCAmpl) > 25 \b",
depth));
2988 int nx = h2Ceff->GetXaxis()->GetNbins();
2989 int ny = h2Ceff->GetYaxis()->GetNbins();
2990 for (
int i = 1; i <= nx; i++) {
2991 for (
int j = 1;
j <= ny;
j++) {
2992 double ccc1 = h2Ceff->GetBinContent(i,
j);
2993 h2Diffe->SetBinContent(i,
j, 0.);
2995 h2Diffe->SetBinContent(i,
j, ccc1);
3001 h2Diffe->SetMarkerStyle(20);
3002 h2Diffe->SetMarkerSize(0.4);
3004 h2Diffe->SetXTitle(
"#eta \b");
3005 h2Diffe->SetYTitle(
"#phi \b");
3006 h2Diffe->SetZTitle(
"<ADCAmpl> bigger 25.- HB Depth1 \b");
3007 h2Diffe->SetMarkerColor(2);
3008 h2Diffe->SetLineColor(2);
3009 h2Diffe->Draw(
"COLZ");
3013 TString hname3 = Form(
"h_mapDepth%dADCAmpl225Copy_HB",
depth);
3014 TH2F *twod3 = (TH2F *)dir->FindObjectAny(hname3);
3015 if (!twod3 || !twod0) {
3016 TPaveText *ptext =
new TPaveText(0.05, 0.85, 0.95, 0.95);
3017 ptext->AddText(
"Missing histo");
3018 std::cout <<
"specHB test: failed to load " << hname3 <<
" and/or " << hname0 <<
"\n";
3020 ptext->AddText(hname3);
3022 ptext->AddText(hname0);
3027 h3Ceff = (TH2F *)twod3->Clone(Form(
"CeffA_HB%d",
depth));
3028 h3Ceff->SetTitle(Form(
"HB Depth %d. \b",
depth));
3029 h3Ceff->Divide(twod3, twod0, 1, 1,
"B");
3033 h3Ceff->SetMarkerStyle(20);
3034 h3Ceff->SetMarkerSize(0.4);
3036 h3Ceff->SetXTitle(
"#eta \b");
3037 h3Ceff->SetYTitle(
"#phi \b");
3038 h3Ceff->SetZTitle(
"rate for channels of HB \b");
3039 h3Ceff->SetMarkerColor(2);
3040 h3Ceff->SetLineColor(2);
3041 h3Ceff->Draw(
"COLZ");
3045 cHE->Print(Form(
"ChkErrA_HB%d.png",
depth));
3067 TH2F *h2Ceff =
NULL;
3068 TH2F *h2Diffe =
NULL;
3070 TH2F *h3Ceff =
NULL;
3077 TString hname1 = Form(
"h_mapDepth%dADCAmpl_HE",
depth);
3078 TString hname0 = Form(
"h_mapDepth%d_HE",
depth);
3079 TH2F *twod1 = (TH2F *)dir->FindObjectAny(hname1);
3080 TH2F *twod0 = (TH2F *)dir->FindObjectAny(hname0);
3081 if (!twod1 || !twod0) {
3082 TPaveText *ptext =
new TPaveText(0.05, 0.85, 0.95, 0.95);
3083 ptext->AddText(
"Missing histo");
3084 std::cout <<
"specHE test: failed to load " << hname1 <<
" and/or " << hname0 <<
"\n";
3086 ptext->AddText(hname1);
3088 ptext->AddText(hname0);
3093 h2Ceff = (TH2F *)twod1->Clone(Form(
"Ceff_HE%d",
depth));
3094 h2Ceff->SetTitle(Form(
"HE Depth %d. (No cut) \b",
depth));
3095 h2Ceff->Divide(twod1, twod0, 1, 1,
"B");
3100 h2Ceff->SetMarkerStyle(20);
3101 h2Ceff->SetMarkerSize(0.4);
3103 h2Ceff->SetXTitle(
"#eta \b");
3104 h2Ceff->SetYTitle(
"#phi \b");
3105 h2Ceff->SetZTitle(
"h_mapDepth1ADCAmpl_HE \b");
3106 h2Ceff->SetMarkerColor(2);
3107 h2Ceff->SetLineColor(2);
3108 h2Ceff->Draw(
"COLZ");
3115 h2Diffe = (TH2F *)h2Ceff->Clone(Form(
"Diffe_Depth%d_HE",
depth));
3116 h2Diffe->SetTitle(Form(
"HE Depth %d. Cut avg(ADCAmpl) > 1000 fC \b",
depth));
3117 int nx = h2Ceff->GetXaxis()->GetNbins();
3118 int ny = h2Ceff->GetYaxis()->GetNbins();
3119 for (
int i = 1; i <= nx; i++) {
3120 for (
int j = 1;
j <= ny;
j++) {
3121 double ccc1 = h2Ceff->GetBinContent(i,
j);
3122 h2Diffe->SetBinContent(i,
j, 0.);
3124 h2Diffe->SetBinContent(i,
j, ccc1);
3130 h2Diffe->SetMarkerStyle(20);
3131 h2Diffe->SetMarkerSize(0.4);
3133 h2Diffe->SetXTitle(
"#eta \b");
3134 h2Diffe->SetYTitle(
"#phi \b");
3135 h2Diffe->SetZTitle(
"<ADCAmpl> bigger 1000.fC - HE Depth1 \b");
3136 h2Diffe->SetMarkerColor(2);
3137 h2Diffe->SetLineColor(2);
3138 h2Diffe->Draw(
"COLZ");
3142 TString hname3 = Form(
"h_mapDepth%dADCAmpl225Copy_HE",
depth);
3143 TH2F *twod3 = (TH2F *)dir->FindObjectAny(hname3);
3144 if (!twod3 || !twod0) {
3145 TPaveText *ptext =
new TPaveText(0.05, 0.85, 0.95, 0.95);
3146 ptext->AddText(
"Missing histo");
3147 std::cout <<
"specHE test: failed to load " << hname3 <<
" and/or " << hname0 <<
"\n";
3149 ptext->AddText(hname3);
3151 ptext->AddText(hname0);
3156 h3Ceff = (TH2F *)twod3->Clone(Form(
"CeffA_HE%d",
depth));
3157 h3Ceff->SetTitle(Form(
"HE Depth %d. \b",
depth));
3158 h3Ceff->Divide(twod3, twod0, 1, 1,
"B");
3162 h3Ceff->SetMarkerStyle(20);
3163 h3Ceff->SetMarkerSize(0.4);
3165 h3Ceff->SetXTitle(
"#eta \b");
3166 h3Ceff->SetYTitle(
"#phi \b");
3167 h3Ceff->SetZTitle(
"rate for channels of HE \b");
3168 h3Ceff->SetMarkerColor(2);
3169 h3Ceff->SetLineColor(2);
3170 h3Ceff->Draw(
"COLZ");
3174 cHE->Print(Form(
"ChkErrA_HE%d.png",
depth));
3196 TH2F *h2Ceff =
NULL;
3197 TH2F *h2Diffe =
NULL;
3199 TH2F *h3Ceff =
NULL;
3206 TString hname1 = Form(
"h_mapDepth%dADCAmpl_HO",
depth);
3207 TString hname0 = Form(
"h_mapDepth%d_HO",
depth);
3208 TH2F *twod1 = (TH2F *)dir->FindObjectAny(hname1);
3209 TH2F *twod0 = (TH2F *)dir->FindObjectAny(hname0);
3210 if (!twod1 || !twod0) {
3211 TPaveText *ptext =
new TPaveText(0.05, 0.85, 0.95, 0.95);
3212 ptext->AddText(
"Missing histo");
3213 std::cout <<
"specHO test: failed to load " << hname1 <<
" and/or " << hname0 <<
"\n";
3215 ptext->AddText(hname1);
3217 ptext->AddText(hname0);
3222 h2Ceff = (TH2F *)twod1->Clone(Form(
"Ceff_HO%d",
depth));
3223 h2Ceff->SetTitle(Form(
"HO Depth %d. (No cut) \b",
depth));
3224 h2Ceff->Divide(twod1, twod0, 1, 1,
"B");
3229 h2Ceff->SetMarkerStyle(20);
3230 h2Ceff->SetMarkerSize(0.4);
3232 h2Ceff->SetXTitle(
"#eta \b");
3233 h2Ceff->SetYTitle(
"#phi \b");
3234 h2Ceff->SetZTitle(
"h_mapDepth1ADCAmpl_HO \b");
3235 h2Ceff->SetMarkerColor(2);
3236 h2Ceff->SetLineColor(2);
3237 h2Ceff->Draw(
"COLZ");
3244 h2Diffe = (TH2F *)h2Ceff->Clone(Form(
"Diffe_Depth%d_HO",
depth));
3245 h2Diffe->SetTitle(Form(
"HO Depth %d. Cut avg(ADCAmpl) > 80 \b",
depth));
3246 int nx = h2Ceff->GetXaxis()->GetNbins();
3247 int ny = h2Ceff->GetYaxis()->GetNbins();
3248 for (
int i = 1; i <= nx; i++) {
3249 for (
int j = 1;
j <= ny;
j++) {
3250 double ccc1 = h2Ceff->GetBinContent(i,
j);
3251 h2Diffe->SetBinContent(i,
j, 0.);
3253 h2Diffe->SetBinContent(i,
j, ccc1);
3259 h2Diffe->SetMarkerStyle(20);
3260 h2Diffe->SetMarkerSize(0.4);
3262 h2Diffe->SetXTitle(
"#eta \b");
3263 h2Diffe->SetYTitle(
"#phi \b");
3264 h2Diffe->SetZTitle(
"<ADCAmpl> bigger 80.- HO Depth1 \b");
3265 h2Diffe->SetMarkerColor(2);
3266 h2Diffe->SetLineColor(2);
3267 h2Diffe->Draw(
"COLZ");
3271 TString hname3 = Form(
"h_mapDepth%dADCAmpl225Copy_HO",
depth);
3272 TH2F *twod3 = (TH2F *)dir->FindObjectAny(hname3);
3273 if (!twod3 || !twod0) {
3274 TPaveText *ptext =
new TPaveText(0.05, 0.85, 0.95, 0.95);
3275 ptext->AddText(
"Missing histo");
3276 std::cout <<
"specHO test: failed to load " << hname3 <<
" and/or " << hname0 <<
"\n";
3278 ptext->AddText(hname3);
3280 ptext->AddText(hname0);
3285 h3Ceff = (TH2F *)twod3->Clone(Form(
"CeffA_HO%d",
depth));
3286 h3Ceff->SetTitle(Form(
"HO Depth %d. \b",
depth));
3287 h3Ceff->Divide(twod3, twod0, 1, 1,
"B");
3291 h3Ceff->SetMarkerStyle(20);
3292 h3Ceff->SetMarkerSize(0.4);
3294 h3Ceff->SetXTitle(
"#eta \b");
3295 h3Ceff->SetYTitle(
"#phi \b");
3296 h3Ceff->SetZTitle(
"rate for channels of HO \b");
3297 h3Ceff->SetMarkerColor(2);
3298 h3Ceff->SetLineColor(2);
3299 h3Ceff->Draw(
"COLZ");
3303 cHE->Print(Form(
"ChkErrA_HO%d.png",
depth));
3325 TH2F *h2Ceff =
NULL;
3326 TH2F *h2Diffe =
NULL;
3328 TH2F *h3Ceff =
NULL;
3335 TString hname1 = Form(
"h_mapDepth%dADCAmpl_HF",
depth);
3336 TString hname0 = Form(
"h_mapDepth%d_HF",
depth);
3337 TH2F *twod1 = (TH2F *)dir->FindObjectAny(hname1);
3338 TH2F *twod0 = (TH2F *)dir->FindObjectAny(hname0);
3339 if (!twod1 || !twod0) {
3340 TPaveText *ptext =
new TPaveText(0.05, 0.85, 0.95, 0.95);
3341 ptext->AddText(
"Missing histo");
3342 std::cout <<
"specHF test: failed to load " << hname1 <<
" and/or " << hname0 <<
"\n";
3344 ptext->AddText(hname1);
3346 ptext->AddText(hname0);
3351 h2Ceff = (TH2F *)twod1->Clone(Form(
"Ceff_HF%d",
depth));
3352 h2Ceff->SetTitle(Form(
"HF Depth %d. (No cut) \b",
depth));
3353 h2Ceff->Divide(twod1, twod0, 1, 1,
"B");
3358 h2Ceff->SetMarkerStyle(20);
3359 h2Ceff->SetMarkerSize(0.4);
3361 h2Ceff->SetXTitle(
"#eta \b");
3362 h2Ceff->SetYTitle(
"#phi \b");
3363 h2Ceff->SetZTitle(
"h_mapDepth1ADCAmpl_HF \b");
3364 h2Ceff->SetMarkerColor(2);
3365 h2Ceff->SetLineColor(2);
3366 h2Ceff->Draw(
"COLZ");
3373 h2Diffe = (TH2F *)h2Ceff->Clone(Form(
"Diffe_Depth%d_HF",
depth));
3374 h2Diffe->SetTitle(Form(
"HF Depth %d. Cut avg(ADCAmpl) > 20 \b",
depth));
3375 int nx = h2Ceff->GetXaxis()->GetNbins();
3376 int ny = h2Ceff->GetYaxis()->GetNbins();
3377 for (
int i = 1; i <= nx; i++) {
3378 for (
int j = 1;
j <= ny;
j++) {
3379 double ccc1 = h2Ceff->GetBinContent(i,
j);
3380 h2Diffe->SetBinContent(i,
j, 0.);
3382 h2Diffe->SetBinContent(i,
j, ccc1);
3388 h2Diffe->SetMarkerStyle(20);
3389 h2Diffe->SetMarkerSize(0.4);
3391 h2Diffe->SetXTitle(
"#eta \b");
3392 h2Diffe->SetYTitle(
"#phi \b");
3393 h2Diffe->SetZTitle(
"<ADCAmpl> bigger 20.- HF Depth1 \b");
3394 h2Diffe->SetMarkerColor(2);
3395 h2Diffe->SetLineColor(2);
3396 h2Diffe->Draw(
"COLZ");
3425 TString hname3 = Form(
"h_mapDepth%dADCAmpl225Copy_HF",
depth);
3426 TH2F *twod3 = (TH2F *)dir->FindObjectAny(hname3);
3427 if (!twod3 || !twod0) {
3428 TPaveText *ptext =
new TPaveText(0.05, 0.85, 0.95, 0.95);
3429 ptext->AddText(
"Missing histo");
3430 std::cout <<
"specHF test: failed to load " << hname3 <<
" and/or " << hname0 <<
"\n";
3432 ptext->AddText(hname3);
3434 ptext->AddText(hname0);
3439 h3Ceff = (TH2F *)twod3->Clone(Form(
"CeffA_HF%d",
depth));
3440 h3Ceff->SetTitle(Form(
"HF Depth %d. \b",
depth));
3441 h3Ceff->Divide(twod3, twod0, 1, 1,
"B");
3445 h3Ceff->SetMarkerStyle(20);
3446 h3Ceff->SetMarkerSize(0.4);
3448 h3Ceff->SetXTitle(
"#eta \b");
3449 h3Ceff->SetYTitle(
"#phi \b");
3450 h3Ceff->SetZTitle(
"rate for channels of HF \b");
3451 h3Ceff->SetMarkerColor(2);
3452 h3Ceff->SetLineColor(2);
3453 h3Ceff->Draw(
"COLZ");
3457 cHE->Print(Form(
"ChkErrA_HF%d.png",
depth));
3474 std::cout <<
"************>>> average Amplitudes done" << std::endl;
3476 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> " << endl;
3477 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> " << endl;
3478 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> " << endl;
3479 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> " << endl;
3480 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> " << endl;
3487 cout <<
" RBX analysis START for **************************" << endl;
3488 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> " << endl;
3493 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> int njeta = 22; int njphi = 18; int lsmax=2600; "
3496 double alexall[njeta][njphi][
lsmax];
3499 double alexhb[njphi][
lsmax];
3500 double alexhe[njphi][
lsmax];
3501 double alexho[njphi][
lsmax];
3502 double alexhf[njphi][
lsmax];
3505 double blexhb[njeta][
lsmax];
3506 double blexhe[njeta][
lsmax];
3507 double blexho[njeta][
lsmax];
3508 double blexhf[njeta][
lsmax];
3510 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> alexall [njeta][njphi][lsmax]; " << endl;
3511 int maxbinsRBX = MaxLum;
3512 int nx = maxbinsRBX;
3513 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> maxbinsRBX = MaxLum; " << endl;
3515 cout <<
"*********************************** ERROR ERROR ERROR ERROR: MaxLum > 2600 " << endl;
3516 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> " << endl;
3518 for (
int i = 0; i < nx; i++) {
3519 for (
int jphi = 0; jphi < njphi; jphi++) {
3520 alexhb[jphi][
i] = 0.;
3521 alexhe[jphi][
i] = 0.;
3522 alexho[jphi][
i] = 0.;
3523 alexhf[jphi][
i] = 0.;
3525 for (
int jeta = 0; jeta < njeta; jeta++) {
3527 blexhb[jeta][
i] = 0.;
3528 blexhe[jeta][
i] = 0.;
3529 blexho[jeta][
i] = 0.;
3530 blexhf[jeta][
i] = 0.;
3533 alexall[jeta][jphi][
i] = 0.;
3558 cout <<
" RBX general for HB **************************" << endl;
3559 TH2F *Ghb1KKK = (TH2F *)dir->FindObjectAny(
"h_2DsumADCAmplEtaPhiLs0");
3560 TH2F *Ghb1LLL = (TH2F *)dir->FindObjectAny(
"h_2DsumADCAmplEtaPhiLs00");
3561 TH2F *Ghb1 = (TH2F *)Ghb1LLL->Clone(
"Ghb1");
3562 Ghb1->Divide(Ghb1KKK, Ghb1LLL, 1, 1,
"B");
3565 int ny = Ghb1->GetYaxis()->GetNbins();
3567 for (
int j = 1;
j <= ny;
j++) {
3568 int jeta = (
j - 1) / njphi;
3569 if (jeta > 6 && jeta < 15) {
3570 int jphi = (
j - 1) - njphi * jeta;
3573 for (
int i = 1; i <= nx; i++) {
3574 double ccc1 = Ghb1->GetBinContent(i,
j);
3575 alexall[jeta][jphi][i - 1] = ccc1;
3590 for (
int jphi = 0; jphi < njphi; jphi++) {
3591 for (
int i = 0; i < nx; i++) {
3592 double sumccc1 = 0.;
3594 for (
int jeta = 0; jeta < njeta; jeta++) {
3595 double ccc1 = alexall[jeta][jphi][
i];
3603 alexhb[jphi][
i] = sumccc1;
3608 for (
int keta = 0; keta < njeta; keta++) {
3609 for (
int i = 0; i < nx; i++) {
3610 double sumccc1 = 0.;
3612 for (
int kphi = 0; kphi < njphi; kphi++) {
3613 double ccc1 = alexall[keta][kphi][
i];
3621 blexhb[keta][
i] = sumccc1;
3631 cout <<
" RBX HB 2D plot *****" << endl;
3634 cRBX1->Divide(1, 1);
3639 TH2F *Ghb42D =
new TH2F(
"Ghb42D",
"", 23, -11.5, 11.5, 18, 0., 18.);
3640 TH2F *Ghb42D0 =
new TH2F(
"Ghb42D0",
"", 23, -11.5, 11.5, 18, 0., 18.);
3641 TH2F *Ghb42DF = (TH2F *)Ghb42D0->Clone(
"Ghb42DF");
3642 for (
int jphi = 0; jphi < njphi; jphi++) {
3643 for (
int jeta = 0; jeta < njeta; jeta++) {
3644 for (
int i = 0; i < nx; i++) {
3645 double ccc1 = alexall[jeta][jphi][
i];
3646 int neweta = jeta - 11 - 0.5;
3648 neweta = jeta - 11 + 1.5;
3650 Ghb42D->Fill(neweta, jphi, ccc1);
3651 Ghb42D0->Fill(neweta, jphi, 1.);
3657 Ghb42DF->Divide(Ghb42D, Ghb42D0, 1, 1,
"B");
3661 Ghb42DF->SetMarkerStyle(20);
3662 Ghb42DF->SetMarkerSize(0.4);
3663 Ghb42DF->GetZaxis()->SetLabelSize(0.04);
3664 Ghb42DF->SetXTitle(
"<A>_RBX #eta \b");
3665 Ghb42DF->SetYTitle(
" #phi \b");
3666 Ghb42DF->SetZTitle(
"<A>_RBX - All \b");
3667 Ghb42DF->SetMarkerColor(2);
3668 Ghb42DF->SetLineColor(2);
3669 Ghb42DF->Draw(
"COLZ");
3673 cRBX1->Print(
"RBX-HB-2Dplot.png");
3688 cout <<
" RBX HB 1D plot *****" << endl;
3691 cRBX1->Divide(1, 1);
3693 TH1F *GphiHB1D =
new TH1F(
"GphiHB1D",
"", 18, 0., 18.);
3694 TH1F *GphiHB1D0 =
new TH1F(
"GphiHB1D0",
"", 18, 0., 18.);
3695 TH1F *GphiHB1DF = (TH1F *)GphiHB1D0->Clone(
"GphiHB1DF");
3696 for (
int jphi = 0; jphi < 18; jphi++) {
3697 for (
int jeta = 0; jeta < 22; jeta++) {
3698 for (
int i = 0; i < nx; i++) {
3699 double ccc1 = alexall[jeta][jphi][
i];
3701 GphiHB1D->Fill(jphi, ccc1);
3702 GphiHB1D0->Fill(jphi, 1.);
3708 GphiHB1DF->Divide(GphiHB1D, GphiHB1D0, 1, 1,
"B");
3710 for (
int jphi = 1; jphi < 19; jphi++) {
3711 GphiHB1DF->SetBinError(jphi, 0.01);
3715 GphiHB1DF->SetMarkerStyle(20);
3716 GphiHB1DF->SetMarkerSize(1.4);
3717 GphiHB1DF->GetZaxis()->SetLabelSize(0.08);
3718 GphiHB1DF->SetXTitle(
"PHI of RBX\b");
3719 GphiHB1DF->SetYTitle(
" <Amplitude> \b");
3720 GphiHB1DF->SetZTitle(
"<A>_PHI - All \b");
3721 GphiHB1DF->SetMarkerColor(4);
3722 GphiHB1DF->SetLineColor(4);
3723 GphiHB1DF->SetMinimum(0.8);
3724 GphiHB1DF->Draw(
"Error");
3727 cRBX1->Print(
"RBX-HB-1Dplot.png");
3742 cout <<
" RBX HB 11D plot *eta*" << endl;
3745 cRBX1->Divide(1, 1);
3747 TH1F *GetaHB11D =
new TH1F(
"GetaHB11D",
"", 23, -11.5, 11.5);
3748 TH1F *GetaHB11D0 =
new TH1F(
"GetaHB11D0",
"", 23, -11.5, 11.5);
3749 TH1F *GetaHB11DF = (TH1F *)GetaHB11D0->Clone(
"GetaHB11DF");
3751 for (
int jeta = 0; jeta < 22; jeta++) {
3752 for (
int jphi = 0; jphi < 18; jphi++) {
3753 for (
int i = 0; i < nx; i++) {
3754 double ccc1 = alexall[jeta][jphi][
i];
3755 int neweta = jeta - 11 - 0.5;
3757 neweta = jeta - 11 + 1.5;
3759 GetaHB11D->Fill(neweta, ccc1);
3760 GetaHB11D0->Fill(neweta, 1.);
3767 GetaHB11DF->Divide(GetaHB11D, GetaHB11D0, 1, 1,
"B");
3769 for (
int jeta = 1; jeta < 24; jeta++) {
3770 GetaHB11DF->SetBinError(jeta, 0.01);
3774 GetaHB11DF->SetMarkerStyle(20);
3775 GetaHB11DF->SetMarkerSize(1.4);
3776 GetaHB11DF->GetZaxis()->SetLabelSize(0.08);
3777 GetaHB11DF->SetXTitle(
"#eta \b");
3778 GetaHB11DF->SetYTitle(
" <A> \b");
3779 GetaHB11DF->SetZTitle(
"<A>_ETA - All \b");
3780 GetaHB11DF->SetMarkerColor(4);
3781 GetaHB11DF->SetLineColor(4);
3782 GetaHB11DF->SetMinimum(0.8);
3783 GetaHB11DF->Draw(
"Error");
3787 cRBX1->Print(
"RBX-HB-11Dplot.png");
3803 gStyle->SetOptStat(1110000);
3804 cout <<
" RBX HB Ratio plots *****" << endl;
3813 cRBX31->Divide(3, 1);
3817 TH1F *Ghb51 =
new TH1F(
"Ghb51",
"", nx, 1., nx + 1.);
3818 TH1F *Ghb50 =
new TH1F(
"Ghb50",
"", nx, 1., nx + 1.);
3819 TH1F *Ghb5 = (TH1F *)Ghb50->Clone(
"Ghb5");
3821 for (
int j = 1;
j <= ny;
j++) {
3822 ccc0HB = Ghb1->GetBinContent(1,
j);
3825 for (
int i = 1; i <= nx; i++) {
3826 double ccc2 = Ghb1->GetBinContent(i,
j);
3834 for (
int i = 1; i <= nx; i++) {
3835 double ccc1 = Ghb1->GetBinContent(i,
j);
3837 double Rij = ccc1 / ccc0HB;
3839 Ghb51->Fill(
float(i), Rij);
3840 Ghb50->Fill(
float(i), 1.);
3845 Ghb5->Divide(Ghb51, Ghb50, 1, 1,
"B");
3846 for (
int i = 1; i <= nx; i++) {
3847 Ghb5->SetBinError(i, 0.0001);
3849 Ghb5->SetMarkerStyle(20);
3850 Ghb5->SetMarkerSize(0.4);
3851 Ghb5->GetYaxis()->SetLabelSize(0.04);
3852 Ghb5->SetMarkerColor(2);
3853 Ghb5->SetLineColor(0);
3854 Ghb5->SetXTitle(
" iLS \b");
3855 Ghb5->SetYTitle(
" <R> \b");
3856 Ghb5->SetTitle(
"<Ri> vs iLS \b");
3857 Ghb5->SetMinimum(0.);
3862 Ghb5->GetYaxis()->SetLabelSize(0.025);
3863 Ghb5->Draw(
"Error");
3866 TH2F *Ghb60 =
new TH2F(
"Ghb60",
"", 22, -11., 11., 18, 0., 18.);
3867 TH2F *Ghb61 =
new TH2F(
"Ghb61",
"", 22, -11., 11., 18, 0., 18.);
3868 TH2F *Ghb6 =
new TH2F(
"Ghb6",
"", 22, -11., 11., 18, 0., 18.);
3870 TH2F *G20hb60 =
new TH2F(
"G20hb60",
"", 22, -11., 11., 18, 0., 18.);
3871 TH2F *G20hb61 =
new TH2F(
"G20hb61",
"", 22, -11., 11., 18, 0., 18.);
3872 TH2F *G20hb6 =
new TH2F(
"G20hb6",
"", 22, -11., 11., 18, 0., 18.);
3873 TH2F *G30hb60 =
new TH2F(
"G30hb60",
"", 22, -11., 11., 18, 0., 18.);
3874 TH2F *G30hb61 =
new TH2F(
"G30hb61",
"", 22, -11., 11., 18, 0., 18.);
3875 TH2F *G30hb6 =
new TH2F(
"G30hb6",
"", 22, -11., 11., 18, 0., 18.);
3876 TH2F *G40hb60 =
new TH2F(
"G40hb60",
"", 22, -11., 11., 18, 0., 18.);
3877 TH2F *G40hb61 =
new TH2F(
"G40hb61",
"", 22, -11., 11., 18, 0., 18.);
3878 TH2F *G40hb6 =
new TH2F(
"G40hb6",
"", 22, -11., 11., 18, 0., 18.);
3884 double meanjHB = 0.;
3885 for (
int j = 1;
j <= ny;
j++) {
3886 ccc0HB = Ghb1->GetBinContent(1,
j);
3888 for (
int i = 1; i <= nx; i++) {
3889 double ccc2 = Ghb1->GetBinContent(i,
j);
3896 for (
int i = 1; i <= nx; i++) {
3897 double ccc1 = Ghb1->GetBinContent(i,
j) / ccc0HB;
3903 meanjHB = sumjHB / njHB;
3907 double ssumjHB = 0.;
3909 double sigmajHB = 0.;
3910 for (
int j = 1;
j <= ny;
j++) {
3911 ccc0HB = Ghb1->GetBinContent(1,
j);
3913 for (
int i = 1; i <= nx; i++) {
3914 double ccc2 = Ghb1->GetBinContent(i,
j);
3921 for (
int i = 1; i <= nx; i++) {
3922 double ccc1 = Ghb1->GetBinContent(i,
j) / ccc0HB;
3924 ssumjHB += (ccc1 - meanjHB) * (ccc1 - meanjHB);
3928 sigmajHB =
sqrt(ssumjHB / njHB);
3932 double dif3rmsHBMIN = meanjHB - 3 * sigmajHB;
3933 if (dif3rmsHBMIN < 0.)
3935 double dif3rmsHBMAX = meanjHB + 3 * sigmajHB;
3936 cout <<
"22HB-2 meanjHB= " << meanjHB <<
" sigmajHB= " << sigmajHB <<
" dif3rmsHBMIN= " << dif3rmsHBMIN
3937 <<
" dif3rmsHBMAX= " << dif3rmsHBMAX << endl;
3939 double MAXdif3rmsHBMIN = dif3rmsHBMIN;
3940 double MINdif3rmsHBMAX = dif3rmsHBMAX;
3941 if (MAXdif3rmsHBMIN < 0.95)
3942 MAXdif3rmsHBMIN = 0.95;
3943 if (MINdif3rmsHBMAX > 1.05)
3944 MINdif3rmsHBMAX = 1.05;
3945 cout <<
"22HB-2 MAXdif3rmsHBMIN= " << MAXdif3rmsHBMIN <<
" MINdif3rmsHBMAX= " << MINdif3rmsHBMAX << endl;
3947 for (
int j = 1;
j <= ny;
j++) {
3948 ccc0HB = Ghb1->GetBinContent(1,
j);
3950 for (
int i = 1; i <= nx; i++) {
3951 double ccc2 = Ghb1->GetBinContent(i,
j);
3958 int jeta = (
j - 1) / 18;
3959 int jphi = (
j - 1) - 18 * jeta;
3961 for (
int i = 1; i <= nx; i++) {
3962 double ccc1 = Ghb1->GetBinContent(i,
j);
3964 double Rij = ccc1 / ccc0HB;
3965 if (Rij < MAXdif3rmsHBMIN || Rij > MINdif3rmsHBMAX) {
3966 Ghb61->Fill(jeta - 11, jphi, Rij);
3967 Ghb60->Fill(jeta - 11, jphi, 1.);
3969 if (Rij < 0.8 || Rij > 1.2) {
3970 G20hb61->Fill(jeta - 11, jphi, Rij);
3971 G20hb60->Fill(jeta - 11, jphi, 1.);
3973 if (Rij < 0.7 || Rij > 1.3) {
3974 G30hb61->Fill(jeta - 11, jphi, Rij);
3975 G30hb60->Fill(jeta - 11, jphi, 1.);
3977 if (Rij < 0.6 || Rij > 1.4) {
3978 G40hb61->Fill(jeta - 11, jphi, Rij);
3979 G40hb60->Fill(jeta - 11, jphi, 1.);
3985 Ghb6->Divide(Ghb61, Ghb60, 1, 1,
"B");
3986 G20hb6->Divide(G20hb61, G20hb60, 1, 1,
"B");
3987 G30hb6->Divide(G30hb61, G30hb60, 1, 1,
"B");
3988 G40hb6->Divide(G40hb61, G40hb60, 1, 1,
"B");
3990 Ghb6->GetZaxis()->SetLabelSize(0.025);
3991 Ghb6->SetXTitle(
" #eta \b");
3992 Ghb6->SetYTitle(
" #phi \b");
3993 Ghb6->SetTitle(
"<Rj> for |1-<R>| > 0.05 \b");
3998 TH1F *Ghb7 =
new TH1F(
"Ghb7",
"", 120, 0.4, 1.6);
4000 for (
int j = 1;
j <= ny;
j++) {
4001 ccc0HB = Ghb1->GetBinContent(1,
j);
4003 for (
int i = 1; i <= nx; i++) {
4004 double ccc2 = Ghb1->GetBinContent(i,
j);
4012 for (
int i = 1; i <= nx; i++) {
4013 double ccc1 = Ghb1->GetBinContent(i,
j);
4015 double Rij = ccc1 / ccc0HB;
4021 Ghb7->SetMarkerStyle(20);
4022 Ghb7->SetMarkerSize(0.4);
4023 Ghb7->GetYaxis()->SetLabelSize(0.04);
4024 Ghb7->SetMarkerColor(2);
4025 Ghb7->SetLineColor(0);
4026 Ghb7->SetYTitle(
" N \b");
4027 Ghb7->SetXTitle(
" Rij \b");
4028 Ghb7->SetTitle(
" Rij \b");
4033 Ghb7->GetYaxis()->SetLabelSize(0.025);
4034 Ghb7->Draw(
"Error");
4035 Float_t ymaxHB = Ghb7->GetMaximum();
4036 cout <<
"22HB-3 ymaxHB= " << ymaxHB <<
" MAXdif3rmsHBMIN= " << MAXdif3rmsHBMIN
4037 <<
" MINdif3rmsHBMAX= " << MINdif3rmsHBMAX << endl;
4038 TLine *lineHB =
new TLine(MAXdif3rmsHBMIN, 0., MAXdif3rmsHBMIN, ymaxHB);
4039 lineHB->SetLineColor(kBlue);
4041 TLine *line1HB =
new TLine(MINdif3rmsHBMAX, 0., MINdif3rmsHBMAX, ymaxHB);
4042 line1HB->SetLineColor(kBlue);
4047 cRBX31->Print(
"RBX-HB-3plots.png");
4082 gStyle->SetOptStat(1110000);
4083 cout <<
" RBX HB Ratio plotsmore *****" << endl;
4086 cRBX31->Divide(3, 1);
4089 G20hb6->GetZaxis()->SetLabelSize(0.025);
4090 G20hb6->SetXTitle(
" #eta \b");
4091 G20hb6->SetYTitle(
" #phi \b");
4092 G20hb6->SetTitle(
"<Rj> for |1-<R>| > 0.20 \b");
4093 G20hb6->SetStats(0);
4094 G20hb6->Draw(
"COLZ");
4097 G30hb6->GetZaxis()->SetLabelSize(0.025);
4098 G30hb6->SetXTitle(
" #eta \b");
4099 G30hb6->SetYTitle(
" #phi \b");
4100 G30hb6->SetTitle(
"<Rj> for |1-<R>| > 0.30 \b");
4101 G30hb6->SetStats(0);
4102 G30hb6->Draw(
"COLZ");
4105 G40hb6->GetZaxis()->SetLabelSize(0.025);
4106 G40hb6->SetXTitle(
" #eta \b");
4107 G40hb6->SetYTitle(
" #phi \b");
4108 G40hb6->SetTitle(
"<Rj> for |1-<R>| > 0.40 \b");
4109 G40hb6->SetStats(0);
4110 G40hb6->Draw(
"COLZ");
4115 cRBX31->Print(
"RBX-HB-3plotsmore.png");
4125 gStyle->SetOptStat(0);
4129 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> " << endl;
4130 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> " << endl;
4131 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> " << endl;
4132 for (
int jphi = 0; jphi < njphi; jphi++) {
4133 for (
int jeta = 0; jeta < njeta; jeta++) {
4134 for (
int i = 0; i < nx; i++) {
4135 alexall[jeta][jphi][
i] = 0.;
4146 cout <<
" RBX general for HE **************************" << endl;
4147 TH2F *Ghe1KKK = (TH2F *)dir->FindObjectAny(
"h_2DsumADCAmplEtaPhiLs1");
4148 TH2F *Ghe1LLL = (TH2F *)dir->FindObjectAny(
"h_2DsumADCAmplEtaPhiLs10");
4149 TH2F *Ghe1 = (TH2F *)Ghe1LLL->Clone(
"Ghe1");
4150 Ghe1->Divide(Ghe1KKK, Ghe1LLL, 1, 1,
"B");
4154 ny = Ghe1->GetYaxis()->GetNbins();
4155 for (
int j = 1;
j <= ny;
j++) {
4156 int jeta = (
j - 1) / njphi;
4157 if ((jeta < 8 && jeta > 2) || (jeta < 19 && jeta > 13)) {
4158 int jphi = (
j - 1) - njphi * jeta;
4161 for (
int i = 1; i <= nx; i++) {
4162 double ccc1 = Ghe1->GetBinContent(i,
j);
4163 alexall[jeta][jphi][i - 1] = ccc1;
4176 for (
int jphi = 0; jphi < njphi; jphi++) {
4177 for (
int i = 0; i < nx; i++) {
4178 double sumccc1 = 0.;
4180 for (
int jeta = 0; jeta < njeta; jeta++) {
4181 double ccc1 = alexall[jeta][jphi][
i];
4189 alexhe[jphi][
i] = sumccc1;
4193 for (
int keta = 0; keta < njeta; keta++) {
4194 for (
int i = 0; i < nx; i++) {
4195 double sumccc1 = 0.;
4197 for (
int kphi = 0; kphi < njphi; kphi++) {
4198 double ccc1 = alexall[keta][kphi][
i];
4206 blexhe[keta][
i] = sumccc1;
4215 cout <<
" RBX HE 2D plot *****" << endl;
4218 cRBX1->Divide(1, 1);
4221 TH2F *Ghe42D =
new TH2F(
"Ghe42D",
"", 23, -11.5, 11.5, 18, 0., 18.);
4222 TH2F *Ghe42D0 =
new TH2F(
"Ghe42D0",
"", 23, -11.5, 11.5, 18, 0., 18.);
4225 TH2F *Ghe42DF = (TH2F *)Ghe42D0->Clone(
"Ghe42DF");
4226 for (
int jphi = 0; jphi < njphi; jphi++) {
4227 for (
int jeta = 0; jeta < njeta; jeta++) {
4228 for (
int i = 0; i < nx; i++) {
4229 double ccc1 = alexall[jeta][jphi][
i];
4230 int neweta = jeta - 11 - 0.5;
4232 neweta = jeta - 11 + 1.5;
4234 Ghe42D->Fill(neweta, jphi, ccc1);
4235 Ghe42D0->Fill(neweta, jphi, 1.);
4241 Ghe42DF->Divide(Ghe42D, Ghe42D0, 1, 1,
"B");
4245 Ghe42DF->SetMarkerStyle(20);
4246 Ghe42DF->SetMarkerSize(0.4);
4247 Ghe42DF->GetZaxis()->SetLabelSize(0.04);
4248 Ghe42DF->SetXTitle(
"<A>_RBX #eta \b");
4249 Ghe42DF->SetYTitle(
" #phi \b");
4250 Ghe42DF->SetZTitle(
"<A>_RBX - All \b");
4251 Ghe42DF->SetMarkerColor(2);
4252 Ghe42DF->SetLineColor(2);
4253 Ghe42DF->Draw(
"COLZ");
4257 cRBX1->Print(
"RBX-HE-2Dplot.png");
4272 cout <<
" RBX HE 1D plot *****" << endl;
4275 cRBX1->Divide(1, 1);
4277 TH1F *GphiHE1D =
new TH1F(
"GphiHE1D",
"", 18, 0., 18.);
4278 TH1F *GphiHE1D0 =
new TH1F(
"GphiHE1D0",
"", 18, 0., 18.);
4279 TH1F *GphiHE1DF = (TH1F *)GphiHE1D0->Clone(
"GphiHE1DF");
4280 for (
int jphi = 0; jphi < 18; jphi++) {
4281 for (
int jeta = 0; jeta < 22; jeta++) {
4282 for (
int i = 0; i < nx; i++) {
4283 double ccc1 = alexall[jeta][jphi][
i];
4285 GphiHE1D->Fill(jphi, ccc1);
4286 GphiHE1D0->Fill(jphi, 1.);
4292 GphiHE1DF->Divide(GphiHE1D, GphiHE1D0, 1, 1,
"B");
4294 for (
int jphi = 1; jphi < 19; jphi++) {
4295 GphiHE1DF->SetBinError(jphi, 0.01);
4299 GphiHE1DF->SetMarkerStyle(20);
4300 GphiHE1DF->SetMarkerSize(1.4);
4301 GphiHE1DF->GetZaxis()->SetLabelSize(0.08);
4302 GphiHE1DF->SetXTitle(
"PHI of RBX\b");
4303 GphiHE1DF->SetYTitle(
" <Amplitude> \b");
4304 GphiHE1DF->SetZTitle(
"<A>_PHI - All \b");
4305 GphiHE1DF->SetMarkerColor(4);
4306 GphiHE1DF->SetLineColor(4);
4307 GphiHE1DF->SetMinimum(0.8);
4308 GphiHE1DF->Draw(
"Error");
4311 cRBX1->Print(
"RBX-HE-1Dplot.png");
4326 cout <<
" RBX HE 11D plot *eta*" << endl;
4329 cRBX1->Divide(1, 1);
4331 TH1F *GetaHE11D =
new TH1F(
"GetaHE11D",
"", 23, -11.5, 11.5);
4332 TH1F *GetaHE11D0 =
new TH1F(
"GetaHE11D0",
"", 23, -11.5, 11.5);
4333 TH1F *GetaHE11DF = (TH1F *)GetaHE11D0->Clone(
"GetaHE11DF");
4335 for (
int jeta = 0; jeta < 22; jeta++) {
4336 for (
int jphi = 0; jphi < 18; jphi++) {
4337 for (
int i = 0; i < nx; i++) {
4338 double ccc1 = alexall[jeta][jphi][
i];
4339 int neweta = jeta - 11 - 0.5;
4341 neweta = jeta - 11 + 1.5;
4343 GetaHE11D->Fill(neweta, ccc1);
4344 GetaHE11D0->Fill(neweta, 1.);
4351 GetaHE11DF->Divide(GetaHE11D, GetaHE11D0, 1, 1,
"B");
4353 for (
int jeta = 1; jeta < 24; jeta++) {
4354 GetaHE11DF->SetBinError(jeta, 0.01);
4358 GetaHE11DF->SetMarkerStyle(20);
4359 GetaHE11DF->SetMarkerSize(1.4);
4360 GetaHE11DF->GetZaxis()->SetLabelSize(0.08);
4361 GetaHE11DF->SetXTitle(
"#eta \b");
4362 GetaHE11DF->SetYTitle(
" <A> \b");
4363 GetaHE11DF->SetZTitle(
"<A>_ETA - All \b");
4364 GetaHE11DF->SetMarkerColor(4);
4365 GetaHE11DF->SetLineColor(4);
4366 GetaHE11DF->SetMinimum(0.8);
4367 GetaHE11DF->Draw(
"Error");
4371 cRBX1->Print(
"RBX-HE-11Dplot.png");
4387 gStyle->SetOptStat(1110000);
4388 cout <<
" RBX HE Ratio plots *****" << endl;
4397 cRBX31->Divide(3, 1);
4401 TH1F *Ghe51 =
new TH1F(
"Ghe51",
"", nx, 1., nx + 1.);
4402 TH1F *Ghe50 =
new TH1F(
"Ghe50",
"", nx, 1., nx + 1.);
4403 TH1F *Ghe5 = (TH1F *)Ghe50->Clone(
"Ghe5");
4405 for (
int j = 1;
j <= ny;
j++) {
4406 ccc0HE = Ghe1->GetBinContent(1,
j);
4409 for (
int i = 1; i <= nx; i++) {
4410 double ccc2 = Ghe1->GetBinContent(i,
j);
4418 for (
int i = 1; i <= nx; i++) {
4419 double ccc1 = Ghe1->GetBinContent(i,
j);
4421 double Rij = ccc1 / ccc0HE;
4423 Ghe51->Fill(
float(i), Rij);
4424 Ghe50->Fill(
float(i), 1.);
4429 Ghe5->Divide(Ghe51, Ghe50, 1, 1,
"B");
4430 for (
int i = 1; i <= nx; i++) {
4431 Ghe5->SetBinError(i, 0.0001);
4433 Ghe5->SetMarkerStyle(20);
4434 Ghe5->SetMarkerSize(0.4);
4435 Ghe5->GetYaxis()->SetLabelSize(0.04);
4436 Ghe5->SetMarkerColor(2);
4437 Ghe5->SetLineColor(0);
4438 Ghe5->SetXTitle(
" iLS \b");
4439 Ghe5->SetYTitle(
" <R> \b");
4440 Ghe5->SetTitle(
"<Ri> vs iLS \b");
4441 Ghe5->SetMinimum(0.);
4446 Ghe5->GetYaxis()->SetLabelSize(0.025);
4447 Ghe5->Draw(
"Error");
4450 TH2F *Ghe60 =
new TH2F(
"Ghe60",
"", 22, -11., 11., 18, 0., 18.);
4451 TH2F *Ghe61 =
new TH2F(
"Ghe61",
"", 22, -11., 11., 18, 0., 18.);
4452 TH2F *Ghe6 =
new TH2F(
"Ghe6",
"", 22, -11., 11., 18, 0., 18.);
4454 TH2F *G20he60 =
new TH2F(
"G20he60",
"", 22, -11., 11., 18, 0., 18.);
4455 TH2F *G20he61 =
new TH2F(
"G20he61",
"", 22, -11., 11., 18, 0., 18.);
4456 TH2F *G20he6 =
new TH2F(
"G20he6",
"", 22, -11., 11., 18, 0., 18.);
4457 TH2F *G30he60 =
new TH2F(
"G30he60",
"", 22, -11., 11., 18, 0., 18.);
4458 TH2F *G30he61 =
new TH2F(
"G30he61",
"", 22, -11., 11., 18, 0., 18.);
4459 TH2F *G30he6 =
new TH2F(
"G30he6",
"", 22, -11., 11., 18, 0., 18.);
4460 TH2F *G40he60 =
new TH2F(
"G40he60",
"", 22, -11., 11., 18, 0., 18.);
4461 TH2F *G40he61 =
new TH2F(
"G40he61",
"", 22, -11., 11., 18, 0., 18.);
4462 TH2F *G40he6 =
new TH2F(
"G40he6",
"", 22, -11., 11., 18, 0., 18.);
4468 double meanjHE = 0.;
4469 for (
int j = 1;
j <= ny;
j++) {
4470 ccc0HE = Ghe1->GetBinContent(1,
j);
4472 for (
int i = 1; i <= nx; i++) {
4473 double ccc2 = Ghe1->GetBinContent(i,
j);
4480 for (
int i = 1; i <= nx; i++) {
4481 double ccc1 = Ghe1->GetBinContent(i,
j) / ccc0HE;
4487 meanjHE = sumjHE / njHE;
4491 double ssumjHE = 0.;
4493 double sigmajHE = 0.;
4494 for (
int j = 1;
j <= ny;
j++) {
4495 ccc0HE = Ghe1->GetBinContent(1,
j);
4497 for (
int i = 1; i <= nx; i++) {
4498 double ccc2 = Ghe1->GetBinContent(i,
j);
4505 for (
int i = 1; i <= nx; i++) {
4506 double ccc1 = Ghe1->GetBinContent(i,
j) / ccc0HE;
4508 ssumjHE += (ccc1 - meanjHE) * (ccc1 - meanjHE);
4512 sigmajHE =
sqrt(ssumjHE / njHE);
4516 double dif3rmsHEMIN = meanjHE - 3 * sigmajHE;
4517 if (dif3rmsHEMIN < 0.)
4519 double dif3rmsHEMAX = meanjHE + 3 * sigmajHE;
4520 cout <<
"22HE-2 meanjHE= " << meanjHE <<
" sigmajHE= " << sigmajHE <<
" dif3rmsHEMIN= " << dif3rmsHEMIN
4521 <<
" dif3rmsHEMAX= " << dif3rmsHEMAX << endl;
4523 double MAXdif3rmsHEMIN = dif3rmsHEMIN;
4524 double MINdif3rmsHEMAX = dif3rmsHEMAX;
4525 if (MAXdif3rmsHEMIN < 0.95)
4526 MAXdif3rmsHEMIN = 0.95;
4527 if (MINdif3rmsHEMAX > 1.05)
4528 MINdif3rmsHEMAX = 1.05;
4529 cout <<
"22HE-2 MAXdif3rmsHEMIN= " << MAXdif3rmsHEMIN <<
" MINdif3rmsHEMAX= " << MINdif3rmsHEMAX << endl;
4531 for (
int j = 1;
j <= ny;
j++) {
4532 ccc0HE = Ghe1->GetBinContent(1,
j);
4534 for (
int i = 1; i <= nx; i++) {
4535 double ccc2 = Ghe1->GetBinContent(i,
j);
4542 int jeta = (
j - 1) / 18;
4543 int jphi = (
j - 1) - 18 * jeta;
4545 for (
int i = 1; i <= nx; i++) {
4546 double ccc1 = Ghe1->GetBinContent(i,
j);
4548 double Rij = ccc1 / ccc0HE;
4549 if (Rij < MAXdif3rmsHEMIN || Rij > MINdif3rmsHEMAX) {
4550 Ghe61->Fill(jeta - 11, jphi, Rij);
4551 Ghe60->Fill(jeta - 11, jphi, 1.);
4553 if (Rij < 0.8 || Rij > 1.2) {
4554 G20he61->Fill(jeta - 11, jphi, Rij);
4555 G20he60->Fill(jeta - 11, jphi, 1.);
4557 if (Rij < 0.7 || Rij > 1.3) {
4558 G30he61->Fill(jeta - 11, jphi, Rij);
4559 G30he60->Fill(jeta - 11, jphi, 1.);
4561 if (Rij < 0.6 || Rij > 1.4) {
4562 G40he61->Fill(jeta - 11, jphi, Rij);
4563 G40he60->Fill(jeta - 11, jphi, 1.);
4569 Ghe6->Divide(Ghe61, Ghe60, 1, 1,
"B");
4570 G20he6->Divide(G20he61, G20he60, 1, 1,
"B");
4571 G30he6->Divide(G30he61, G30he60, 1, 1,
"B");
4572 G40he6->Divide(G40he61, G40he60, 1, 1,
"B");
4576 Ghe6->GetZaxis()->SetLabelSize(0.025);
4578 Ghe6->SetXTitle(
" #eta \b");
4579 Ghe6->SetYTitle(
" #phi \b");
4581 "<Rj> for |1-<R>| > 0.05 \b");
4587 TH1F *Ghe7 =
new TH1F(
"Ghe7",
"", 120, 0.4, 1.6);
4589 for (
int j = 1;
j <= ny;
j++) {
4590 ccc0HE = Ghe1->GetBinContent(1,
j);
4592 for (
int i = 1; i <= nx; i++) {
4593 double ccc2 = Ghe1->GetBinContent(i,
j);
4601 for (
int i = 1; i <= nx; i++) {
4602 double ccc1 = Ghe1->GetBinContent(i,
j);
4604 double Rij = ccc1 / ccc0HE;
4610 Ghe7->SetMarkerStyle(20);
4611 Ghe7->SetMarkerSize(0.4);
4612 Ghe7->GetYaxis()->SetLabelSize(0.04);
4613 Ghe7->SetMarkerColor(2);
4614 Ghe7->SetLineColor(0);
4615 Ghe7->SetYTitle(
" N \b");
4616 Ghe7->SetXTitle(
" Rij \b");
4617 Ghe7->SetTitle(
" Rij \b");
4622 Ghe7->GetYaxis()->SetLabelSize(0.025);
4623 Ghe7->Draw(
"Error");
4624 Float_t ymaxHE = Ghe7->GetMaximum();
4625 cout <<
"22HE-3 ymaxHE= " << ymaxHE <<
" MAXdif3rmsHEMIN= " << MAXdif3rmsHEMIN
4626 <<
" MINdif3rmsHEMAX= " << MINdif3rmsHEMAX << endl;
4627 TLine *lineHE =
new TLine(MAXdif3rmsHEMIN, 0., MAXdif3rmsHEMIN, ymaxHE);
4628 lineHE->SetLineColor(kBlue);
4630 TLine *line1HE =
new TLine(MINdif3rmsHEMAX, 0., MINdif3rmsHEMAX, ymaxHE);
4631 line1HE->SetLineColor(kBlue);
4636 cRBX31->Print(
"RBX-HE-3plots.png");
4671 gStyle->SetOptStat(1110000);
4672 cout <<
" RBX HE Ratio plotsmore *****" << endl;
4675 cRBX31->Divide(3, 1);
4678 G20he6->GetZaxis()->SetLabelSize(0.025);
4679 G20he6->SetXTitle(
" #eta \b");
4680 G20he6->SetYTitle(
" #phi \b");
4681 G20he6->SetTitle(
"<Rj> for |1-<R>| > 0.20 \b");
4682 G20he6->SetStats(0);
4683 G20he6->Draw(
"COLZ");
4686 G30he6->GetZaxis()->SetLabelSize(0.025);
4687 G30he6->SetXTitle(
" #eta \b");
4688 G30he6->SetYTitle(
" #phi \b");
4689 G30he6->SetTitle(
"<Rj> for |1-<R>| > 0.30 \b");
4690 G30he6->SetStats(0);
4691 G30he6->Draw(
"COLZ");
4694 G40he6->GetZaxis()->SetLabelSize(0.025);
4695 G40he6->SetXTitle(
" #eta \b");
4696 G40he6->SetYTitle(
" #phi \b");
4697 G40he6->SetTitle(
"<Rj> for |1-<R>| > 0.40 \b");
4698 G40he6->SetStats(0);
4699 G40he6->Draw(
"COLZ");
4704 cRBX31->Print(
"RBX-HE-3plotsmore.png");
4714 gStyle->SetOptStat(0);
4717 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> " << endl;
4718 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> " << endl;
4719 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> " << endl;
4720 for (
int jphi = 0; jphi < njphi; jphi++) {
4721 for (
int jeta = 0; jeta < njeta; jeta++) {
4722 for (
int i = 0; i < nx; i++) {
4723 alexall[jeta][jphi][
i] = 0.;
4734 cout <<
" RBX general for HO **************************" << endl;
4735 TH2F *Gho1KKK = (TH2F *)dir->FindObjectAny(
"h_2DsumADCAmplEtaPhiLs2");
4736 TH2F *Gho1LLL = (TH2F *)dir->FindObjectAny(
"h_2DsumADCAmplEtaPhiLs20");
4737 TH2F *Gho1 = (TH2F *)Gho1LLL->Clone(
"Gho1");
4738 Gho1->Divide(Gho1KKK, Gho1LLL, 1, 1,
"B");
4742 ny = Gho1->GetYaxis()->GetNbins();
4743 for (
int j = 1;
j <= ny;
j++) {
4744 int jeta = (
j - 1) / njphi;
4745 if (jeta < 15 && jeta > 6) {
4746 int jphi = (
j - 1) - njphi * jeta;
4749 for (
int i = 1; i <= nx; i++) {
4750 double ccc1 = Gho1->GetBinContent(i,
j);
4751 alexall[jeta][jphi][i - 1] = ccc1;
4764 for (
int jphi = 0; jphi < njphi; jphi++) {
4765 for (
int i = 0; i < nx; i++) {
4766 double sumccc1 = 0.;
4768 for (
int jeta = 0; jeta < njeta; jeta++) {
4769 double ccc1 = alexall[jeta][jphi][
i];
4777 alexho[jphi][
i] = sumccc1;
4781 for (
int keta = 0; keta < njeta; keta++) {
4782 for (
int i = 0; i < nx; i++) {
4783 double sumccc1 = 0.;
4785 for (
int kphi = 0; kphi < njphi; kphi++) {
4786 double ccc1 = alexall[keta][kphi][
i];
4794 blexho[keta][
i] = sumccc1;
4804 cout <<
" RBX HO 2D plot *****" << endl;
4807 cRBX1->Divide(1, 1);
4810 TH2F *Gho42D =
new TH2F(
"Gho42D",
"", 23, -11.5, 11.5, 18, 0., 18.);
4811 TH2F *Gho42D0 =
new TH2F(
"Gho42D0",
"", 23, -11.5, 11.5, 18, 0., 18.);
4814 TH2F *Gho42DF = (TH2F *)Gho42D0->Clone(
"Gho42DF");
4815 for (
int jphi = 0; jphi < njphi; jphi++) {
4816 for (
int jeta = 0; jeta < njeta; jeta++) {
4817 for (
int i = 0; i < nx; i++) {
4818 double ccc1 = alexall[jeta][jphi][
i];
4819 int neweta = jeta - 11 - 0.5;
4821 neweta = jeta - 11 + 1.5;
4823 Gho42D->Fill(neweta, jphi, ccc1);
4824 Gho42D0->Fill(neweta, jphi, 1.);
4830 Gho42DF->Divide(Gho42D, Gho42D0, 1, 1,
"B");
4834 Gho42DF->SetMarkerStyle(20);
4835 Gho42DF->SetMarkerSize(0.4);
4836 Gho42DF->GetZaxis()->SetLabelSize(0.04);
4837 Gho42DF->SetXTitle(
"<A>_RBX #eta \b");
4838 Gho42DF->SetYTitle(
" #phi \b");
4839 Gho42DF->SetZTitle(
"<A>_RBX - All \b");
4840 Gho42DF->SetMarkerColor(2);
4841 Gho42DF->SetLineColor(2);
4842 Gho42DF->Draw(
"COLZ");
4846 cRBX1->Print(
"RBX-HO-2Dplot.png");
4861 cout <<
" RBX HO 1D plot *****" << endl;
4864 cRBX1->Divide(1, 1);
4866 TH1F *GphiHO1D =
new TH1F(
"GphiHO1D",
"", 18, 0., 18.);
4867 TH1F *GphiHO1D0 =
new TH1F(
"GphiHO1D0",
"", 18, 0., 18.);
4868 TH1F *GphiHO1DF = (TH1F *)GphiHO1D0->Clone(
"GphiHO1DF");
4869 for (
int jphi = 0; jphi < 18; jphi++) {
4870 for (
int jeta = 0; jeta < 22; jeta++) {
4871 for (
int i = 0; i < nx; i++) {
4872 double ccc1 = alexall[jeta][jphi][
i];
4874 GphiHO1D->Fill(jphi, ccc1);
4875 GphiHO1D0->Fill(jphi, 1.);
4881 GphiHO1DF->Divide(GphiHO1D, GphiHO1D0, 1, 1,
"B");
4883 for (
int jphi = 1; jphi < 19; jphi++) {
4884 GphiHO1DF->SetBinError(jphi, 0.01);
4888 GphiHO1DF->SetMarkerStyle(20);
4889 GphiHO1DF->SetMarkerSize(1.4);
4890 GphiHO1DF->GetZaxis()->SetLabelSize(0.08);
4891 GphiHO1DF->SetXTitle(
"PHI of RBX\b");
4892 GphiHO1DF->SetYTitle(
" <Amplitude> \b");
4893 GphiHO1DF->SetZTitle(
"<A>_PHI - All \b");
4894 GphiHO1DF->SetMarkerColor(4);
4895 GphiHO1DF->SetLineColor(4);
4896 GphiHO1DF->SetMinimum(0.8);
4897 GphiHO1DF->Draw(
"Error");
4900 cRBX1->Print(
"RBX-HO-1Dplot.png");
4915 cout <<
" RBX HO 11D plot *eta*" << endl;
4918 cRBX1->Divide(1, 1);
4920 TH1F *GetaHO11D =
new TH1F(
"GetaHO11D",
"", 23, -11.5, 11.5);
4921 TH1F *GetaHO11D0 =
new TH1F(
"GetaHO11D0",
"", 23, -11.5, 11.5);
4922 TH1F *GetaHO11DF = (TH1F *)GetaHO11D0->Clone(
"GetaHO11DF");
4924 for (
int jeta = 0; jeta < 22; jeta++) {
4925 for (
int jphi = 0; jphi < 18; jphi++) {
4926 for (
int i = 0; i < nx; i++) {
4927 double ccc1 = alexall[jeta][jphi][
i];
4928 int neweta = jeta - 11 - 0.5;
4930 neweta = jeta - 11 + 1.5;
4932 GetaHO11D->Fill(neweta, ccc1);
4933 GetaHO11D0->Fill(neweta, 1.);
4940 GetaHO11DF->Divide(GetaHO11D, GetaHO11D0, 1, 1,
"B");
4942 for (
int jeta = 1; jeta < 24; jeta++) {
4943 GetaHO11DF->SetBinError(jeta, 0.01);
4947 GetaHO11DF->SetMarkerStyle(20);
4948 GetaHO11DF->SetMarkerSize(1.4);
4949 GetaHO11DF->GetZaxis()->SetLabelSize(0.08);
4950 GetaHO11DF->SetXTitle(
"#eta \b");
4951 GetaHO11DF->SetYTitle(
" <A> \b");
4952 GetaHO11DF->SetZTitle(
"<A>_ETA - All \b");
4953 GetaHO11DF->SetMarkerColor(4);
4954 GetaHO11DF->SetLineColor(4);
4955 GetaHO11DF->SetMinimum(0.8);
4956 GetaHO11DF->Draw(
"Error");
4960 cRBX1->Print(
"RBX-HO-11Dplot.png");
4976 gStyle->SetOptStat(1110000);
4977 cout <<
" RBX HO Ratio plots *****" << endl;
4986 cRBX31->Divide(3, 1);
4990 TH1F *Gho51 =
new TH1F(
"Gho51",
"", nx, 1., nx + 1.);
4991 TH1F *Gho50 =
new TH1F(
"Gho50",
"", nx, 1., nx + 1.);
4992 TH1F *Gho5 = (TH1F *)Gho50->Clone(
"Gho5");
4994 for (
int j = 1;
j <= ny;
j++) {
4995 ccc0HO = Gho1->GetBinContent(1,
j);
4998 for (
int i = 1; i <= nx; i++) {
4999 double ccc2 = Gho1->GetBinContent(i,
j);
5007 for (
int i = 1; i <= nx; i++) {
5008 double ccc1 = Gho1->GetBinContent(i,
j);
5010 double Rij = ccc1 / ccc0HO;
5012 Gho51->Fill(
float(i), Rij);
5013 Gho50->Fill(
float(i), 1.);
5018 Gho5->Divide(Gho51, Gho50, 1, 1,
"B");
5019 for (
int i = 1; i <= nx; i++) {
5020 Gho5->SetBinError(i, 0.0001);
5022 Gho5->SetMarkerStyle(20);
5023 Gho5->SetMarkerSize(0.4);
5024 Gho5->GetYaxis()->SetLabelSize(0.04);
5025 Gho5->SetMarkerColor(2);
5026 Gho5->SetLineColor(0);
5027 Gho5->SetXTitle(
" iLS \b");
5028 Gho5->SetYTitle(
" <R> \b");
5029 Gho5->SetTitle(
"<Ri> vs iLS \b");
5030 Gho5->SetMinimum(0.);
5035 Gho5->GetYaxis()->SetLabelSize(0.025);
5036 Gho5->Draw(
"Error");
5039 TH2F *Gho60 =
new TH2F(
"Gho60",
"", 22, -11., 11., 18, 0., 18.);
5040 TH2F *Gho61 =
new TH2F(
"Gho61",
"", 22, -11., 11., 18, 0., 18.);
5041 TH2F *Gho6 =
new TH2F(
"Gho6",
"", 22, -11., 11., 18, 0., 18.);
5043 TH2F *G20ho60 =
new TH2F(
"G20ho60",
"", 22, -11., 11., 18, 0., 18.);
5044 TH2F *G20ho61 =
new TH2F(
"G20ho61",
"", 22, -11., 11., 18, 0., 18.);
5045 TH2F *G20ho6 =
new TH2F(
"G20ho6",
"", 22, -11., 11., 18, 0., 18.);
5046 TH2F *G30ho60 =
new TH2F(
"G30ho60",
"", 22, -11., 11., 18, 0., 18.);
5047 TH2F *G30ho61 =
new TH2F(
"G30ho61",
"", 22, -11., 11., 18, 0., 18.);
5048 TH2F *G30ho6 =
new TH2F(
"G30ho6",
"", 22, -11., 11., 18, 0., 18.);
5049 TH2F *G40ho60 =
new TH2F(
"G40ho60",
"", 22, -11., 11., 18, 0., 18.);
5050 TH2F *G40ho61 =
new TH2F(
"G40ho61",
"", 22, -11., 11., 18, 0., 18.);
5051 TH2F *G40ho6 =
new TH2F(
"G40ho6",
"", 22, -11., 11., 18, 0., 18.);
5058 double meanjHO = 0.;
5059 for (
int j = 1;
j <= ny;
j++) {
5060 ccc0HO = Gho1->GetBinContent(1,
j);
5062 for (
int i = 1; i <= nx; i++) {
5063 double ccc2 = Gho1->GetBinContent(i,
j);
5070 for (
int i = 1; i <= nx; i++) {
5071 double ccc1 = Gho1->GetBinContent(i,
j) / ccc0HO;
5077 meanjHO = sumjHO / njHO;
5081 double ssumjHO = 0.;
5083 double sigmajHO = 0.;
5084 for (
int j = 1;
j <= ny;
j++) {
5085 ccc0HO = Gho1->GetBinContent(1,
j);
5087 for (
int i = 1; i <= nx; i++) {
5088 double ccc2 = Gho1->GetBinContent(i,
j);
5095 for (
int i = 1; i <= nx; i++) {
5096 double ccc1 = Gho1->GetBinContent(i,
j) / ccc0HO;
5098 ssumjHO += (ccc1 - meanjHO) * (ccc1 - meanjHO);
5102 sigmajHO =
sqrt(ssumjHO / njHO);
5106 double dif3rmsHOMIN = meanjHO - 3 * sigmajHO;
5107 if (dif3rmsHOMIN < 0.)
5109 double dif3rmsHOMAX = meanjHO + 3 * sigmajHO;
5110 cout <<
"22HO-2 meanjHO= " << meanjHO <<
" sigmajHO= " << sigmajHO <<
" dif3rmsHOMIN= " << dif3rmsHOMIN
5111 <<
" dif3rmsHOMAX= " << dif3rmsHOMAX << endl;
5113 double MAXdif3rmsHOMIN = dif3rmsHOMIN;
5114 double MINdif3rmsHOMAX = dif3rmsHOMAX;
5115 if (MAXdif3rmsHOMIN < 0.95)
5116 MAXdif3rmsHOMIN = 0.95;
5117 if (MINdif3rmsHOMAX > 1.05)
5118 MINdif3rmsHOMAX = 1.05;
5119 cout <<
"22HO-2 MAXdif3rmsHOMIN= " << MAXdif3rmsHOMIN <<
" MINdif3rmsHOMAX= " << MINdif3rmsHOMAX << endl;
5121 for (
int j = 1;
j <= ny;
j++) {
5122 ccc0HO = Gho1->GetBinContent(1,
j);
5124 for (
int i = 1; i <= nx; i++) {
5125 double ccc2 = Gho1->GetBinContent(i,
j);
5132 int jeta = (
j - 1) / 18;
5133 int jphi = (
j - 1) - 18 * jeta;
5135 for (
int i = 1; i <= nx; i++) {
5136 double ccc1 = Gho1->GetBinContent(i,
j);
5138 double Rij = ccc1 / ccc0HO;
5139 if (Rij < MAXdif3rmsHOMIN || Rij > MINdif3rmsHOMAX) {
5140 Gho61->Fill(jeta - 11, jphi, Rij);
5141 Gho60->Fill(jeta - 11, jphi, 1.);
5143 if (Rij < 0.8 || Rij > 1.2) {
5144 G20ho61->Fill(jeta - 11, jphi, Rij);
5145 G20ho60->Fill(jeta - 11, jphi, 1.);
5147 if (Rij < 0.7 || Rij > 1.3) {
5148 G30ho61->Fill(jeta - 11, jphi, Rij);
5149 G30ho60->Fill(jeta - 11, jphi, 1.);
5151 if (Rij < 0.6 || Rij > 1.4) {
5152 G40ho61->Fill(jeta - 11, jphi, Rij);
5153 G40ho60->Fill(jeta - 11, jphi, 1.);
5159 Gho6->Divide(Gho61, Gho60, 1, 1,
"B");
5160 G20ho6->Divide(G20ho61, G20ho60, 1, 1,
"B");
5161 G30ho6->Divide(G30ho61, G30ho60, 1, 1,
"B");
5162 G40ho6->Divide(G40ho61, G40ho60, 1, 1,
"B");
5165 Gho6->GetZaxis()->SetLabelSize(0.025);
5167 Gho6->SetXTitle(
" #eta \b");
5168 Gho6->SetYTitle(
" #phi \b");
5170 "<Rj> for |1-<R>| > 0.05 \b");
5176 TH1F *Gho7 =
new TH1F(
"Gho7",
"", 120, 0.4, 1.6);
5178 for (
int j = 1;
j <= ny;
j++) {
5179 ccc0HO = Gho1->GetBinContent(1,
j);
5181 for (
int i = 1; i <= nx; i++) {
5182 double ccc2 = Gho1->GetBinContent(i,
j);
5190 for (
int i = 1; i <= nx; i++) {
5191 double ccc1 = Gho1->GetBinContent(i,
j);
5193 double Rij = ccc1 / ccc0HO;
5199 Gho7->SetMarkerStyle(20);
5200 Gho7->SetMarkerSize(0.4);
5201 Gho7->GetYaxis()->SetLabelSize(0.04);
5202 Gho7->SetMarkerColor(2);
5203 Gho7->SetLineColor(0);
5204 Gho7->SetYTitle(
" N \b");
5205 Gho7->SetXTitle(
" Rij \b");
5206 Gho7->SetTitle(
" Rij \b");
5211 Gho7->GetYaxis()->SetLabelSize(0.025);
5212 Gho7->Draw(
"Error");
5213 Float_t ymaxHO = Gho7->GetMaximum();
5214 cout <<
"22HO-3 ymaxHO= " << ymaxHO <<
" MAXdif3rmsHOMIN= " << MAXdif3rmsHOMIN
5215 <<
" MINdif3rmsHOMAX= " << MINdif3rmsHOMAX << endl;
5216 TLine *lineHO =
new TLine(MAXdif3rmsHOMIN, 0., MAXdif3rmsHOMIN, ymaxHO);
5217 lineHO->SetLineColor(kBlue);
5219 TLine *line1HO =
new TLine(MINdif3rmsHOMAX, 0., MINdif3rmsHOMAX, ymaxHO);
5220 line1HO->SetLineColor(kBlue);
5225 cRBX31->Print(
"RBX-HO-3plots.png");
5260 gStyle->SetOptStat(1110000);
5261 cout <<
" RBX HO Ratio plotsmore *****" << endl;
5264 cRBX31->Divide(3, 1);
5267 G20ho6->GetZaxis()->SetLabelSize(0.025);
5268 G20ho6->SetXTitle(
" #eta \b");
5269 G20ho6->SetYTitle(
" #phi \b");
5270 G20ho6->SetTitle(
"<Rj> for |1-<R>| > 0.20 \b");
5271 G20ho6->SetStats(0);
5272 G20ho6->Draw(
"COLZ");
5275 G30ho6->GetZaxis()->SetLabelSize(0.025);
5276 G30ho6->SetXTitle(
" #eta \b");
5277 G30ho6->SetYTitle(
" #phi \b");
5278 G30ho6->SetTitle(
"<Rj> for |1-<R>| > 0.30 \b");
5279 G30ho6->SetStats(0);
5280 G30ho6->Draw(
"COLZ");
5283 G40ho6->GetZaxis()->SetLabelSize(0.025);
5284 G40ho6->SetXTitle(
" #eta \b");
5285 G40ho6->SetYTitle(
" #phi \b");
5286 G40ho6->SetTitle(
"<Rj> for |1-<R>| > 0.40 \b");
5287 G40ho6->SetStats(0);
5288 G40ho6->Draw(
"COLZ");
5293 cRBX31->Print(
"RBX-HO-3plotsmore.png");
5303 gStyle->SetOptStat(0);
5306 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> " << endl;
5307 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> " << endl;
5308 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> " << endl;
5309 for (
int jphi = 0; jphi < njphi; jphi++) {
5310 for (
int jeta = 0; jeta < njeta; jeta++) {
5311 for (
int i = 0; i < nx; i++) {
5312 alexall[jeta][jphi][
i] = 0.;
5323 cout <<
" RBX general for HF **************************" << endl;
5324 TH2F *Ghf1KKK = (TH2F *)dir->FindObjectAny(
"h_2DsumADCAmplEtaPhiLs3");
5325 TH2F *Ghf1LLL = (TH2F *)dir->FindObjectAny(
"h_2DsumADCAmplEtaPhiLs30");
5326 TH2F *Ghf1 = (TH2F *)Ghf1LLL->Clone(
"Ghf1");
5327 Ghf1->Divide(Ghf1KKK, Ghf1LLL, 1, 1,
"B");
5331 ny = Ghf1->GetYaxis()->GetNbins();
5332 for (
int j = 1;
j <= ny;
j++) {
5333 int jeta = (
j - 1) / njphi;
5334 if (jeta < 4 || jeta > 17) {
5335 int jphi = (
j - 1) - njphi * jeta;
5338 for (
int i = 1; i <= nx; i++) {
5339 double ccc1 = Ghf1->GetBinContent(i,
j);
5340 alexall[jeta][jphi][i - 1] = ccc1;
5353 for (
int jphi = 0; jphi < njphi; jphi++) {
5354 for (
int i = 0; i < nx; i++) {
5355 double sumccc1 = 0.;
5357 for (
int jeta = 0; jeta < njeta; jeta++) {
5358 double ccc1 = alexall[jeta][jphi][
i];
5366 alexhf[jphi][
i] = sumccc1;
5370 for (
int keta = 0; keta < njeta; keta++) {
5371 for (
int i = 0; i < nx; i++) {
5372 double sumccc1 = 0.;
5374 for (
int kphi = 0; kphi < njphi; kphi++) {
5375 double ccc1 = alexall[keta][kphi][
i];
5383 blexhf[keta][
i] = sumccc1;
5392 cout <<
" RBX HF 2D plot *****" << endl;
5395 cRBX1->Divide(1, 1);
5398 TH2F *Ghf42D =
new TH2F(
"Ghf42D",
"", 23, -11.5, 11.5, 18, 0., 18.);
5399 TH2F *Ghf42D0 =
new TH2F(
"Ghf42D0",
"", 23, -11.5, 11.5, 18, 0., 18.);
5402 TH2F *Ghf42DF = (TH2F *)Ghf42D0->Clone(
"Ghf42DF");
5403 for (
int jphi = 0; jphi < njphi; jphi++) {
5404 for (
int jeta = 0; jeta < njeta; jeta++) {
5405 for (
int i = 0; i < nx; i++) {
5406 double ccc1 = alexall[jeta][jphi][
i];
5407 int neweta = jeta - 11 - 0.5;
5409 neweta = jeta - 11 + 1.5;
5411 Ghf42D->Fill(neweta, jphi, ccc1);
5412 Ghf42D0->Fill(neweta, jphi, 1.);
5418 Ghf42DF->Divide(Ghf42D, Ghf42D0, 1, 1,
"B");
5422 Ghf42DF->SetMarkerStyle(20);
5423 Ghf42DF->SetMarkerSize(0.4);
5424 Ghf42DF->GetZaxis()->SetLabelSize(0.04);
5425 Ghf42DF->SetXTitle(
"<A>_RBX #eta \b");
5426 Ghf42DF->SetYTitle(
" #phi \b");
5427 Ghf42DF->SetZTitle(
"<A>_RBX - All \b");
5428 Ghf42DF->SetMarkerColor(2);
5429 Ghf42DF->SetLineColor(2);
5430 Ghf42DF->Draw(
"COLZ");
5434 cRBX1->Print(
"RBX-HF-2Dplot.png");
5449 cout <<
" RBX HF 1D plot *****" << endl;
5452 cRBX1->Divide(1, 1);
5454 TH1F *GphiHF1D =
new TH1F(
"GphiHF1D",
"", 18, 0., 18.);
5455 TH1F *GphiHF1D0 =
new TH1F(
"GphiHF1D0",
"", 18, 0., 18.);
5456 TH1F *GphiHF1DF = (TH1F *)GphiHF1D0->Clone(
"GphiHF1DF");
5457 for (
int jphi = 0; jphi < 18; jphi++) {
5458 for (
int jeta = 0; jeta < 22; jeta++) {
5459 for (
int i = 0; i < nx; i++) {
5460 double ccc1 = alexall[jeta][jphi][
i];
5462 GphiHF1D->Fill(jphi, ccc1);
5463 GphiHF1D0->Fill(jphi, 1.);
5469 GphiHF1DF->Divide(GphiHF1D, GphiHF1D0, 1, 1,
"B");
5471 for (
int jphi = 1; jphi < 19; jphi++) {
5472 GphiHF1DF->SetBinError(jphi, 0.01);
5476 GphiHF1DF->SetMarkerStyle(20);
5477 GphiHF1DF->SetMarkerSize(1.4);
5478 GphiHF1DF->GetZaxis()->SetLabelSize(0.08);
5479 GphiHF1DF->SetXTitle(
"PHI of RBX\b");
5480 GphiHF1DF->SetYTitle(
" <Amplitude> \b");
5481 GphiHF1DF->SetZTitle(
"<A>_PHI - All \b");
5482 GphiHF1DF->SetMarkerColor(4);
5483 GphiHF1DF->SetLineColor(4);
5484 GphiHF1DF->SetMinimum(0.8);
5485 GphiHF1DF->Draw(
"Error");
5488 cRBX1->Print(
"RBX-HF-1Dplot.png");
5503 cout <<
" RBX HF 11D plot *eta*" << endl;
5506 cRBX1->Divide(1, 1);
5508 TH1F *GetaHF11D =
new TH1F(
"GetaHF11D",
"", 23, -11.5, 11.5);
5509 TH1F *GetaHF11D0 =
new TH1F(
"GetaHF11D0",
"", 23, -11.5, 11.5);
5510 TH1F *GetaHF11DF = (TH1F *)GetaHF11D0->Clone(
"GetaHF11DF");
5512 for (
int jeta = 0; jeta < 22; jeta++) {
5513 for (
int jphi = 0; jphi < 18; jphi++) {
5514 for (
int i = 0; i < nx; i++) {
5515 double ccc1 = alexall[jeta][jphi][
i];
5516 int neweta = jeta - 11 - 0.5;
5518 neweta = jeta - 11 + 1.5;
5520 GetaHF11D->Fill(neweta, ccc1);
5521 GetaHF11D0->Fill(neweta, 1.);
5528 GetaHF11DF->Divide(GetaHF11D, GetaHF11D0, 1, 1,
"B");
5530 for (
int jeta = 1; jeta < 24; jeta++) {
5531 GetaHF11DF->SetBinError(jeta, 0.01);
5535 GetaHF11DF->SetMarkerStyle(20);
5536 GetaHF11DF->SetMarkerSize(1.4);
5537 GetaHF11DF->GetZaxis()->SetLabelSize(0.08);
5538 GetaHF11DF->SetXTitle(
"#eta \b");
5539 GetaHF11DF->SetYTitle(
" <A> \b");
5540 GetaHF11DF->SetZTitle(
"<A>_ETA - All \b");
5541 GetaHF11DF->SetMarkerColor(4);
5542 GetaHF11DF->SetLineColor(4);
5543 GetaHF11DF->SetMinimum(0.8);
5544 GetaHF11DF->Draw(
"Error");
5548 cRBX1->Print(
"RBX-HF-11Dplot.png");
5564 gStyle->SetOptStat(1110000);
5565 cout <<
" RBX HF Ratio plots *****" << endl;
5574 cRBX31->Divide(3, 1);
5578 TH1F *Ghf51 =
new TH1F(
"Ghf51",
"", nx, 1., nx + 1.);
5579 TH1F *Ghf50 =
new TH1F(
"Ghf50",
"", nx, 1., nx + 1.);
5580 TH1F *Ghf5 = (TH1F *)Ghf50->Clone(
"Ghf5");
5582 for (
int j = 1;
j <= ny;
j++) {
5583 ccc0HF = Ghf1->GetBinContent(1,
j);
5586 for (
int i = 1; i <= nx; i++) {
5587 double ccc2 = Ghf1->GetBinContent(i,
j);
5595 for (
int i = 1; i <= nx; i++) {
5596 double ccc1 = Ghf1->GetBinContent(i,
j);
5598 double Rij = ccc1 / ccc0HF;
5600 Ghf51->Fill(
float(i), Rij);
5601 Ghf50->Fill(
float(i), 1.);
5606 Ghf5->Divide(Ghf51, Ghf50, 1, 1,
"B");
5607 for (
int i = 1; i <= nx; i++) {
5608 Ghf5->SetBinError(i, 0.0001);
5610 Ghf5->SetMarkerStyle(20);
5611 Ghf5->SetMarkerSize(0.4);
5612 Ghf5->GetYaxis()->SetLabelSize(0.04);
5613 Ghf5->SetMarkerColor(2);
5614 Ghf5->SetLineColor(0);
5615 Ghf5->SetXTitle(
" iLS \b");
5616 Ghf5->SetYTitle(
" <R> \b");
5617 Ghf5->SetTitle(
"<Ri> vs iLS \b");
5618 Ghf5->SetMinimum(0.);
5623 Ghf5->GetYaxis()->SetLabelSize(0.025);
5624 Ghf5->Draw(
"Error");
5627 TH2F *Ghf60 =
new TH2F(
"Ghf60",
"", 22, -11., 11., 18, 0., 18.);
5628 TH2F *Ghf61 =
new TH2F(
"Ghf61",
"", 22, -11., 11., 18, 0., 18.);
5629 TH2F *Ghf6 =
new TH2F(
"Ghf6",
"", 22, -11., 11., 18, 0., 18.);
5631 TH2F *G20hf60 =
new TH2F(
"G20hf60",
"", 22, -11., 11., 18, 0., 18.);
5632 TH2F *G20hf61 =
new TH2F(
"G20hf61",
"", 22, -11., 11., 18, 0., 18.);
5633 TH2F *G20hf6 =
new TH2F(
"G20hf6",
"", 22, -11., 11., 18, 0., 18.);
5634 TH2F *G30hf60 =
new TH2F(
"G30hf60",
"", 22, -11., 11., 18, 0., 18.);
5635 TH2F *G30hf61 =
new TH2F(
"G30hf61",
"", 22, -11., 11., 18, 0., 18.);
5636 TH2F *G30hf6 =
new TH2F(
"G30hf6",
"", 22, -11., 11., 18, 0., 18.);
5637 TH2F *G40hf60 =
new TH2F(
"G40hf60",
"", 22, -11., 11., 18, 0., 18.);
5638 TH2F *G40hf61 =
new TH2F(
"G40hf61",
"", 22, -11., 11., 18, 0., 18.);
5639 TH2F *G40hf6 =
new TH2F(
"G40hf6",
"", 22, -11., 11., 18, 0., 18.);
5645 double meanjHF = 0.;
5646 for (
int j = 1;
j <= ny;
j++) {
5647 ccc0HF = Ghf1->GetBinContent(1,
j);
5649 for (
int i = 1; i <= nx; i++) {
5650 double ccc2 = Ghf1->GetBinContent(i,
j);
5657 for (
int i = 1; i <= nx; i++) {
5658 double ccc1 = Ghf1->GetBinContent(i,
j) / ccc0HF;
5664 meanjHF = sumjHF / njHF;
5668 double ssumjHF = 0.;
5670 double sigmajHF = 0.;
5671 for (
int j = 1;
j <= ny;
j++) {
5672 ccc0HF = Ghf1->GetBinContent(1,
j);
5674 for (
int i = 1; i <= nx; i++) {
5675 double ccc2 = Ghf1->GetBinContent(i,
j);
5682 for (
int i = 1; i <= nx; i++) {
5683 double ccc1 = Ghf1->GetBinContent(i,
j) / ccc0HF;
5685 ssumjHF += (ccc1 - meanjHF) * (ccc1 - meanjHF);
5689 sigmajHF =
sqrt(ssumjHF / njHF);
5693 double dif3rmsHFMIN = meanjHF - 3 * sigmajHF;
5694 if (dif3rmsHFMIN < 0.)
5696 double dif3rmsHFMAX = meanjHF + 3 * sigmajHF;
5697 cout <<
"22HF-2 meanjHF= " << meanjHF <<
" sigmajHF= " << sigmajHF <<
" dif3rmsHFMIN= " << dif3rmsHFMIN
5698 <<
" dif3rmsHFMAX= " << dif3rmsHFMAX << endl;
5700 double MAXdif3rmsHFMIN = dif3rmsHFMIN;
5701 double MINdif3rmsHFMAX = dif3rmsHFMAX;
5702 if (MAXdif3rmsHFMIN < 0.95)
5703 MAXdif3rmsHFMIN = 0.95;
5704 if (MINdif3rmsHFMAX > 1.05)
5705 MINdif3rmsHFMAX = 1.05;
5706 cout <<
"22HF-2 MAXdif3rmsHFMIN= " << MAXdif3rmsHFMIN <<
" MINdif3rmsHFMAX= " << MINdif3rmsHFMAX << endl;
5708 for (
int j = 1;
j <= ny;
j++) {
5709 ccc0HF = Ghf1->GetBinContent(1,
j);
5711 for (
int i = 1; i <= nx; i++) {
5712 double ccc2 = Ghf1->GetBinContent(i,
j);
5719 int jeta = (
j - 1) / 18;
5720 int jphi = (
j - 1) - 18 * jeta;
5722 for (
int i = 1; i <= nx; i++) {
5723 double ccc1 = Ghf1->GetBinContent(i,
j);
5725 double Rij = ccc1 / ccc0HF;
5726 if (Rij < MAXdif3rmsHFMIN || Rij > MINdif3rmsHFMAX) {
5727 Ghf61->Fill(jeta - 11, jphi, Rij);
5728 Ghf60->Fill(jeta - 11, jphi, 1.);
5730 if (Rij < 0.8 || Rij > 1.2) {
5731 G20hf61->Fill(jeta - 11, jphi, Rij);
5732 G20hf60->Fill(jeta - 11, jphi, 1.);
5734 if (Rij < 0.7 || Rij > 1.3) {
5735 G30hf61->Fill(jeta - 11, jphi, Rij);
5736 G30hf60->Fill(jeta - 11, jphi, 1.);
5738 if (Rij < 0.6 || Rij > 1.4) {
5739 G40hf61->Fill(jeta - 11, jphi, Rij);
5740 G40hf60->Fill(jeta - 11, jphi, 1.);
5746 Ghf6->Divide(Ghf61, Ghf60, 1, 1,
"B");
5747 G20hf6->Divide(G20hf61, G20hf60, 1, 1,
"B");
5748 G30hf6->Divide(G30hf61, G30hf60, 1, 1,
"B");
5749 G40hf6->Divide(G40hf61, G40hf60, 1, 1,
"B");
5752 Ghf6->GetZaxis()->SetLabelSize(0.025);
5754 Ghf6->SetXTitle(
" #eta \b");
5755 Ghf6->SetYTitle(
" #phi \b");
5757 "<Rj> for |1-<R>| > 0.05 \b");
5763 TH1F *Ghf7 =
new TH1F(
"Ghf7",
"", 120, 0.4, 1.6);
5765 for (
int j = 1;
j <= ny;
j++) {
5766 ccc0HF = Ghf1->GetBinContent(1,
j);
5768 for (
int i = 1; i <= nx; i++) {
5769 double ccc2 = Ghf1->GetBinContent(i,
j);
5777 for (
int i = 1; i <= nx; i++) {
5778 double ccc1 = Ghf1->GetBinContent(i,
j);
5780 double Rij = ccc1 / ccc0HF;
5786 Ghf7->SetMarkerStyle(20);
5787 Ghf7->SetMarkerSize(0.4);
5788 Ghf7->GetYaxis()->SetLabelSize(0.04);
5789 Ghf7->SetMarkerColor(2);
5790 Ghf7->SetLineColor(0);
5791 Ghf7->SetYTitle(
" N \b");
5792 Ghf7->SetXTitle(
" Rij \b");
5793 Ghf7->SetTitle(
" Rij \b");
5798 Ghf7->GetYaxis()->SetLabelSize(0.025);
5799 Ghf7->Draw(
"Error");
5800 Float_t ymaxHF = Ghf7->GetMaximum();
5801 cout <<
"22HF-3 ymaxHF= " << ymaxHF <<
" MAXdif3rmsHFMIN= " << MAXdif3rmsHFMIN
5802 <<
" MINdif3rmsHFMAX= " << MINdif3rmsHFMAX << endl;
5803 TLine *lineHF =
new TLine(MAXdif3rmsHFMIN, 0., MAXdif3rmsHFMIN, ymaxHF);
5804 lineHF->SetLineColor(kBlue);
5806 TLine *line1HF =
new TLine(MINdif3rmsHFMAX, 0., MINdif3rmsHFMAX, ymaxHF);
5807 line1HF->SetLineColor(kBlue);
5812 cRBX31->Print(
"RBX-HF-3plots.png");
5847 gStyle->SetOptStat(1110000);
5848 cout <<
" RBX HF Ratio plotsmore *****" << endl;
5851 cRBX31->Divide(3, 1);
5854 G20hf6->GetZaxis()->SetLabelSize(0.025);
5855 G20hf6->SetXTitle(
" #eta \b");
5856 G20hf6->SetYTitle(
" #phi \b");
5857 G20hf6->SetTitle(
"<Rj> for |1-<R>| > 0.20 \b");
5858 G20hf6->SetStats(0);
5859 G20hf6->Draw(
"COLZ");
5862 G30hf6->GetZaxis()->SetLabelSize(0.025);
5863 G30hf6->SetXTitle(
" #eta \b");
5864 G30hf6->SetYTitle(
" #phi \b");
5865 G30hf6->SetTitle(
"<Rj> for |1-<R>| > 0.30 \b");
5866 G30hf6->SetStats(0);
5867 G30hf6->Draw(
"COLZ");
5870 G40hf6->GetZaxis()->SetLabelSize(0.025);
5871 G40hf6->SetXTitle(
" #eta \b");
5872 G40hf6->SetYTitle(
" #phi \b");
5873 G40hf6->SetTitle(
"<Rj> for |1-<R>| > 0.40 \b");
5874 G40hf6->SetStats(0);
5875 G40hf6->Draw(
"COLZ");
5880 cRBX31->Print(
"RBX-HF-3plotsmore.png");
5890 gStyle->SetOptStat(0);
5892 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> " << endl;
5893 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> " << endl;
5894 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> " << endl;
5902 int mymaxbins = MaxLum;
5908 TH2F *occhbm = (TH2F *)dir->FindObjectAny(
"h_RatioOccupancy_HBM");
5909 TH1F *uyhbm =
new TH1F(
"uyhbm",
"", mymaxbins, 1., mymaxbins + 1.);
5910 for (
int i = 1; i <= occhbm->GetXaxis()->GetNbins(); i++) {
5911 double ccc1 = occhbm->GetBinContent(i);
5914 uyhbm->Fill(
float(i), ccc1);
5917 uyhbm->SetMarkerStyle(20);
5918 uyhbm->SetMarkerSize(0.6);
5919 uyhbm->GetYaxis()->SetLabelSize(0.04);
5920 uyhbm->SetXTitle(
"min/av occupancy - HBM \b");
5921 uyhbm->SetMarkerColor(2);
5922 uyhbm->SetLineColor(0);
5923 uyhbm->SetMaximum(1.0);
5924 uyhbm->SetMinimum(0.2);
5926 uyhbm->Draw(
"Error");
5929 TH2F *occhbp = (TH2F *)dir->FindObjectAny(
"h_RatioOccupancy_HBP");
5930 TH1F *uyhbp =
new TH1F(
"uyhbp",
"", mymaxbins, 1., mymaxbins + 1.);
5931 for (
int i = 1; i <= occhbp->GetXaxis()->GetNbins(); i++) {
5932 double ccc1 = occhbp->GetBinContent(i);
5935 uyhbp->Fill(
float(i), ccc1);
5938 uyhbp->SetMarkerStyle(20);
5939 uyhbp->SetMarkerSize(0.6);
5940 uyhbp->GetYaxis()->SetLabelSize(0.04);
5941 uyhbp->SetXTitle(
"min/av occupancy - HBP \b");
5942 uyhbp->SetMarkerColor(2);
5943 uyhbp->SetLineColor(0);
5944 uyhbp->SetMaximum(1.0);
5945 uyhbp->SetMinimum(0.2);
5947 uyhbp->Draw(
"Error");
5952 cHB->Print(Form(
"OccPlots_HB.png"));
5972 TH2F *occhem = (TH2F *)dir->FindObjectAny(
"h_RatioOccupancy_HEM");
5973 TH1F *uyhem =
new TH1F(
"uyhem",
"", mymaxbins, 1., mymaxbins + 1.);
5974 for (
int i = 1; i <= occhem->GetXaxis()->GetNbins(); i++) {
5975 double ccc1 = occhem->GetBinContent(i);
5978 uyhem->Fill(
float(i), ccc1);
5981 uyhem->SetMarkerStyle(20);
5982 uyhem->SetMarkerSize(0.6);
5983 uyhem->GetYaxis()->SetLabelSize(0.04);
5984 uyhem->SetXTitle(
"min/av occupancy - HEM \b");
5985 uyhem->SetMarkerColor(2);
5986 uyhem->SetLineColor(0);
5987 uyhem->SetMaximum(1.0);
5988 uyhem->SetMinimum(0.2);
5990 uyhem->Draw(
"Error");
5993 TH2F *occhep = (TH2F *)dir->FindObjectAny(
"h_RatioOccupancy_HEP");
5994 TH1F *uyhep =
new TH1F(
"uyhep",
"", mymaxbins, 1., mymaxbins + 1.);
5995 for (
int i = 1; i <= occhep->GetXaxis()->GetNbins(); i++) {
5996 double ccc1 = occhep->GetBinContent(i);
5999 uyhep->Fill(
float(i), ccc1);
6002 uyhep->SetMarkerStyle(20);
6003 uyhep->SetMarkerSize(0.6);
6004 uyhep->GetYaxis()->SetLabelSize(0.04);
6005 uyhep->SetXTitle(
"min/av occupancy - HEP \b");
6006 uyhep->SetMarkerColor(2);
6007 uyhep->SetLineColor(0);
6008 uyhep->SetMaximum(1.0);
6009 uyhep->SetMinimum(0.2);
6011 uyhep->Draw(
"Error");
6016 cHB->Print(Form(
"OccPlots_HE.png"));
6036 TH2F *occhom = (TH2F *)dir->FindObjectAny(
"h_RatioOccupancy_HOM");
6037 TH1F *uyhom =
new TH1F(
"uyhom",
"", mymaxbins, 1., mymaxbins + 1.);
6038 for (
int i = 1; i <= occhom->GetXaxis()->GetNbins(); i++) {
6039 double ccc1 = occhom->GetBinContent(i);
6042 uyhom->Fill(
float(i), ccc1);
6045 uyhom->SetMarkerStyle(20);
6046 uyhom->SetMarkerSize(0.6);
6047 uyhom->GetYaxis()->SetLabelSize(0.04);
6048 uyhom->SetXTitle(
"min/av occupancy - HOM \b");
6049 uyhom->SetMarkerColor(2);
6050 uyhom->SetLineColor(0);
6051 uyhom->SetMaximum(1.0);
6052 uyhom->SetMinimum(0.2);
6054 uyhom->Draw(
"Error");
6057 TH2F *occhop = (TH2F *)dir->FindObjectAny(
"h_RatioOccupancy_HOP");
6058 TH1F *uyhop =
new TH1F(
"uyhop",
"", mymaxbins, 1., mymaxbins + 1.);
6059 for (
int i = 1; i <= occhop->GetXaxis()->GetNbins(); i++) {
6060 double ccc1 = occhop->GetBinContent(i);
6063 uyhop->Fill(
float(i), ccc1);
6066 uyhop->SetMarkerStyle(20);
6067 uyhop->SetMarkerSize(0.6);
6068 uyhop->GetYaxis()->SetLabelSize(0.04);
6069 uyhop->SetXTitle(
"min/av occupancy - HOP \b");
6070 uyhop->SetMarkerColor(2);
6071 uyhop->SetLineColor(0);
6072 uyhop->SetMaximum(1.0);
6073 uyhop->SetMinimum(0.2);
6075 uyhop->Draw(
"Error");
6080 cHB->Print(Form(
"OccPlots_HO.png"));
6100 TH2F *occhfm = (TH2F *)dir->FindObjectAny(
"h_RatioOccupancy_HFM");
6101 TH1F *uyhfm =
new TH1F(
"uyhfm",
"", mymaxbins, 1., mymaxbins + 1.);
6102 for (
int i = 1; i <= occhfm->GetXaxis()->GetNbins(); i++) {
6103 double ccc1 = occhfm->GetBinContent(i);
6106 uyhfm->Fill(
float(i), ccc1);
6109 uyhfm->SetMarkerStyle(20);
6110 uyhfm->SetMarkerSize(0.6);
6111 uyhfm->GetYaxis()->SetLabelSize(0.04);
6112 uyhfm->SetXTitle(
"min/av occupancy - HFM \b");
6113 uyhfm->SetMarkerColor(2);
6114 uyhfm->SetLineColor(0);
6115 uyhfm->SetMaximum(1.0);
6116 uyhfm->SetMinimum(0.2);
6118 uyhfm->Draw(
"Error");
6121 TH2F *occhfp = (TH2F *)dir->FindObjectAny(
"h_RatioOccupancy_HFP");
6122 TH1F *uyhfp =
new TH1F(
"uyhfp",
"", mymaxbins, 1., mymaxbins + 1.);
6123 for (
int i = 1; i <= occhfp->GetXaxis()->GetNbins(); i++) {
6124 double ccc1 = occhfp->GetBinContent(i);
6127 uyhfp->Fill(
float(i), ccc1);
6130 uyhfp->SetMarkerStyle(20);
6131 uyhfp->SetMarkerSize(0.6);
6132 uyhfp->GetYaxis()->SetLabelSize(0.04);
6133 uyhfp->SetXTitle(
"min/av occupancy - HFP \b");
6134 uyhfp->SetMarkerColor(2);
6135 uyhfp->SetLineColor(0);
6136 uyhfp->SetMaximum(1.0);
6137 uyhfp->SetMinimum(0.2);
6139 uyhfp->Draw(
"Error");
6144 cHB->Print(Form(
"OccPlots_HF.png"));
6157 std::cout <<
"************>>> occupancy plots done" << std::endl;
6164 cout <<
">>>>>>>>>>>>>>>>>>>>>>>>start Summed Amplitude Plots " << endl;
6165 int maxbins = MaxLum;
6166 cout <<
">>>> maxbins = " << maxbins << endl;
6167 TH1F *SummedAmplitudeHisto[4];
6168 SummedAmplitudeHisto[0] = (TH1F *)dir->FindObjectAny(
"h_averSIGNALsumamplitude_HB");
6169 SummedAmplitudeHisto[1] = (TH1F *)dir->FindObjectAny(
"h_averSIGNALsumamplitude_HE");
6170 SummedAmplitudeHisto[2] = (TH1F *)dir->FindObjectAny(
"h_averSIGNALsumamplitude_HO");
6171 SummedAmplitudeHisto[3] = (TH1F *)dir->FindObjectAny(
"h_averSIGNALsumamplitude_HF");
6172 TH1F *SummedAmplitudeOccupancyHisto[4];
6173 SummedAmplitudeOccupancyHisto[0] = (TH1F *)dir->FindObjectAny(
"h_averSIGNALoccupancy_HB");
6174 SummedAmplitudeOccupancyHisto[1] = (TH1F *)dir->FindObjectAny(
"h_averSIGNALoccupancy_HE");
6175 SummedAmplitudeOccupancyHisto[2] = (TH1F *)dir->FindObjectAny(
"h_averSIGNALoccupancy_HO");
6176 SummedAmplitudeOccupancyHisto[3] = (TH1F *)dir->FindObjectAny(
"h_averSIGNALoccupancy_HF");
6177 for (
int sub = 0; sub < 4; sub++) {
6181 TH1F *kslpq =
new TH1F(
"kslpq",
"", maxbins, 1., maxbins + 1.);
6183 for (
int i = 1; i <= kslpq->GetXaxis()->GetNbins(); i++) {
6185 if (SummedAmplitudeHisto[sub])
6186 ccc1 = SummedAmplitudeHisto[sub]->GetBinContent(i);
6189 kslpq->Fill(
float(i), ccc1);
6192 kslpq->SetMarkerStyle(20);
6193 kslpq->SetMarkerSize(0.8);
6194 kslpq->GetYaxis()->SetLabelSize(0.04);
6195 kslpq->SetXTitle(
"SumA of channels w/ signal per LS \b");
6196 kslpq->SetMarkerColor(2);
6197 kslpq->SetLineColor(0);
6200 kslpq->Draw(
"Error");
6203 TH1F *pqmks =
new TH1F(
"pqmks",
"", maxbins, 1., maxbins + 1.);
6204 for (
int i = 1; i <= pqmks->GetXaxis()->GetNbins(); i++) {
6206 if (SummedAmplitudeOccupancyHisto[sub])
6207 ccc1 = SummedAmplitudeOccupancyHisto[sub]->GetBinContent(i);
6210 pqmks->Fill(
float(i), ccc1);
6213 pqmks->SetMarkerStyle(20);
6214 pqmks->SetMarkerSize(0.8);
6215 pqmks->GetYaxis()->SetLabelSize(0.04);
6216 pqmks->SetXTitle(
"Occupancy of channels w/ signal per LS \b");
6217 pqmks->SetMarkerColor(4);
6218 pqmks->SetLineColor(0);
6221 pqmks->Draw(
"Error");
6224 cHE->Print(
"SummedAmplitudesSignal_HB.png");
6226 cHE->Print(
"SummedAmplitudesSignal_HE.png");
6228 cHE->Print(
"SummedAmplitudesSignal_HO.png");
6230 cHE->Print(
"SummedAmplitudesSignal_HF.png");
6243 cout <<
">>>>>>>>>>>>>>>>>>>>>>>>start Summed Amplitude Plots NoSignal " << endl;
6244 TH1F *NoSignalSummedAmplitudeHisto[4];
6245 NoSignalSummedAmplitudeHisto[0] = (TH1F *)dir->FindObjectAny(
"h_averNOSIGNALsumamplitude_HB");
6246 NoSignalSummedAmplitudeHisto[1] = (TH1F *)dir->FindObjectAny(
"h_averNOSIGNALsumamplitude_HE");
6247 NoSignalSummedAmplitudeHisto[2] = (TH1F *)dir->FindObjectAny(
"h_averNOSIGNALsumamplitude_HO");
6248 NoSignalSummedAmplitudeHisto[3] = (TH1F *)dir->FindObjectAny(
"h_averNOSIGNALsumamplitude_HF");
6249 TH1F *NoSignalSummedAmplitudeOccupancyHisto[4];
6250 NoSignalSummedAmplitudeOccupancyHisto[0] = (TH1F *)dir->FindObjectAny(
"h_averNOSIGNALoccupancy_HB");
6251 NoSignalSummedAmplitudeOccupancyHisto[1] = (TH1F *)dir->FindObjectAny(
"h_averNOSIGNALoccupancy_HE");
6252 NoSignalSummedAmplitudeOccupancyHisto[2] = (TH1F *)dir->FindObjectAny(
"h_averNOSIGNALoccupancy_HO");
6253 NoSignalSummedAmplitudeOccupancyHisto[3] = (TH1F *)dir->FindObjectAny(
"h_averNOSIGNALoccupancy_HF");
6254 for (
int sub = 0; sub < 4; sub++) {
6259 TH1F *kslpq =
new TH1F(
"kslpq",
"", maxbins, 1., maxbins + 1.);
6260 for (
int i = 1; i <= kslpq->GetXaxis()->GetNbins(); i++) {
6262 if (NoSignalSummedAmplitudeHisto[sub])
6263 ccc1 = NoSignalSummedAmplitudeHisto[sub]->GetBinContent(i);
6266 kslpq->Fill(
float(i), ccc1);
6269 kslpq->SetMarkerStyle(20);
6270 kslpq->SetMarkerSize(0.8);
6271 kslpq->GetYaxis()->SetLabelSize(0.04);
6272 kslpq->SetXTitle(
"SumA of channels w/o signal per LS \b");
6273 kslpq->SetMarkerColor(2);
6274 kslpq->SetLineColor(0);
6276 kslpq->SetMaximum(20000.);
6277 kslpq->SetMinimum(5000.);
6278 }
else if (sub == 1) {
6279 kslpq->SetMaximum(40000.);
6280 kslpq->SetMinimum(0.);
6281 }
else if (sub == 2) {
6282 kslpq->SetMaximum(10000.);
6283 kslpq->SetMinimum(15000.);
6284 }
else if (sub == 3) {
6285 kslpq->SetMaximum(100000.);
6286 kslpq->SetMinimum(0.);
6289 kslpq->Draw(
"Error");
6292 TH1F *pqmks =
new TH1F(
"pqmks",
"", maxbins, 1., maxbins + 1.);
6293 for (
int i = 1; i <= pqmks->GetXaxis()->GetNbins(); i++) {
6295 if (NoSignalSummedAmplitudeOccupancyHisto[sub])
6296 ccc1 = NoSignalSummedAmplitudeOccupancyHisto[sub]->GetBinContent(i);
6299 pqmks->Fill(
float(i), ccc1);
6302 pqmks->SetMarkerStyle(20);
6303 pqmks->SetMarkerSize(0.8);
6304 pqmks->GetYaxis()->SetLabelSize(0.04);
6305 pqmks->SetXTitle(
"Occupancy of channels w/o signal per LS \b");
6306 pqmks->SetMarkerColor(4);
6307 pqmks->SetLineColor(0);
6309 pqmks->SetMaximum(600.);
6310 pqmks->SetMinimum(200.);
6311 }
else if (sub == 1) {
6312 pqmks->SetMaximum(910.);
6313 pqmks->SetMinimum(10.);
6314 }
else if (sub == 2) {
6315 pqmks->SetMaximum(200.);
6316 pqmks->SetMinimum(50.);
6317 }
else if (sub == 3) {
6318 pqmks->SetMaximum(866.);
6319 pqmks->SetMinimum(856.);
6322 pqmks->Draw(
"Error");
6325 cHE->Print(
"NoSignalSummedAmplitudes_HB.png");
6327 cHE->Print(
"NoSignalSummedAmplitudes_HE.png");
6329 cHE->Print(
"NoSignalSummedAmplitudes_HO.png");
6331 cHE->Print(
"NoSignalSummedAmplitudes_HF.png");
6345 cout <<
">>>>>>>>>>>>>>>>>>>>>>>>start Summed Amplitude Plots Maxx " << endl;
6346 TH1F *MaxxSummedAmplitudeHisto[4];
6347 MaxxSummedAmplitudeHisto[0] = (TH1F *)dir->FindObjectAny(
"h_maxxSUMAmpl_HB");
6348 MaxxSummedAmplitudeHisto[1] = (TH1F *)dir->FindObjectAny(
"h_maxxSUMAmpl_HE");
6349 MaxxSummedAmplitudeHisto[2] = (TH1F *)dir->FindObjectAny(
"h_maxxSUMAmpl_HO");
6350 MaxxSummedAmplitudeHisto[3] = (TH1F *)dir->FindObjectAny(
"h_maxxSUMAmpl_HF");
6351 TH1F *MaxxSummedAmplitudeOccupancyHisto[4];
6352 MaxxSummedAmplitudeOccupancyHisto[0] = (TH1F *)dir->FindObjectAny(
"h_maxxOCCUP_HB");
6353 MaxxSummedAmplitudeOccupancyHisto[1] = (TH1F *)dir->FindObjectAny(
"h_maxxOCCUP_HE");
6354 MaxxSummedAmplitudeOccupancyHisto[2] = (TH1F *)dir->FindObjectAny(
"h_maxxOCCUP_HO");
6355 MaxxSummedAmplitudeOccupancyHisto[3] = (TH1F *)dir->FindObjectAny(
"h_maxxOCCUP_HF");
6356 TH1F *SAmplitudeHisto[4];
6357 SAmplitudeHisto[0] = (TH1F *)dir->FindObjectAny(
"h_eventamplitude_HB");
6358 SAmplitudeHisto[1] = (TH1F *)dir->FindObjectAny(
"h_eventamplitude_HE");
6359 SAmplitudeHisto[2] = (TH1F *)dir->FindObjectAny(
"h_eventamplitude_HO");
6360 SAmplitudeHisto[3] = (TH1F *)dir->FindObjectAny(
"h_eventamplitude_HF");
6361 TH1F *OccupancyHisto[4];
6362 OccupancyHisto[0] = (TH1F *)dir->FindObjectAny(
"h_eventoccupancy_HB");
6363 OccupancyHisto[1] = (TH1F *)dir->FindObjectAny(
"h_eventoccupancy_HE");
6364 OccupancyHisto[2] = (TH1F *)dir->FindObjectAny(
"h_eventoccupancy_HO");
6365 OccupancyHisto[3] = (TH1F *)dir->FindObjectAny(
"h_eventoccupancy_HF");
6367 int countamplmaxHB = 0;
6368 int countamplmaxHE = 0;
6369 int countamplmaxHO = 0;
6370 int countamplmaxHF = 0;
6371 int countoccumaxHB = 0;
6372 int countoccumaxHE = 0;
6373 int countoccumaxHO = 0;
6374 int countoccumaxHF = 0;
6375 unsigned long int countamplHB = 0;
6376 unsigned long int countamplHE = 0;
6377 unsigned long int countamplHO = 0;
6378 unsigned long int countamplHF = 0;
6379 unsigned long int countoccuHB = 0;
6380 unsigned long int countoccuHE = 0;
6381 unsigned long int countoccuHO = 0;
6382 unsigned long int countoccuHF = 0;
6383 gStyle->SetOptStat(110000);
6384 for (
int sub = 0; sub < 4; sub++) {
6386 cFour->Divide(2, 2);
6389 TH1F *lpqxc =
new TH1F(
"lpqxc",
"", maxbins, 1., maxbins + 1.);
6390 for (
int i = 1; i <= lpqxc->GetXaxis()->GetNbins(); i++) {
6392 if (MaxxSummedAmplitudeHisto[sub])
6393 ccc1 = MaxxSummedAmplitudeHisto[sub]->GetBinContent(i);
6396 lpqxc->Fill(
float(i), ccc1);
6397 if (sub == 0 && ccc1 > 60000.)
6399 if (sub == 1 && ccc1 > 60000.)
6401 if (sub == 2 && ccc1 > 150000.)
6403 if (sub == 3 && ccc1 > 22000.)
6407 lpqxc->SetMarkerStyle(20);
6408 lpqxc->SetMarkerSize(0.8);
6411 lpqxc->SetXTitle(
"HB: max SA over LS-events per LS \b");
6413 lpqxc->SetXTitle(
"HE: max SA over LS-events per LS \b");
6415 lpqxc->SetXTitle(
"HO: max SA over LS-events per LS \b");
6417 lpqxc->SetXTitle(
"HF: max SA over LS-events per LS \b");
6418 lpqxc->SetMarkerColor(2);
6419 lpqxc->SetLineColor(0);
6421 lpqxc->Draw(
"Error");
6425 TH1F *hpzlm =
new TH1F(
"hpzlm",
"", maxbins, 1., maxbins + 1.);
6426 for (
int i = 1; i <= hpzlm->GetXaxis()->GetNbins(); i++) {
6428 if (MaxxSummedAmplitudeOccupancyHisto[sub])
6429 ccc1 = MaxxSummedAmplitudeOccupancyHisto[sub]->GetBinContent(i);
6432 hpzlm->Fill(
float(i), ccc1);
6433 if (sub == 0 && ccc1 > 2000.)
6435 if (sub == 1 && ccc1 > 1200.)
6437 if (sub == 2 && ccc1 > 2000.)
6439 if (sub == 3 && ccc1 > 860.)
6443 hpzlm->SetMarkerStyle(20);
6444 hpzlm->SetMarkerSize(0.8);
6447 hpzlm->SetXTitle(
"HB: max Occupancy over LS-events per LS \b");
6449 hpzlm->SetXTitle(
"HE: max Occupancy over LS-events per LS \b");
6451 hpzlm->SetXTitle(
"HO: max Occupancy over LS-events per LS \b");
6453 hpzlm->SetXTitle(
"HF: max Occupancy over LS-events per LS \b");
6454 hpzlm->SetMarkerColor(4);
6455 hpzlm->SetLineColor(0);
6458 hpzlm->SetMaximum(866.);
6459 hpzlm->SetMinimum(856.);
6461 hpzlm->Draw(
"Error");
6466 if (SAmplitudeHisto[sub]) {
6467 for (
int i = 1; i <= SAmplitudeHisto[sub]->GetXaxis()->GetNbins(); i++) {
6472 if (sub == 0 && i * 800 > 60000.)
6473 countamplHB += SAmplitudeHisto[sub]->GetBinContent(i);
6474 if (sub == 1 && i * 1000 > 60000.)
6475 countamplHE += SAmplitudeHisto[sub]->GetBinContent(i);
6476 if (sub == 2 && i * 2500 > 150000.)
6477 countamplHO += SAmplitudeHisto[sub]->GetBinContent(i);
6478 if (sub == 3 && i * 1400 > 22000.)
6479 countamplHF += SAmplitudeHisto[sub]->GetBinContent(i);
6481 SAmplitudeHisto[sub]->SetMarkerStyle(20);
6482 SAmplitudeHisto[sub]->SetMarkerSize(0.8);
6484 SAmplitudeHisto[sub]->SetTitle(
"HB event Amplitude\b");
6486 SAmplitudeHisto[sub]->SetTitle(
"HE event Amplitude\b");
6488 SAmplitudeHisto[sub]->SetTitle(
"HO event Amplitude\b");
6490 SAmplitudeHisto[sub]->SetTitle(
"HF event Amplitude\b");
6492 SAmplitudeHisto[sub]->SetXTitle(
"event amplitude \b");
6493 SAmplitudeHisto[sub]->SetMarkerColor(2);
6494 SAmplitudeHisto[sub]->SetLineColor(2);
6495 SAmplitudeHisto[sub]->Draw(
"");
6500 if (OccupancyHisto[sub]) {
6501 for (
int i = 1; i <= OccupancyHisto[sub]->GetXaxis()->GetNbins(); i++) {
6502 if (sub == 0 && i * 30 > 2000.)
6503 countoccuHB += OccupancyHisto[sub]->GetBinContent(i);
6504 if (sub == 1 && i * 20 > 1200.)
6505 countoccuHE += OccupancyHisto[sub]->GetBinContent(i);
6506 if (sub == 2 && i * 25 > 2000.)
6507 countoccuHO += OccupancyHisto[sub]->GetBinContent(i);
6508 if (sub == 3 && i * 10 > 860.)
6509 countoccuHF += OccupancyHisto[sub]->GetBinContent(i);
6511 OccupancyHisto[sub]->SetMarkerStyle(20);
6512 OccupancyHisto[sub]->SetMarkerSize(0.8);
6514 OccupancyHisto[sub]->SetTitle(
"HB event Occupancy\b");
6516 OccupancyHisto[sub]->SetTitle(
"HE event Occupancy\b");
6518 OccupancyHisto[sub]->SetTitle(
"HO event Occupancy\b");
6520 OccupancyHisto[sub]->SetTitle(
"HF event Occupancy\b");
6522 OccupancyHisto[sub]->SetXTitle(
"event occupancy \b");
6523 OccupancyHisto[sub]->SetMarkerColor(4);
6524 OccupancyHisto[sub]->SetLineColor(4);
6525 OccupancyHisto[sub]->Draw(
"");
6530 cFour->Print(
"MaxxSummedAmplitudes_HB.png");
6532 cFour->Print(
"MaxxSummedAmplitudes_HE.png");
6534 cFour->Print(
"MaxxSummedAmplitudes_HO.png");
6536 cFour->Print(
"MaxxSummedAmplitudes_HF.png");
6543 gStyle->SetOptStat(0);
6545 cout <<
">=>=>>=> countamplmaxHB= " << countamplmaxHB <<
" countamplmaxHE= " << countamplmaxHE
6546 <<
" countamplmaxHO= " << countamplmaxHO <<
" countamplmaxHF= " << countamplmaxHF << endl;
6547 cout <<
">=>=>>=> countoccumaxHB= " << countoccumaxHB <<
" countoccumaxHE= " << countoccumaxHE
6548 <<
" countoccumaxHO= " << countoccumaxHO <<
" countoccumaxHF= " << countoccumaxHF << endl;
6549 cout <<
">=>=>>=> countamplHB= " << countamplHB <<
" countamplHE= " << countamplHE <<
" countamplHO= " << countamplHO
6550 <<
" countamplHF= " << countamplHF << endl;
6551 cout <<
">=>=>>=> countoccuHB= " << countoccuHB <<
" countoccuHE= " << countoccuHE <<
" countoccuHO= " << countoccuHO
6552 <<
" countoccuHF= " << countoccuHF << endl;
6557 cout <<
">>>>>>>>>>>>>>>>>>>>>>>>channelsummedA over depths " << endl;
6558 TH1F *ChannelDepthsummedAmplitudesPlots[4];
6559 ChannelDepthsummedAmplitudesPlots[0] = (TH1F *)dir->FindObjectAny(
"h_sumamplitudechannel_HB");
6560 ChannelDepthsummedAmplitudesPlots[1] = (TH1F *)dir->FindObjectAny(
"h_sumamplitudechannel_HE");
6561 ChannelDepthsummedAmplitudesPlots[2] = (TH1F *)dir->FindObjectAny(
"h_sumamplitudechannel_HO");
6562 ChannelDepthsummedAmplitudesPlots[3] = (TH1F *)dir->FindObjectAny(
"h_sumamplitudechannel_HF");
6564 if (ChannelDepthsummedAmplitudesPlots[0])
6565 litebdt[0] =
new TLine(80., 0.8, 80., ChannelDepthsummedAmplitudesPlots[0]->GetBinContent(4) + 100.);
6566 if (ChannelDepthsummedAmplitudesPlots[1])
6567 litebdt[1] =
new TLine(200., 0.8, 200., ChannelDepthsummedAmplitudesPlots[1]->GetBinContent(7) + 100.);
6568 if (ChannelDepthsummedAmplitudesPlots[2])
6569 litebdt[2] =
new TLine(1200., 0.8, 1200., ChannelDepthsummedAmplitudesPlots[2]->GetBinContent(17) + 100.);
6570 if (ChannelDepthsummedAmplitudesPlots[3])
6571 litebdt[3] =
new TLine(600., 0.8, 600., ChannelDepthsummedAmplitudesPlots[3]->GetBinContent(6) + 100.);
6573 gStyle->SetOptStat(110000);
6575 cFour1->Divide(2, 2);
6576 for (
int sub = 0; sub < 4; sub++) {
6586 ChannelDepthsummedAmplitudesPlots[sub]->SetMarkerStyle(20);
6587 ChannelDepthsummedAmplitudesPlots[sub]->SetMarkerSize(0.8);
6589 ChannelDepthsummedAmplitudesPlots[sub]->SetTitle(
"HB channel Amplitudes\b");
6591 ChannelDepthsummedAmplitudesPlots[sub]->SetTitle(
"HE channel Amplitudes\b");
6593 ChannelDepthsummedAmplitudesPlots[sub]->SetTitle(
"HO channel Amplitudes\b");
6595 ChannelDepthsummedAmplitudesPlots[sub]->SetTitle(
"HF channel Amplitudes\b");
6597 ChannelDepthsummedAmplitudesPlots[sub]->SetXTitle(
"HB channel depths summed Amplitudes \b");
6599 ChannelDepthsummedAmplitudesPlots[sub]->SetXTitle(
"HE channel depths summed Amplitudes \b");
6601 ChannelDepthsummedAmplitudesPlots[sub]->SetXTitle(
"HO channel depths summed Amplitudes \b");
6603 ChannelDepthsummedAmplitudesPlots[sub]->SetXTitle(
"HF channel depths summed Amplitudes \b");
6604 ChannelDepthsummedAmplitudesPlots[sub]->SetMarkerColor(2);
6605 ChannelDepthsummedAmplitudesPlots[sub]->SetLineColor(2);
6606 ChannelDepthsummedAmplitudesPlots[sub]->Draw(
"");
6607 litebdt[sub]->SetLineColor(kBlue);
6608 litebdt[sub]->Draw(
"s");
6611 cFour1->Print(
"ChannelDepthsummedAmplitudes.png");
6613 gStyle->SetOptStat(0);
6618 cout <<
">>>>>>>>>>>>>>>>>>>>>>>>2DAtaildepth " << endl;
6623 TH2F *DAtaildepth1[2];
6624 DAtaildepth1[0] = (TH2F *)dir->FindObjectAny(
"h_2DAtaildepth1_HB");
6625 DAtaildepth1[1] = (TH2F *)dir->FindObjectAny(
"h_2D0Ataildepth1_HB");
6627 if (!DAtaildepth1[0] || !DAtaildepth1[1]) {
6628 cout <<
">>>>>>>>>>>>>>>>>>>>>>>>Ataildepth1_HB EMPTY histoes for 2DAtaildepth 1" << endl;
6630 TH2F *tail1 = (TH2F *)DAtaildepth1[0]->Clone(
"tail1");
6631 tail1->Divide(DAtaildepth1[0], DAtaildepth1[1], 1, 1,
"B");
6636 tail1->SetMarkerStyle(20);
6637 tail1->SetMarkerSize(0.4);
6638 tail1->SetTitle(
"Amplitudes for tail-events (HBdepth1) \b");
6639 tail1->SetXTitle(
"#eta \b");
6640 tail1->SetYTitle(
"#phi \b");
6641 tail1->SetZTitle(
"2D <A> in the tail - HB Depth1 \b");
6642 tail1->SetMarkerColor(2);
6643 tail1->SetLineColor(2);
6644 tail1->Draw(
"COLZ");
6646 TH2F *DAtaildepth2[2];
6647 DAtaildepth2[0] = (TH2F *)dir->FindObjectAny(
"h_2DAtaildepth2_HB");
6648 DAtaildepth2[1] = (TH2F *)dir->FindObjectAny(
"h_2D0Ataildepth2_HB");
6650 if (!DAtaildepth2[0] || !DAtaildepth2[1]) {
6651 cout <<
">>>>>>>>>>>>>>>>>>>>>>>>Ataildepth1_HB EMPTY histoes for 2DAtaildepth 2" << endl;
6653 TH2F *tail2 = (TH2F *)DAtaildepth2[0]->Clone(
"tail2");
6654 tail2->Divide(DAtaildepth2[0], DAtaildepth2[1], 1, 1,
"B");
6659 tail2->SetMarkerStyle(20);
6660 tail2->SetMarkerSize(0.4);
6661 tail2->SetTitle(
"Amplitudes for tail-events (HBdepth2) \b");
6662 tail2->SetXTitle(
"#eta \b");
6663 tail2->SetYTitle(
"#phi \b");
6664 tail2->SetZTitle(
"2D <A> in the tail - HB Depth2 \b");
6665 tail2->SetMarkerColor(2);
6666 tail2->SetLineColor(2);
6667 tail2->Draw(
"COLZ");
6671 cHB->Print(
"AtaildepthHB.png");
6677 cout <<
">>>>>>>>>>>>>>>>>>>>>>>>sumOccupancyHF " << endl;
6682 if (SummedAmplitudeOccupancyHisto[3]) {
6683 TH1F *ufrew1 = (TH1F *)SummedAmplitudeOccupancyHisto[3]->Clone(
"ufrew1");
6684 if (SummedAmplitudeOccupancyHisto[3] && NoSignalSummedAmplitudeOccupancyHisto[3])
6685 ufrew1->Add(SummedAmplitudeOccupancyHisto[3], NoSignalSummedAmplitudeOccupancyHisto[3], 1, 1);
6686 ufrew1->GetXaxis()->SetRangeUser(1., maxbins + 1.);
6688 ufrew1->SetMarkerStyle(20);
6689 ufrew1->SetMarkerSize(0.8);
6690 ufrew1->GetYaxis()->SetLabelSize(0.04);
6691 ufrew1->SetTitle(
"HF Occupancy vs LS\b");
6692 ufrew1->SetXTitle(
"average occupancy per LS HF\b");
6693 ufrew1->SetMarkerColor(4);
6694 ufrew1->SetLineColor(0);
6695 ufrew1->SetMaximum(866.);
6696 ufrew1->SetMinimum(856.);
6697 ufrew1->Draw(
"Error");
6699 cHB->Print(
"sumOccupancyHF.png");
6713 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> =====================================================================" << endl;
6716 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> ==================================================" << endl;
6719 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> =================================" << endl;
6720 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> =================================" << endl;
6721 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> =================================" << endl;
6722 cout <<
">>>>>>>>>>>>>>>>>>>>>>>> =================================" << endl;
6724 cout <<
">>>>>>> START NOW CREATING OF HTML PAGES <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<" << endl;
6730 for (
int test = 0; test <= 5; test++) {
6731 for (
int sub = 1; sub <= 4; sub++) {
6736 htmlFile.open(
"HB_CapID.html");
6739 htmlFile.open(
"HE_CapID.html");
6742 htmlFile.open(
"HO_CapID.html");
6745 htmlFile.open(
"HF_CapID.html");
6750 htmlFile.open(
"HB_ADCampl.html");
6753 htmlFile.open(
"HE_ADCampl.html");
6756 htmlFile.open(
"HO_ADCampl.html");
6759 htmlFile.open(
"HF_ADCampl.html");
6764 htmlFile.open(
"HB_Width.html");
6767 htmlFile.open(
"HE_Width.html");
6770 htmlFile.open(
"HO_Width.html");
6773 htmlFile.open(
"HF_Width.html");
6778 htmlFile.open(
"HB_Ratio.html");
6781 htmlFile.open(
"HE_Ratio.html");
6784 htmlFile.open(
"HO_Ratio.html");
6787 htmlFile.open(
"HF_Ratio.html");
6792 htmlFile.open(
"HB_Tmean.html");
6795 htmlFile.open(
"HE_Tmean.html");
6798 htmlFile.open(
"HO_Tmean.html");
6801 htmlFile.open(
"HF_Tmean.html");
6806 htmlFile.open(
"HB_Tmax.html");
6809 htmlFile.open(
"HE_Tmax.html");
6812 htmlFile.open(
"HO_Tmax.html");
6815 htmlFile.open(
"HF_Tmax.html");
6819 htmlFile <<
"</html><html xmlns=\"http://www.w3.org/1999/xhtml\">" << std::endl;
6820 htmlFile <<
"<head>" << std::endl;
6821 htmlFile <<
"<meta http-equiv=\"Content-Type\" content=\"text/html\"/>" << std::endl;
6822 htmlFile <<
"<title> Certification Monitoring Tool </title>" << std::endl;
6823 htmlFile <<
"<style type=\"text/css\">" << std::endl;
6824 htmlFile <<
" body,td{ background-color: #FFFFCC; font-family: arial, arial ce, helvetica; font-size: 12px; }"
6826 htmlFile <<
" td.s0 { font-family: arial, arial ce, helvetica; }" << std::endl;
6827 htmlFile <<
" td.s1 { font-family: arial, arial ce, helvetica; font-weight: bold; background-color: #FFC169; "
6828 "text-align: center;}"
6830 htmlFile <<
" td.s2 { font-family: arial, arial ce, helvetica; background-color: #eeeeee; }" << std::endl;
6831 htmlFile <<
" td.s3 { font-family: arial, arial ce, helvetica; background-color: #d0d0d0; }" << std::endl;
6832 htmlFile <<
" td.s4 { font-family: arial, arial ce, helvetica; background-color: #FFC169; }" << std::endl;
6833 htmlFile <<
" td.s5 { font-family: arial, arial ce, helvetica; background-color: #00FF00; }" << std::endl;
6834 htmlFile <<
" td.s6 { font-family: arial, arial ce, helvetica; background-color: #FF0000; }" << std::endl;
6835 htmlFile <<
"</style>" << std::endl;
6836 htmlFile <<
"<body>" << std::endl;
6840 htmlFile <<
"<h1> Cap ID estimator for HB, RUN = " << runnumber <<
" </h1>" << std::endl;
6842 htmlFile <<
"<h1> Cap ID estimator for HE, RUN = " << runnumber <<
" </h1>" << std::endl;
6844 htmlFile <<
"<h1> Cap ID estimator for HO, RUN = " << runnumber <<
" </h1>" << std::endl;
6846 htmlFile <<
"<h1> Cap ID estimator for HF, RUN = " << runnumber <<
" </h1>" << std::endl;
6850 htmlFile <<
"<h1> Mean ADC Amplitude estimator for HB, RUN = " << runnumber <<
" </h1>" << std::endl;
6852 htmlFile <<
"<h1> Mean ADC Amplitude estimator for HE, RUN = " << runnumber <<
" </h1>" << std::endl;
6854 htmlFile <<
"<h1> Mean ADC Amplitude estimator for HO, RUN = " << runnumber <<
" </h1>" << std::endl;
6856 htmlFile <<
"<h1> Mean ADC Amplitude estimator for HF, RUN = " << runnumber <<
" </h1>" << std::endl;
6860 htmlFile <<
"<h1> Width estimator for HB, RUN = " << runnumber <<
" </h1>" << std::endl;
6862 htmlFile <<
"<h1> Width estimator for HE, RUN = " << runnumber <<
" </h1>" << std::endl;
6864 htmlFile <<
"<h1> Width estimator for HO, RUN = " << runnumber <<
" </h1>" << std::endl;
6866 htmlFile <<
"<h1> Width estimator for HF, RUN = " << runnumber <<
" </h1>" << std::endl;
6870 htmlFile <<
"<h1> Ratio estimator for HB, RUN = " << runnumber <<
" </h1>" << std::endl;
6872 htmlFile <<
"<h1> Ratio estimator for HE, RUN = " << runnumber <<
" </h1>" << std::endl;
6874 htmlFile <<
"<h1> Ratio estimator for HO, RUN = " << runnumber <<
" </h1>" << std::endl;
6876 htmlFile <<
"<h1> Ratio estimator for HF, RUN = " << runnumber <<
" </h1>" << std::endl;
6880 htmlFile <<
"<h1> Mean bin timing estimator for HB, RUN = " << runnumber <<
" </h1>" << std::endl;
6882 htmlFile <<
"<h1> Mean bin timing estimator for HE, RUN = " << runnumber <<
" </h1>" << std::endl;
6884 htmlFile <<
"<h1> Mean bin timing estimator for HO, RUN = " << runnumber <<
" </h1>" << std::endl;
6886 htmlFile <<
"<h1> Mean bin timing estimator for HF, RUN = " << runnumber <<
" </h1>" << std::endl;
6890 htmlFile <<
"<h1> Maximum bin timing estimator for HB, RUN = " << runnumber <<
" </h1>" << std::endl;
6892 htmlFile <<
"<h1> Maximum bin timing estimator for HE, RUN = " << runnumber <<
" </h1>" << std::endl;
6894 htmlFile <<
"<h1> Maximum bin timing estimator for HO, RUN = " << runnumber <<
" </h1>" << std::endl;
6896 htmlFile <<
"<h1> Maximum bin timing estimator for HF, RUN = " << runnumber <<
" </h1>" << std::endl;
6900 htmlFile <<
"<a name=\"Top\"></a>\n";
6901 htmlFile <<
"<b>Contents:<br>\n";
6902 htmlFile <<
"1. <a href=\"#Aij\">A_ij_LS (averaged over events in LS) </a><br>\n";
6903 htmlFile <<
"2. <a href=\"#OverflowAij\">A_ij_LS in overflow & underflow</a><br>\n";
6904 htmlFile <<
"3. <a href=\"#MainEstimator\">Main Estimator !!! </a><br>\n";
6905 htmlFile <<
"4. <a href=\"#ErrorA\">Error type A </a><br>\n";
6906 htmlFile <<
"5. <a href=\"#ErrorAaverage\">ErrorA cross check</a><br>\n";
6907 htmlFile <<
"6. <a href=\"#ErrorAoccupancy\">ErrorA occupancy plots</a><br>\n";
6908 htmlFile <<
"7. <a href=\"#ErrorB\">Error type B</a><br>\n";
6909 htmlFile <<
"8. <a href=\"#LSstatus\">Table of Average channel-Amplitude in Depthes over LSs </a><br>\n";
6910 htmlFile <<
"9. <a href=\"#RBXstatus\">RBX Status </a><br>\n";
6911 htmlFile <<
"10. <a href=\"#RBXPHItable\">Table of Average RBX-Amplitude in Phi over LSs </a><br>\n";
6912 htmlFile <<
"11. <a href=\"#RBXETAtable\">Table of Average RBX-Amplitude in Eta over LSs </a><br>\n";
6913 htmlFile <<
"12. <a href=\"#RBX3plots\">RBX A-Ratio to 1st LS: 3 plots </a><br>\n";
6919 htmlFile <<
"<br>" << std::endl;
6921 htmlFile <<
"<h2> 0. Rate of CapID failures over all events of Run </h2>" << std::endl;
6922 htmlFile <<
"<h3> Channel legend: green - good, other colour - suspicious </h3>" << std::endl;
6924 htmlFile <<
" <img src=\"MapCapIdErrorHB.png\" />" << std::endl;
6926 htmlFile <<
" <img src=\"MapCapIdErrorHE.png\" />" << std::endl;
6928 htmlFile <<
" <img src=\"MapCapIdErrorHO.png\" />" << std::endl;
6930 htmlFile <<
" <img src=\"MapCapIdErrorHF.png\" />" << std::endl;
6933 htmlFile <<
"<a name=\"Aij\"></a>\n";
6935 htmlFile <<
"<h2> 1. Distribution of estimator averaged over events in LS, histogramed over all channels and "
6940 htmlFile <<
"<h2> 1. Average Nbcs for only LS containing events with abnormal number of Bad channels >"
6941 << CutAb[sub][1] <<
" (Depth1), " << CutAb[sub][2] <<
" (Depth2).</h2>" << std::endl;
6943 htmlFile <<
"<h2> 1. Average Nbcs for only LS containing events with abnormal number of Bad channels >"
6944 << CutAb[sub][1] <<
" (Depth1), " << CutAb[sub][2] <<
" (Depth2), " << CutAb[sub][3]
6945 <<
" (Depth3).</h2>" << std::endl;
6947 htmlFile <<
"<h2> 1. Average Nbcs for only LS containing events with abnormal number of Bad channels >"
6948 << CutAb[sub][1] <<
" (Depth4).</h2>" << std::endl;
6950 htmlFile <<
"<h2> 1. Average Nbcs for only LS containing events with abnormal number of Bad channels >"
6951 << CutAb[sub][1] <<
" (Depth1), " << CutAb[sub][2] <<
" (Depth2).</h2>" << std::endl;
6955 htmlFile <<
"<h3> see Overflow and Underflow </h3>" << std::endl;
6957 htmlFile <<
"<h3> Legend: dots correspond to BAD LS candidates.</h3>" << std::endl;
6961 htmlFile <<
" <img src=\"Hist_CAPID_Abnorm_HB.png\" />" << std::endl;
6963 htmlFile <<
" <img src=\"Hist_CAPID_Abnorm_HE.png\" />" << std::endl;
6965 htmlFile <<
" <img src=\"Hist_CAPID_Abnorm_HO.png\" />" << std::endl;
6967 htmlFile <<
" <img src=\"Hist_CAPID_Abnorm_HF.png\" />" << std::endl;
6971 htmlFile <<
" <img src=\"H_ADCamplHB.png\" />" << std::endl;
6973 htmlFile <<
" <img src=\"H_ADCamplHE.png\" />" << std::endl;
6975 htmlFile <<
" <img src=\"H_ADCamplHO.png\" />" << std::endl;
6977 htmlFile <<
" <img src=\"H_ADCamplHF.png\" />" << std::endl;
6981 htmlFile <<
" <img src=\"H_WidthHB.png\" />" << std::endl;
6983 htmlFile <<
" <img src=\"H_WidthHE.png\" />" << std::endl;
6985 htmlFile <<
" <img src=\"H_WidthHO.png\" />" << std::endl;
6987 htmlFile <<
" <img src=\"H_WidthHF.png\" />" << std::endl;
6991 htmlFile <<
" <img src=\"H_RatioHB.png\" />" << std::endl;
6993 htmlFile <<
" <img src=\"H_RatioHE.png\" />" << std::endl;
6995 htmlFile <<
" <img src=\"H_RatioHO.png\" />" << std::endl;
6997 htmlFile <<
" <img src=\"H_RatioHF.png\" />" << std::endl;
7001 htmlFile <<
" <img src=\"H_TmeanHB.png\" />" << std::endl;
7003 htmlFile <<
" <img src=\"H_TmeanHE.png\" />" << std::endl;
7005 htmlFile <<
" <img src=\"H_TmeanHO.png\" />" << std::endl;
7007 htmlFile <<
" <img src=\"H_TmeanHF.png\" />" << std::endl;
7011 htmlFile <<
" <img src=\"H_TmaxHB.png\" />" << std::endl;
7013 htmlFile <<
" <img src=\"H_TmaxHE.png\" />" << std::endl;
7015 htmlFile <<
" <img src=\"H_TmaxHO.png\" />" << std::endl;
7017 htmlFile <<
" <img src=\"H_TmaxHF.png\" />" << std::endl;
7019 htmlFile <<
"<br>" << std::endl;
7021 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7024 htmlFile <<
"<h2> 2a. Number of bad channels per event distribution in Run</h2>" << std::endl;
7026 htmlFile <<
"<h3> Legends: dots correspond to BAD LS candidates. </h3>" << std::endl;
7029 htmlFile <<
" <img src=\"HistNBadChsHB.png\" />" << std::endl;
7031 htmlFile <<
" <img src=\"HistNBadChsHE.png\" />" << std::endl;
7033 htmlFile <<
" <img src=\"HistNBadChsHO.png\" />" << std::endl;
7035 htmlFile <<
" <img src=\"HistNBadChsHF.png\" />" << std::endl;
7039 htmlFile <<
"<a name=\"OverflowAij\"></a>\n";
7041 htmlFile <<
"<h2> 2. Estimator averaged over all events in the RUN for entries in overflow and underflow of "
7042 "corresponding histogram above </h2>"
7046 htmlFile <<
"<h2> 2b. Averaged number of bad channels for each LS </h2>" << std::endl;
7050 htmlFile <<
"<h3> Legends: dots selected with following cuts: <td class=\"s6\" align=\"center\">"
7051 << Cut0[
test][sub][1] <<
" (Depth1), " << Cut0[
test][sub][2]
7052 <<
" (Depth2) correspond BAD LS.</td></h3>" << std::endl;
7054 htmlFile <<
"<h3> Legends: dots selected with following cuts: " << Cut0[
test][sub][1] <<
" (Depth1), "
7055 << Cut0[
test][sub][2] <<
" (Depth2), " << Cut0[
test][sub][3] <<
" (Depth3) correspond BAD LS.</h3>"
7058 htmlFile <<
"<h3> Legends: dots selected with following cuts: " << Cut0[
test][sub][4]
7059 <<
" (Depth4) correspond BAD LS.</h3>" << std::endl;
7061 htmlFile <<
"<h3> Legends: dots selected with following cuts: " << Cut0[
test][sub][1] <<
" (Depth1), "
7062 << Cut0[
test][sub][2] <<
" (Depth2) correspond BAD LS.</h3>" << std::endl;
7066 htmlFile <<
" <img src=\"HistNBCMNHB.png\" />" << std::endl;
7068 htmlFile <<
" <img src=\"HistNBCMNHE.png\" />" << std::endl;
7070 htmlFile <<
" <img src=\"HistNBCMNHO.png\" />" << std::endl;
7072 htmlFile <<
" <img src=\"HistNBCMNHF.png\" />" << std::endl;
7076 htmlFile <<
" <img src=\"MapADCamplHB.png\" />" << std::endl;
7078 htmlFile <<
" <img src=\"MapADCamplHE.png\" />" << std::endl;
7080 htmlFile <<
" <img src=\"MapADCamplHO.png\" />" << std::endl;
7082 htmlFile <<
" <img src=\"MapADCamplHF.png\" />" << std::endl;
7086 htmlFile <<
" <img src=\"MapWidthHB.png\" />" << std::endl;
7088 htmlFile <<
" <img src=\"MapWidthHE.png\" />" << std::endl;
7090 htmlFile <<
" <img src=\"MapWidthHO.png\" />" << std::endl;
7092 htmlFile <<
" <img src=\"MapWidthHF.png\" />" << std::endl;
7096 htmlFile <<
" <img src=\"MapRatioHB.png\" />" << std::endl;
7098 htmlFile <<
" <img src=\"MapRatioHE.png\" />" << std::endl;
7100 htmlFile <<
" <img src=\"MapRatioHO.png\" />" << std::endl;
7102 htmlFile <<
" <img src=\"MapRatioHF.png\" />" << std::endl;
7106 htmlFile <<
" <img src=\"MapTmeanHB.png\" />" << std::endl;
7108 htmlFile <<
" <img src=\"MapTmeanHE.png\" />" << std::endl;
7110 htmlFile <<
" <img src=\"MapTmeanHO.png\" />" << std::endl;
7112 htmlFile <<
" <img src=\"MapTmeanHF.png\" />" << std::endl;
7116 htmlFile <<
" <img src=\"MapTmaxHB.png\" />" << std::endl;
7118 htmlFile <<
" <img src=\"MapTmaxHE.png\" />" << std::endl;
7120 htmlFile <<
" <img src=\"MapTmaxHO.png\" />" << std::endl;
7122 htmlFile <<
" <img src=\"MapTmaxHF.png\" />" << std::endl;
7124 htmlFile <<
"<br>" << std::endl;
7126 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7129 htmlFile <<
"<a name=\"MainEstimator\"></a>\n";
7132 <<
"<h2> 3. Distribution of estimator averaged over events in LS and over all channels for each LS </h2>"
7136 htmlFile <<
"<h2> 3. Portion of events with Nbcs>" << CutPo[sub][1] <<
" (Depth1), " << CutPo[sub][2]
7137 <<
" (Depth2) in each LS.</h2>" << std::endl;
7139 htmlFile <<
"<h2> 3. Portion of events with Nbcs>" << CutPo[sub][1] <<
" (Depth1), " << CutPo[sub][2]
7140 <<
" (Depth2), " << CutPo[sub][3] <<
" (Depth3) in each LS.</h2>" << std::endl;
7142 htmlFile <<
"<h2> 3. Portion of events with Nbcs>" << CutPo[sub][4] <<
" (Depth4) in each LS.</h2>"
7145 htmlFile <<
"<h2> 3. Portion of events with Nbcs>" << CutPo[sub][1] <<
" (Depth1), " << CutPo[sub][2]
7146 <<
" (Depth2) in each LS.</h2>" << std::endl;
7147 htmlFile <<
"<h3> Legend: dots correspond to BAD LS candidates.</h3>" << std::endl;
7151 htmlFile <<
"<h3> Legends: dots selected with following cuts: <td class=\"s6\" align=\"center\">"
7152 << Cut0[
test][sub][1] <<
" (Depth1), " << Cut0[
test][sub][2]
7153 <<
" (Depth2) correspond BAD LS.</td></h3>" << std::endl;
7155 htmlFile <<
"<h3> Legends: dots selected with following cuts: " << Cut0[
test][sub][1] <<
" (Depth1), "
7156 << Cut0[
test][sub][2] <<
" (Depth2), " << Cut0[
test][sub][3] <<
" (Depth3), " << Cut0[
test][sub][4]
7157 <<
" (Depth4), " << Cut0[
test][sub][5] <<
" (Depth5), " << Cut0[
test][sub][6] <<
" (Depth6), "
7158 << Cut0[
test][sub][7] <<
" (Depth7) correspond BAD LS. </h3>" << std::endl;
7160 htmlFile <<
"<h3> Legends: dots selected with following cuts: " << Cut0[
test][sub][4]
7161 <<
" (Depth4) correspond BAD LS. </h3>" << std::endl;
7163 htmlFile <<
"<h3> Legends: dots selected with following cuts: " << Cut0[
test][sub][1] <<
" (Depth1), "
7164 << Cut0[
test][sub][2] <<
" (Depth2), " << Cut0[
test][sub][3] <<
" (Depth3), " << Cut0[
test][sub][4]
7165 <<
" (Depth4) correspond BAD LS. </h3>" << std::endl;
7169 htmlFile <<
" <img src=\"HistPortHB.png\" />" << std::endl;
7171 htmlFile <<
" <img src=\"HistPortHE.png\" />" << std::endl;
7173 htmlFile <<
" <img src=\"HistPortHO.png\" />" << std::endl;
7175 htmlFile <<
" <img src=\"HistPortHF.png\" />" << std::endl;
7179 htmlFile <<
" <img src=\"HistADCamplHB.png\" />" << std::endl;
7181 htmlFile <<
" <img src=\"HistADCamplHE.png\" />" << std::endl;
7183 htmlFile <<
" <img src=\"HistADCamplHO.png\" />" << std::endl;
7185 htmlFile <<
" <img src=\"HistADCamplHF.png\" />" << std::endl;
7189 htmlFile <<
" <img src=\"HistWidthHB.png\" />" << std::endl;
7191 htmlFile <<
" <img src=\"HistWidthHE.png\" />" << std::endl;
7193 htmlFile <<
" <img src=\"HistWidthHO.png\" />" << std::endl;
7195 htmlFile <<
" <img src=\"HistWidthHF.png\" />" << std::endl;
7199 htmlFile <<
" <img src=\"HistRatioHB.png\" />" << std::endl;
7201 htmlFile <<
" <img src=\"HistRatioHE.png\" />" << std::endl;
7203 htmlFile <<
" <img src=\"HistRatioHO.png\" />" << std::endl;
7205 htmlFile <<
" <img src=\"HistRatioHF.png\" />" << std::endl;
7209 htmlFile <<
" <img src=\"HistTmeanHB.png\" />" << std::endl;
7211 htmlFile <<
" <img src=\"HistTmeanHE.png\" />" << std::endl;
7213 htmlFile <<
" <img src=\"HistTmeanHO.png\" />" << std::endl;
7215 htmlFile <<
" <img src=\"HistTmeanHF.png\" />" << std::endl;
7219 htmlFile <<
" <img src=\"HistTmaxHB.png\" />" << std::endl;
7221 htmlFile <<
" <img src=\"HistTmaxHE.png\" />" << std::endl;
7223 htmlFile <<
" <img src=\"HistTmaxHO.png\" />" << std::endl;
7225 htmlFile <<
" <img src=\"HistTmaxHF.png\" />" << std::endl;
7227 htmlFile <<
"<br>" << std::endl;
7230 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7231 htmlFile <<
"<a name=\"ErrorA\"></a>\n";
7232 htmlFile <<
"<h2> 4. Error type A</h2>\n";
7233 htmlFile <<
"<h3> note: no sence to see plots of this item if max difference is too large(due to very high A "
7234 "of some channels)</h3>\n";
7235 htmlFile <<
"<br>\n";
7239 htmlFile <<
"<h3>Mean of max difference between dependencies to be within: 0.1-1.6 (p-p collisions) </h3>\n";
7240 htmlFile <<
" <img src=\"HistErrA_HB.png\" />\n";
7241 htmlFile <<
"<br>\n";
7242 if (flagErrAB_HB[0] == -1)
7243 htmlFile <<
"<h3>test was not possible</h3>\n";
7244 else if (flagErrAB_HB[0] == 0)
7245 htmlFile <<
"<h3> Fine:NoErrorA_HB (Mean of max difference " << avedelta_HB
7246 <<
" is within 0.1-1.6) </h3>\n";
7247 else if (flagErrAB_HB[0] == 1)
7248 htmlFile <<
"<<h3> ErrorA_HB is available once Mean of max difference " << avedelta_HB
7249 <<
" is out 0.1-1.6 (p-p collisions)</font></h3>\n";
7251 htmlFile <<
"<h3>auto-interpretation is not available</h3>\n";
7252 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7254 htmlFile <<
"<a name=\"ErrorAaverage\"></a>\n";
7256 htmlFile <<
"<h2> 5. Error type A cross check: see 2D pattern of channels </h2>\n";
7257 htmlFile <<
"<h2> 1) with average channel Amplitudes(No cut), 2) with average channel Amplitudes(<A> >25), "
7258 "3) with channel Amplitude (A<35); </h2>\n";
7259 htmlFile <<
" <img src=\"ChkErrA_HB1.png\" /><br><br>\n";
7260 htmlFile <<
" <img src=\"ChkErrA_HB2.png\" /><br>\n";
7261 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7263 htmlFile <<
"<a name=\"ErrorAoccupancy\"></a>\n";
7264 htmlFile <<
"<h2> 6. Error type A: min/ave ratio for occupancy distributions with Amplitude bigger 25 "
7265 "(HBM:neg.eta;HBP:pos.eta) </h2>\n";
7266 htmlFile <<
"<h2> FOR CROSS-CHECK OLNY !!!</h2>\n";
7267 htmlFile <<
"<h2> TO IDENTIFY A-type errors: for most of LSs the ratio to be lower 0.6 at least for HF- or "
7269 htmlFile <<
"<h2> For runs without A-type errors: for most of LSs the ratio is higher 0.6 and is the same "
7270 "for HF- and HF+ </h2>\n";
7271 htmlFile <<
" <img src=\"OccPlots_HB.png\" /><br><br>\n";
7272 htmlFile <<
"<br>\n";
7273 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7275 htmlFile <<
"<a name=\"ErrorB\"></a>\n";
7276 htmlFile <<
"<h2> 7. Error type B\n";
7277 htmlFile <<
"<h3> ErrorB identification: digi-collection size != 10.</h3>\n";
7278 htmlFile <<
" <img src=\"HistErrB_HB_1.png\" />\n<br>\n";
7279 htmlFile <<
" <img src=\"HistErrB_HB_2.png\" />\n<br>\n";
7280 htmlFile <<
"<br>\n";
7281 htmlFile <<
"<h3> if Error type B is available, it start from: " << LSofFirstErrB_HB <<
" LS </h3>\n";
7282 htmlFile <<
"<br>\n";
7287 htmlFile <<
"<h3>Mean of max difference between dependencies to be within: 0.2-1.8 (p-p collisions) </h3>\n";
7288 htmlFile <<
" <img src=\"HistErrA_HE.png\" />\n";
7289 htmlFile <<
"<br>\n";
7290 if (flagErrAB_HE[0] == -1)
7291 htmlFile <<
"<h3>test was not possible</h3>\n";
7292 else if (flagErrAB_HE[0] == 0)
7293 htmlFile <<
"<h3> Fine:NoErrorA_HE (Mean of max difference " << avedelta_HE
7294 <<
" is within 0.2-1.8) </h3>\n";
7295 else if (flagErrAB_HE[0] == 1)
7296 htmlFile <<
"<<h3> ErrorA_HE is available once Mean of max difference " << avedelta_HE
7297 <<
" is out 0.2-1.8 (p-p collisions)</font></h3>\n";
7299 htmlFile <<
"<h3>auto-interpretation is not available</h3>\n";
7300 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7302 htmlFile <<
"<a name=\"ErrorAaverage\"></a>\n";
7304 htmlFile <<
"<h2> 5. Error type A cross check: see 2D pattern of channels </h2>\n";
7305 htmlFile <<
"<h2> 1) with average channel Amplitudes(No cut), 2) with average channel Amplitudes(<A> "
7306 ">1000.fC), 3) with channel Amplitude (A<500fC); </h2>\n";
7307 htmlFile <<
" <img src=\"ChkErrA_HE1.png\" /><br><br>\n";
7308 htmlFile <<
" <img src=\"ChkErrA_HE2.png\" /><br>\n";
7309 htmlFile <<
" <img src=\"ChkErrA_HE3.png\" /><br>\n";
7310 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7312 htmlFile <<
"<a name=\"ErrorAoccupancy\"></a>\n";
7313 htmlFile <<
"<h2> 6. Error type A: min/ave ratio for occupancy distributions with Amplitude bigger 35 "
7314 "(HEM:neg.eta;HEP:pos.eta) </h2>\n";
7315 htmlFile <<
"<h2> FOR CROSS-CHECK OLNY !!!</h2>\n";
7316 htmlFile <<
"<h2> TO IDENTIFY A-type errors: for most of LSs the ratio to be lower 0.3 at least for HF- or "
7318 htmlFile <<
"<h2> For runs without A-type errors: for most of LSs the ratio is higher 0.3 and is the same "
7319 "for HF- and HF+ </h2>\n";
7320 htmlFile <<
" <img src=\"OccPlots_HE.png\" /><br><br>\n";
7321 htmlFile <<
"<br>\n";
7322 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7324 htmlFile <<
"<a name=\"ErrorB\"></a>\n";
7325 htmlFile <<
"<h2> 7. Error type B\n";
7326 htmlFile <<
"<h3> ErrorB identification: digi-collection size != 8.</h3>\n";
7327 htmlFile <<
" <img src=\"HistErrB_HE_1.png\" />\n<br>\n";
7328 htmlFile <<
" <img src=\"HistErrB_HE_2.png\" />\n<br>\n";
7329 htmlFile <<
" <img src=\"HistErrB_HE_3.png\" />\n<br>\n";
7330 htmlFile <<
"<br>\n";
7331 htmlFile <<
"<h3> if Error type B is available, it start from: " << LSofFirstErrB_HE <<
" LS </h3>\n";
7332 htmlFile <<
"<br>\n";
7337 htmlFile <<
"<h3>Mean of max difference between dependencies to be within: 0.1-1.5 (p-p collisions) </h3>\n";
7338 htmlFile <<
" <img src=\"HistErrA_HO.png\" />\n";
7339 htmlFile <<
"<br>\n";
7340 if (flagErrAB_HO[0] == -1)
7341 htmlFile <<
"<h3>test was not possible</h3>\n";
7342 else if (flagErrAB_HO[0] == 0)
7343 htmlFile <<
"<h3> Fine:NoErrorA_HO (Mean of max difference " << avedelta_HO
7344 <<
" is within 0.1-1.5) </h3>\n";
7345 else if (flagErrAB_HO[0] == 1)
7346 htmlFile <<
"<<h3> ErrorA_HO is available once Mean of max difference " << avedelta_HO
7347 <<
" is out 0.1-1.5 (p-p collisions)</font></h3>\n";
7349 htmlFile <<
"<h3>auto-interpretation is not available</h3>\n";
7350 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7352 htmlFile <<
"<a name=\"ErrorAaverage\"></a>\n";
7354 htmlFile <<
"<h2> 5. Error type A cross check: see 2D pattern of channels </h2>\n";
7355 htmlFile <<
"<h2> 1) with average channel Amplitudes(No cut), 2) with average channel Amplitudes(<A> >80), "
7356 "3) with channel Amplitude (A<100); </h2>\n";
7358 htmlFile <<
" <img src=\"ChkErrA_HO4.png\" /><br><br>\n";
7359 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7361 htmlFile <<
"<a name=\"ErrorAoccupancy\"></a>\n";
7362 htmlFile <<
"<h2> 6. Error type A: min/ave ratio for occupancy distributions with Amplitude bigger 80 "
7363 "(HOM:neg.eta;HOP:pos.eta) </h2>\n";
7364 htmlFile <<
"<h2> FOR CROSS-CHECK OLNY !!!</h2>\n";
7365 htmlFile <<
"<h2> TO IDENTIFY A-type errors: for most of LSs the ratio to be lower 0.8 at least for HF- or "
7367 htmlFile <<
"<h2> For runs without A-type errors: for most of LSs the ratio is higher 0.8 and is the same "
7368 "for HF- and HF+ </h2>\n";
7369 htmlFile <<
" <img src=\"OccPlots_HO.png\" /><br><br>\n";
7370 htmlFile <<
"<br>\n";
7371 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7373 htmlFile <<
"<a name=\"ErrorB\"></a>\n";
7374 htmlFile <<
"<h2> 7. Error type B\n";
7375 htmlFile <<
"<h3> ErrorB identification: digi-collection size != 10. </h3>\n";
7376 htmlFile <<
" <img src=\"HistErrB_HO_4.png\" />\n<br>\n";
7377 htmlFile <<
"<br>\n";
7378 htmlFile <<
"<h3> if Error type B is available, it start from: " << LSofFirstErrB_HO <<
" LS </h3>\n";
7379 htmlFile <<
"<br>\n";
7385 htmlFile <<
"<h3>Mean of max difference between dependencies to be within: 0.8-2.4 (p-p collisions) </h3>\n";
7386 htmlFile <<
" <img src=\"HistErrA_HF.png\" />\n";
7387 htmlFile <<
"<br>\n";
7388 if (flagErrAB_HF[0] == -1)
7389 htmlFile <<
"<h3>test was not possible</h3>\n";
7390 else if (flagErrAB_HF[0] == 0)
7391 htmlFile <<
"<h3> Fine:NoErrorA_HF (Mean of max difference " << avedelta_HF
7392 <<
" is within 0.8-2.4) </h3>\n";
7393 else if (flagErrAB_HF[0] == 1)
7394 htmlFile <<
"<<h3> ErrorA_HF is available once Mean of max difference " << avedelta_HF
7395 <<
" is out 0.8-2.4 (p-p collisions)</font></h3>\n";
7397 htmlFile <<
"<h3>auto-interpretation is not available</h3>\n";
7398 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7400 htmlFile <<
"<a name=\"ErrorAaverage\"></a>\n";
7402 htmlFile <<
"<h2> 5. Error type A cross check: see 2D pattern of channels </h2>\n";
7403 htmlFile <<
"<h2> 1) with average channel Amplitudes(No cut), 2) with average channel Amplitudes(<A> >20), "
7404 "3) with channel Amplitude (A<20); </h2>\n";
7406 htmlFile <<
" <img src=\"ChkErrA_HF1.png\" /><br><br>\n";
7407 htmlFile <<
" <img src=\"ChkErrA_HF2.png\" /><br>\n";
7408 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7410 htmlFile <<
"<a name=\"ErrorAoccupancy\"></a>\n";
7411 htmlFile <<
"<h2> 6. Error type A: min/ave ratio for occupancy distributions with Amplitude bigger 20 "
7412 "(HFM:neg.eta;HFP:pos.eta) </h2>\n";
7413 htmlFile <<
"<h2> FOR CROSS-CHECK OLNY !!!</h2>\n";
7414 htmlFile <<
"<h2> TO IDENTIFY A-type errors: for most of LSs the ratio to be lower 0.8 at least for HF- or "
7416 htmlFile <<
"<h2> For runs without A-type errors: for most of LSs the ratio is higher 0.8 and is the same "
7417 "for HF- and HF+ </h2>\n";
7418 htmlFile <<
" <img src=\"OccPlots_HF.png\" /><br><br>\n";
7419 htmlFile <<
"<br>\n";
7420 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7422 htmlFile <<
"<a name=\"ErrorB\"></a>\n";
7423 htmlFile <<
"<h2> 7. Error type B\n";
7424 htmlFile <<
"<h3> ErrorB identification: digi-collection size != 4. </h3>\n";
7425 htmlFile <<
" <img src=\"HistErrB_HF_1.png\" />\n<br>\n";
7426 htmlFile <<
" <img src=\"HistErrB_HF_2.png\" />\n<br>\n";
7427 htmlFile <<
"<br>\n";
7428 htmlFile <<
"<h3> if Error type B is available, it start from: " << LSofFirstErrB_HF <<
" LS </h3>\n";
7429 htmlFile <<
"<br>\n";
7431 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7436 htmlFile <<
"<a name=\"LSstatus\"></a>\n";
7439 htmlFile <<
"<h2> 8.Lumisection Status for HB: </h2>" << std::endl;
7441 htmlFile <<
"<h3> Legends: Red boxes correspond BAD LS selected with following cuts: " << Cut0[
test][sub][1]
7442 <<
" (Depth1), " << Cut0[
test][sub][2] <<
" (Depth2), " << Cut0[
test][sub][3] <<
" (Depth3), "
7443 << Cut0[
test][sub][4] <<
" (Depth4), </h3>" << std::endl;
7446 htmlFile <<
"<h2> 8.Lumisection Status for HE: </h2>" << std::endl;
7447 htmlFile <<
"<h3> Legends: Red boxes correspond BAD LS selected with following cuts: " << Cut0[
test][sub][1]
7448 <<
" (Depth1), " << Cut0[
test][sub][2] <<
" (Depth2), " << Cut0[
test][sub][3] <<
" (Depth3),"
7449 << Cut0[
test][sub][4] <<
" (Depth4)," << Cut0[
test][sub][5] <<
" (Depth5)," << Cut0[
test][sub][6]
7450 <<
" (Depth6)," << Cut0[
test][sub][7] <<
" (Depth7). </h3>" << std::endl;
7454 htmlFile <<
"<h2> 8.Lumisection Status for HO: </h2>" << std::endl;
7455 htmlFile <<
"<h3> Legends: Red boxes correspond BAD LS selected with following cuts: " << Cut0[
test][sub][4]
7456 <<
" (Depth4). </h3>" << std::endl;
7459 htmlFile <<
"<h2> 8.Lumisection Status for HF: </h2>" << std::endl;
7460 htmlFile <<
"<h3> Legends: Red boxes correspond BAD LS selected with following cuts: " << Cut0[
test][sub][1]
7461 <<
" (Depth1), " << Cut0[
test][sub][2] <<
" (Depth2), " << Cut0[
test][sub][3] <<
" (Depth3), "
7462 << Cut0[
test][sub][4] <<
" (Depth4), </h3>" << std::endl;
7464 htmlFile <<
"<br>" << std::endl;
7465 htmlFile <<
"<table>" << std::endl;
7467 htmlFile <<
"<td class=\"s4\" align=\"center\">LS</td>" << std::endl;
7469 htmlFile <<
"<td class=\"s1\" align=\"center\">Number of events</td>" << std::endl;
7472 int kkkkkkmax = k_max[sub];
7473 if ((sub == 4 || sub == 2 || sub == 1) && test == 1)
7474 kkkkkkmax = k_maxupgrade[sub];
7479 for (
int k = k_min[sub]; k <= kkkkkkmax; k++)
7480 htmlFile <<
"<td class=\"s1\" align=\"center\">< Nbcs > Depth " << k <<
" </td>" << std::endl;
7482 for (
int k = k_min[sub]; k <= kkkkkkmax; k++)
7483 htmlFile <<
"<td class=\"s1\" align=\"center\">< A > Depth " << k <<
" </td>" << std::endl;
7485 for (
int k = k_min[sub]; k <= kkkkkkmax; k++)
7486 htmlFile <<
"<td class=\"s1\" align=\"center\">< W > Depth " << k <<
" </td>" << std::endl;
7488 for (
int k = k_min[sub]; k <= kkkkkkmax; k++)
7489 htmlFile <<
"<td class=\"s1\" align=\"center\">< R > Depth " << k <<
" </td>" << std::endl;
7491 for (
int k = k_min[sub]; k <= kkkkkkmax; k++)
7492 htmlFile <<
"<td class=\"s1\" align=\"center\">< TSn > Depth " << k <<
" </td>" << std::endl;
7494 for (
int k = k_min[sub]; k <= kkkkkkmax; k++)
7495 htmlFile <<
"<td class=\"s1\" align=\"center\">< TSx > Depth " << k <<
" </td>" << std::endl;
7496 htmlFile <<
"</tr>" << std::endl;
7499 for (
int i = 1; i <= MaxLum; i++) {
7501 raw_class =
"<td class=\"s2\" align=\"center\">";
7503 raw_class =
"<td class=\"s3\" align=\"center\">";
7504 htmlFile <<
"<tr>" << std::endl;
7505 htmlFile <<
"<td class=\"s4\" align=\"center\">" << i <<
"</td>" << std::endl;
7507 htmlFile << raw_class << LumiEv->GetBinContent(i) <<
"</td>" << std::endl;
7508 for (
int k = k_min[sub]; k <= kkkkkkmax; k++) {
7509 if (HistNumBadChanDepth[test][sub][k]->GetBinContent(i) > Cut0[test][sub][k]) {
7511 htmlFile <<
"<td class=\"s6\" align=\"center\">"
7512 << int(HistNumBadChanDepth[test][sub][k]->GetBinContent(i)) <<
"</td>" << std::endl;
7514 htmlFile <<
"<td class=\"s6\" align=\"center\">" << (HistNumBadChanDepth[
test][sub][
k]->GetBinContent(i))
7515 <<
"</td>" << std::endl;
7518 htmlFile << raw_class << int(HistNumBadChanDepth[test][sub][k]->GetBinContent(i)) <<
"</td>" << std::endl;
7520 htmlFile << raw_class << (HistNumBadChanDepth[
test][sub][
k]->GetBinContent(i)) <<
"</td>" << std::endl;
7523 htmlFile <<
"</tr>" << std::endl;
7526 htmlFile <<
"</table>" << std::endl;
7528 htmlFile <<
"<br>" << std::endl;
7530 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7531 htmlFile <<
"<br>" << std::endl;
7538 htmlFile <<
"<a name=\"RBXstatus\"></a>\n";
7542 htmlFile <<
"<h2> 9. Average Amplitudes of RBX for HB: </h2>" << std::endl;
7543 htmlFile <<
"<h3> where </h3>" << std::endl;
7544 htmlFile <<
"<h3> jeta = 7,8,9,10 (Negative direction); ............&& ............ jeta = 11,12,13,14 "
7545 "(Positive direction); </h3>"
7547 htmlFile <<
"<h3> jphi = 0, 1,..... 16, 17 </h3>" << std::endl;
7549 htmlFile <<
" <img src=\"RBX-HB-2Dplot.png\" />\n";
7550 htmlFile <<
"<br>\n";
7552 htmlFile <<
"<h2> Average Amplitudes of RBX-PHI for HB: </h2>" << std::endl;
7553 htmlFile <<
" <img src=\"RBX-HB-1Dplot.png\" />\n";
7554 htmlFile <<
"<br>\n";
7556 htmlFile <<
"<h2> Average Amplitudes of RBX-ETA for HB: </h2>" << std::endl;
7557 htmlFile <<
" <img src=\"RBX-HB-11Dplot.png\" />\n";
7558 htmlFile <<
"<br>\n";
7560 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7564 htmlFile <<
"<h2> 9. Averaged Amplitudes of RBX for HE: </h2>" << std::endl;
7565 htmlFile <<
"<h3> where </h3>" << std::endl;
7566 htmlFile <<
"<h3> jeta = 3,4,5, 6, 7 (Negative direction); ............&& ............ jeta = "
7567 "14,15,16,17,18 (Positive direction); </h3>"
7569 htmlFile <<
"<h3> jphi = 0, 1,..... 16, 17 </h3>" << std::endl;
7571 htmlFile <<
" <img src=\"RBX-HE-2Dplot.png\" />\n";
7572 htmlFile <<
"<br>\n";
7574 htmlFile <<
"<h2> Average Amplitudes of RBX-PHI for HE: </h2>" << std::endl;
7575 htmlFile <<
" <img src=\"RBX-HE-1Dplot.png\" />\n";
7576 htmlFile <<
"<br>\n";
7578 htmlFile <<
"<h2> Average Amplitudes of RBX-ETA for HE: </h2>" << std::endl;
7579 htmlFile <<
" <img src=\"RBX-HE-11Dplot.png\" />\n";
7580 htmlFile <<
"<br>\n";
7582 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7586 htmlFile <<
"<h2> 9. Averaged Amplitudes of RBX for HO: </h2>" << std::endl;
7587 htmlFile <<
"<h3> where </h3>" << std::endl;
7588 htmlFile <<
"<h3> jeta = 7,8,9,10 (Negative direction); ............&& ............ jeta = 11,12,13,14 "
7589 "(Positive direction); </h3>"
7591 htmlFile <<
"<h3> jphi = 0, 1,..... 16, 17 </h3>" << std::endl;
7593 htmlFile <<
" <img src=\"RBX-HO-2Dplot.png\" />\n";
7594 htmlFile <<
"<br>\n";
7596 htmlFile <<
"<h2> Average Amplitudes of RBX-PHI for HO: </h2>" << std::endl;
7597 htmlFile <<
" <img src=\"RBX-HO-1Dplot.png\" />\n";
7598 htmlFile <<
"<br>\n";
7600 htmlFile <<
"<h2> Average Amplitudes of RBX-ETA for HO: </h2>" << std::endl;
7601 htmlFile <<
" <img src=\"RBX-HO-11Dplot.png\" />\n";
7602 htmlFile <<
"<br>\n";
7604 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7608 htmlFile <<
"<h2> 9. Averaged Amplitudes of RBX for HF: </h2>" << std::endl;
7609 htmlFile <<
"<h3> where </h3>" << std::endl;
7610 htmlFile <<
"<h3> jeta = 0,1,2, 3 (Negative direction); ............&& ............ jeta = 18,19,20,21 "
7611 "(Positive direction); </h3>"
7613 htmlFile <<
"<h3> jphi = 0, 1,..... 16, 17 </h3>" << std::endl;
7615 htmlFile <<
" <img src=\"RBX-HF-2Dplot.png\" />\n";
7616 htmlFile <<
"<br>\n";
7618 htmlFile <<
"<h2> Average Amplitudes of RBX-PHI for HF: </h2>" << std::endl;
7619 htmlFile <<
" <img src=\"RBX-HF-1Dplot.png\" />\n";
7620 htmlFile <<
"<br>\n";
7622 htmlFile <<
"<h2> Average Amplitudes of RBX-ETA for HF: </h2>" << std::endl;
7623 htmlFile <<
" <img src=\"RBX-HF-11Dplot.png\" />\n";
7624 htmlFile <<
"<br>\n";
7626 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7628 htmlFile <<
"<br>" << std::endl;
7633 htmlFile <<
"<a name=\"RBXPHItable\"></a>\n";
7637 htmlFile <<
"<h2> 10. Average RBX-Amplitude in Phi over LSs for HB: </h2>" << std::endl;
7639 <<
"<h3> Legends: Red boxes correspond BAD LS selected with cut = <td class=\"s6\" align=\"center\">"
7640 << cutA_HB << std::endl;
7644 htmlFile <<
"<h2> 10. Average RBX-Amplitude in Phi over LSs for HE: </h2>" << std::endl;
7646 <<
"<h3> Legends: Red boxes correspond BAD LS selected with cut = <td class=\"s6\" align=\"center\">"
7647 << cutA_HE << std::endl;
7651 htmlFile <<
"<h2> 10. Average RBX-Amplitude in Phi over LSs for HO: </h2>" << std::endl;
7653 <<
"<h3> Legends: Red boxes correspond BAD LS selected with cut = <td class=\"s6\" align=\"center\">"
7654 << cutA_HO << std::endl;
7658 htmlFile <<
"<h2> 10. Average RBX-Amplitude in Phi over LSs for HF: </h2>" << std::endl;
7660 <<
"<h3> Legends: Red boxes correspond BAD LS selected with cut = <td class=\"s6\" align=\"center\">"
7661 << cutA_HF << std::endl;
7665 htmlFile <<
"<br>" << std::endl;
7666 htmlFile <<
"<table>" << std::endl;
7668 htmlFile <<
"<td class=\"s4\" align=\"center\">LS</td>" << std::endl;
7670 htmlFile <<
"<td class=\"s1\" align=\"center\">Number of events</td>" << std::endl;
7674 for (
int k = 0; k < njphi; k++)
7675 htmlFile <<
"<td class=\"s1\" align=\"center\"> iPHI " << k <<
" </td>" << std::endl;
7676 htmlFile <<
"</tr>" << std::endl;
7681 for (
int i = 1; i <= MaxLum; i++) {
7683 raw_class =
"<td class=\"s2\" align=\"center\">";
7685 raw_class =
"<td class=\"s3\" align=\"center\">";
7686 htmlFile <<
"<tr>" << std::endl;
7687 htmlFile <<
"<td class=\"s4\" align=\"center\">" << i <<
"</td>" << std::endl;
7689 htmlFile << raw_class << LumiEv->GetBinContent(i) <<
"</td>" << std::endl;
7692 for (
int k = 0; k < njphi; k++) {
7694 if (
int(alexhb[k][i - 1]) > cutA_ALL) {
7695 htmlFile <<
"<td class=\"s6\" align=\"center\">" << int(alexhb[k][i - 1]) <<
"</td>" << std::endl;
7697 htmlFile << raw_class << int(alexhb[k][i - 1]) <<
"</td>" << std::endl;
7701 if (
int(alexhe[k][i - 1]) > cutA_ALL) {
7702 htmlFile <<
"<td class=\"s6\" align=\"center\">" << int(alexhe[k][i - 1]) <<
"</td>" << std::endl;
7704 htmlFile << raw_class << int(alexhe[k][i - 1]) <<
"</td>" << std::endl;
7708 if (
int(alexho[k][i - 1]) > cutA_ALL) {
7709 htmlFile <<
"<td class=\"s6\" align=\"center\">" << int(alexho[k][i - 1]) <<
"</td>" << std::endl;
7711 htmlFile << raw_class << int(alexho[k][i - 1]) <<
"</td>" << std::endl;
7715 if (
int(alexhf[k][i - 1]) > cutA_ALL) {
7716 htmlFile <<
"<td class=\"s6\" align=\"center\">" << int(alexhf[k][i - 1]) <<
"</td>" << std::endl;
7718 htmlFile << raw_class << int(alexhf[k][i - 1]) <<
"</td>" << std::endl;
7723 htmlFile <<
"</tr>" << std::endl;
7726 htmlFile <<
"</table>" << std::endl;
7727 htmlFile <<
"<br>" << std::endl;
7728 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7729 htmlFile <<
"<br>" << std::endl;
7732 htmlFile <<
"<a name=\"RBXETAtable\"></a>\n";
7736 htmlFile <<
"<h2> 11. Average RBX-Amplitude in Eta over LSs for HB: </h2>" << std::endl;
7738 <<
"<h3> Legends: Red boxes correspond BAD LS selected with cut = <td class=\"s6\" align=\"center\">"
7739 << cutB_HB << std::endl;
7743 htmlFile <<
"<h2> 11. Average RBX-Amplitude in Eta over LSs for HE: </h2>" << std::endl;
7745 <<
"<h3> Legends: Red boxes correspond BAD LS selected with cut = <td class=\"s6\" align=\"center\">"
7746 << cutB_HE << std::endl;
7750 htmlFile <<
"<h2> 11. Average RBX-Amplitude in Eta over LSs for HO: </h2>" << std::endl;
7752 <<
"<h3> Legends: Red boxes correspond BAD LS selected with cut = <td class=\"s6\" align=\"center\">"
7753 << cutB_HO << std::endl;
7757 htmlFile <<
"<h2> 11. Average RBX-Amplitude in Eta over LSs for HF: </h2>" << std::endl;
7759 <<
"<h3> Legends: Red boxes correspond BAD LS selected with cut = <td class=\"s6\" align=\"center\">"
7760 << cutB_HF << std::endl;
7764 htmlFile <<
"<br>" << std::endl;
7765 htmlFile <<
"<table>" << std::endl;
7767 htmlFile <<
"<td class=\"s4\" align=\"center\">LS</td>" << std::endl;
7769 htmlFile <<
"<td class=\"s1\" align=\"center\">Number of events</td>" << std::endl;
7773 for (
int k = 0; k < njeta; k++)
7774 htmlFile <<
"<td class=\"s1\" align=\"center\"> iETA " << k <<
" </td>" << std::endl;
7775 htmlFile <<
"</tr>" << std::endl;
7780 for (
int i = 1; i <= MaxLum; i++) {
7782 raw_class =
"<td class=\"s2\" align=\"center\">";
7784 raw_class =
"<td class=\"s3\" align=\"center\">";
7785 htmlFile <<
"<tr>" << std::endl;
7786 htmlFile <<
"<td class=\"s4\" align=\"center\">" << i <<
"</td>" << std::endl;
7788 htmlFile << raw_class << LumiEv->GetBinContent(i) <<
"</td>" << std::endl;
7791 for (
int k = 0; k < njeta; k++) {
7793 if (
int(blexhb[k][i - 1]) > cutB_ALL) {
7794 htmlFile <<
"<td class=\"s6\" align=\"center\">" << int(blexhb[k][i - 1]) <<
"</td>" << std::endl;
7796 htmlFile << raw_class << int(blexhb[k][i - 1]) <<
"</td>" << std::endl;
7800 if (
int(blexhe[k][i - 1]) > cutB_ALL) {
7801 htmlFile <<
"<td class=\"s6\" align=\"center\">" << int(blexhe[k][i - 1]) <<
"</td>" << std::endl;
7803 htmlFile << raw_class << int(blexhe[k][i - 1]) <<
"</td>" << std::endl;
7807 if (
int(blexho[k][i - 1]) > cutB_ALL) {
7808 htmlFile <<
"<td class=\"s6\" align=\"center\">" << int(blexho[k][i - 1]) <<
"</td>" << std::endl;
7810 htmlFile << raw_class << int(blexho[k][i - 1]) <<
"</td>" << std::endl;
7814 if (
int(blexhf[k][i - 1]) > cutB_ALL) {
7815 htmlFile <<
"<td class=\"s6\" align=\"center\">" << int(blexhf[k][i - 1]) <<
"</td>" << std::endl;
7817 htmlFile << raw_class << int(blexhf[k][i - 1]) <<
"</td>" << std::endl;
7822 htmlFile <<
"</tr>" << std::endl;
7825 htmlFile <<
"</table>" << std::endl;
7826 htmlFile <<
"<br>" << std::endl;
7827 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7828 htmlFile <<
"<br>" << std::endl;
7833 htmlFile <<
"<a name=\"RBX3plots\"></a>\n";
7834 htmlFile <<
"<br>\n";
7835 htmlFile <<
"<h2> 12. (Rij) - RBX-amplitudes normilized on reference LS (~=1st) </h2>" << std::endl;
7836 htmlFile <<
"<h3> ( Rji . . is ratio of . . . . A_j_i . . to . . A_j_ref . . . . for . . j-RBX . . and . . "
7840 htmlFile <<
"<br>\n";
7841 htmlFile <<
"<h2> . . . . . . . . . . . . . . 1) . average Ri vs iLS:. . . . . . . . . . . . . . . . . . . . . "
7842 ". . 2) . average Rj shown for Rij outside meanValue range either 0.95-1.05 or 3RMS: . . . . . . . "
7843 ". . . . . . . . . . . . . . . . . . 3) . Rij: </h2>"
7845 htmlFile <<
"<br>\n";
7847 htmlFile <<
" <img src=\"RBX-HB-3plots.png\" />\n";
7850 htmlFile <<
" <img src=\"RBX-HE-3plots.png\" />\n";
7853 htmlFile <<
" <img src=\"RBX-HO-3plots.png\" />\n";
7856 htmlFile <<
" <img src=\"RBX-HF-3plots.png\" />\n";
7858 htmlFile <<
"<br>\n";
7860 htmlFile <<
"<br>\n";
7861 htmlFile <<
"<h2> . 4). average Rj shown for Rij outside meanValue range 0.80-1.20: . . . . . . . .5) . "
7862 "average Rj shown for Rij outside meanValue range 0.70-1.30: . . . . . . . .6). average Rj shown "
7863 "for Rij outside meanValue range 0.60-1.40: </h2>"
7865 htmlFile <<
"<br>\n";
7867 htmlFile <<
" <img src=\"RBX-HB-3plotsmore.png\" />\n";
7870 htmlFile <<
" <img src=\"RBX-HE-3plotsmore.png\" />\n";
7873 htmlFile <<
" <img src=\"RBX-HO-3plotsmore.png\" />\n";
7876 htmlFile <<
" <img src=\"RBX-HF-3plotsmore.png\" />\n";
7878 htmlFile <<
"<br>\n";
7880 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
7900 for (
int test = 0; test <= 5; test++) {
7902 htmlFile.open(
"CapID_GL.html");
7904 htmlFile.open(
"ADCampl_GL.html");
7906 htmlFile.open(
"Width_GL.html");
7908 htmlFile.open(
"Ratio_GL.html");
7910 htmlFile.open(
"Tmean_GL.html");
7912 htmlFile.open(
"Tmax_GL.html");
7916 htmlFile <<
"</html><html xmlns=\"http://www.w3.org/1999/xhtml\">" << std::endl;
7917 htmlFile <<
"<head>" << std::endl;
7918 htmlFile <<
"<meta http-equiv=\"Content-Type\" content=\"text/html\"/>" << std::endl;
7919 htmlFile <<
"<title> Certification Monitoring Tool </title>" << std::endl;
7920 htmlFile <<
"<style type=\"text/css\">" << std::endl;
7921 htmlFile <<
" body,td{ background-color: #FFFFCC; font-family: arial, arial ce, helvetica; font-size: 12px; }"
7923 htmlFile <<
" td.s0 { font-family: arial, arial ce, helvetica; }" << std::endl;
7924 htmlFile <<
" td.s1 { font-family: arial, arial ce, helvetica; font-weight: bold; background-color: #FFC169; "
7925 "text-align: center;}"
7927 htmlFile <<
" td.s2 { font-family: arial, arial ce, helvetica; background-color: #eeeeee; }" << std::endl;
7928 htmlFile <<
" td.s3 { font-family: arial, arial ce, helvetica; background-color: #d0d0d0; }" << std::endl;
7929 htmlFile <<
" td.s4 { font-family: arial, arial ce, helvetica; background-color: #FFC169; }" << std::endl;
7930 htmlFile <<
" td.s5 { font-family: arial, arial ce, helvetica; background-color: #00FF00; }" << std::endl;
7931 htmlFile <<
" td.s6 { font-family: arial, arial ce, helvetica; background-color: #FF0000; }" << std::endl;
7932 htmlFile <<
"</style>" << std::endl;
7933 htmlFile <<
"<body>" << std::endl;
7935 htmlFile <<
"<h1> CAP ID ERRORS, GLOBAL RUN = " << runnumber <<
" </h1>" << std::endl;
7937 htmlFile <<
"<h1> ADC AMPLITIDE, GLOBAL RUN = " << runnumber <<
" </h1>" << std::endl;
7939 htmlFile <<
"<h1> WIDTH, GLOBAL RUN = " << runnumber <<
" </h1>" << std::endl;
7941 htmlFile <<
"<h1> RATIO, GLOBAL RUN = " << runnumber <<
" </h1>" << std::endl;
7943 htmlFile <<
"<h1> TIMING MEAN, GLOBAL RUN = " << runnumber <<
" </h1>" << std::endl;
7945 htmlFile <<
"<h1> TIMING MAX, GLOBAL RUN = " << runnumber <<
" </h1>" << std::endl;
7946 htmlFile <<
"<br>" << std::endl;
7947 htmlFile <<
"<h2> 1. Map of suspicious channels with this criterion for whole HCAL </h2>" << std::endl;
7948 htmlFile <<
"<h3> Channel legend: green - good, other colour - suspicious </h3>" << std::endl;
7949 htmlFile <<
"<br>" << std::endl;
7951 htmlFile <<
" <img src=\"MapCapIdError.png\" />" << std::endl;
7953 htmlFile <<
" <img src=\"MapADCAmpl.png\" />" << std::endl;
7955 htmlFile <<
" <img src=\"MapWidth.png\" />" << std::endl;
7957 htmlFile <<
" <img src=\"MapRatio.png\" />" << std::endl;
7959 htmlFile <<
" <img src=\"MapTmean.png\" />" << std::endl;
7961 htmlFile <<
" <img src=\"MapTmax.png\" />" << std::endl;
7962 htmlFile <<
"<br>" << std::endl;
7963 htmlFile <<
"<h2> 2. For whole HCAL: </h2>" << std::endl;
7964 htmlFile <<
"<br>" << std::endl;
7966 htmlFile <<
" <img src=\"HistCapID.png\" />" << std::endl;
7968 htmlFile <<
" <img src=\"HistADCAmpl.png\" />" << std::endl;
7970 htmlFile <<
" <img src=\"HistWidth.png\" />" << std::endl;
7972 htmlFile <<
" <img src=\"HistRatio.png\" />" << std::endl;
7974 htmlFile <<
" <img src=\"HistTmean.png\" />" << std::endl;
7976 htmlFile <<
" <img src=\"HistTmax.png\" />" << std::endl;
7977 htmlFile <<
"<br>" << std::endl;
7978 htmlFile <<
"<h2> 3. Status of subdetectors </h2>" << std::endl;
7979 htmlFile <<
"<table width=\"400\">" << std::endl;
7980 htmlFile <<
"<tr>" << std::endl;
7982 htmlFile <<
" <td><a "
7983 "href=\"https://cms-cpt-software.web.cern.ch/cms-cpt-software/General/Validation/SVSuite/"
7984 "HcalRemoteMonitoring/CMT/GLOBAL_"
7985 << runnumber <<
"/HB_CapID.html\">HB</a></td>" << std::endl;
7986 htmlFile <<
" <td><a "
7987 "href=\"https://cms-cpt-software.web.cern.ch/cms-cpt-software/General/Validation/SVSuite/"
7988 "HcalRemoteMonitoring/CMT/GLOBAL_"
7989 << runnumber <<
"/HE_CapID.html\">HE</a></td>" << std::endl;
7990 htmlFile <<
" <td><a "
7991 "href=\"https://cms-cpt-software.web.cern.ch/cms-cpt-software/General/Validation/SVSuite/"
7992 "HcalRemoteMonitoring/CMT/GLOBAL_"
7993 << runnumber <<
"/HO_CapID.html\">HO</a></td>" << std::endl;
7994 htmlFile <<
" <td><a "
7995 "href=\"https://cms-cpt-software.web.cern.ch/cms-cpt-software/General/Validation/SVSuite/"
7996 "HcalRemoteMonitoring/CMT/GLOBAL_"
7997 << runnumber <<
"/HF_CapID.html\">HF</a></td>" << std::endl;
8001 htmlFile <<
" <td><a href=\"HB_ADCampl.html\">HB</a></td>" << std::endl;
8002 htmlFile <<
" <td><a href=\"HE_ADCampl.html\">HE</a></td>" << std::endl;
8003 htmlFile <<
" <td><a href=\"HO_ADCampl.html\">HO</a></td>" << std::endl;
8004 htmlFile <<
" <td><a href=\"HF_ADCampl.html\">HF</a></td>" << std::endl;
8013 htmlFile <<
" <td><a "
8014 "href=\"https://cms-cpt-software.web.cern.ch/cms-cpt-software/General/Validation/SVSuite/"
8015 "HcalRemoteMonitoring/CMT/GLOBAL_"
8016 << runnumber <<
"/HB_Width.html\">HB</a></td>" << std::endl;
8017 htmlFile <<
" <td><a "
8018 "href=\"https://cms-cpt-software.web.cern.ch/cms-cpt-software/General/Validation/SVSuite/"
8019 "HcalRemoteMonitoring/CMT/GLOBAL_"
8020 << runnumber <<
"/HE_Width.html\">HE</a></td>" << std::endl;
8021 htmlFile <<
" <td><a "
8022 "href=\"https://cms-cpt-software.web.cern.ch/cms-cpt-software/General/Validation/SVSuite/"
8023 "HcalRemoteMonitoring/CMT/GLOBAL_"
8024 << runnumber <<
"/HO_Width.html\">HO</a></td>" << std::endl;
8025 htmlFile <<
" <td><a "
8026 "href=\"https://cms-cpt-software.web.cern.ch/cms-cpt-software/General/Validation/SVSuite/"
8027 "HcalRemoteMonitoring/CMT/GLOBAL_"
8028 << runnumber <<
"/HF_Width.html\">HF</a></td>" << std::endl;
8031 htmlFile <<
" <td><a "
8032 "href=\"https://cms-cpt-software.web.cern.ch/cms-cpt-software/General/Validation/SVSuite/"
8033 "HcalRemoteMonitoring/CMT/GLOBAL_"
8034 << runnumber <<
"/HB_Ratio.html\">HB</a></td>" << std::endl;
8035 htmlFile <<
" <td><a "
8036 "href=\"https://cms-cpt-software.web.cern.ch/cms-cpt-software/General/Validation/SVSuite/"
8037 "HcalRemoteMonitoring/CMT/GLOBAL_"
8038 << runnumber <<
"/HE_Ratio.html\">HE</a></td>" << std::endl;
8039 htmlFile <<
" <td><a "
8040 "href=\"https://cms-cpt-software.web.cern.ch/cms-cpt-software/General/Validation/SVSuite/"
8041 "HcalRemoteMonitoring/CMT/GLOBAL_"
8042 << runnumber <<
"/HO_Ratio.html\">HO</a></td>" << std::endl;
8043 htmlFile <<
" <td><a "
8044 "href=\"https://cms-cpt-software.web.cern.ch/cms-cpt-software/General/Validation/SVSuite/"
8045 "HcalRemoteMonitoring/CMT/GLOBAL_"
8046 << runnumber <<
"/HF_Ratio.html\">HF</a></td>" << std::endl;
8049 htmlFile <<
" <td><a "
8050 "href=\"https://cms-cpt-software.web.cern.ch/cms-cpt-software/General/Validation/SVSuite/"
8051 "HcalRemoteMonitoring/CMT/GLOBAL_"
8052 << runnumber <<
"/HB_Tmean.html\">HB</a></td>" << std::endl;
8053 htmlFile <<
" <td><a "
8054 "href=\"https://cms-cpt-software.web.cern.ch/cms-cpt-software/General/Validation/SVSuite/"
8055 "HcalRemoteMonitoring/CMT/GLOBAL_"
8056 << runnumber <<
"/HE_Tmean.html\">HE</a></td>" << std::endl;
8057 htmlFile <<
" <td><a "
8058 "href=\"https://cms-cpt-software.web.cern.ch/cms-cpt-software/General/Validation/SVSuite/"
8059 "HcalRemoteMonitoring/CMT/GLOBAL_"
8060 << runnumber <<
"/HO_Tmean.html\">HO</a></td>" << std::endl;
8061 htmlFile <<
" <td><a "
8062 "href=\"https://cms-cpt-software.web.cern.ch/cms-cpt-software/General/Validation/SVSuite/"
8063 "HcalRemoteMonitoring/CMT/GLOBAL_"
8064 << runnumber <<
"/HF_Tmean.html\">HF</a></td>" << std::endl;
8067 htmlFile <<
" <td><a "
8068 "href=\"https://cms-cpt-software.web.cern.ch/cms-cpt-software/General/Validation/SVSuite/"
8069 "HcalRemoteMonitoring/CMT/GLOBAL_"
8070 << runnumber <<
"/HB_Tmax.html\">HB</a></td>" << std::endl;
8071 htmlFile <<
" <td><a "
8072 "href=\"https://cms-cpt-software.web.cern.ch/cms-cpt-software/General/Validation/SVSuite/"
8073 "HcalRemoteMonitoring/CMT/GLOBAL_"
8074 << runnumber <<
"/HE_Tmax.html\">HE</a></td>" << std::endl;
8075 htmlFile <<
" <td><a "
8076 "href=\"https://cms-cpt-software.web.cern.ch/cms-cpt-software/General/Validation/SVSuite/"
8077 "HcalRemoteMonitoring/CMT/GLOBAL_"
8078 << runnumber <<
"/HO_Tmax.html\">HO</a></td>" << std::endl;
8079 htmlFile <<
" <td><a "
8080 "href=\"https://cms-cpt-software.web.cern.ch/cms-cpt-software/General/Validation/SVSuite/"
8081 "HcalRemoteMonitoring/CMT/GLOBAL_"
8082 << runnumber <<
"/HF_Tmax.html\">HF</a></td>" << std::endl;
8085 htmlFile <<
"</tr>" << std::endl;
8086 htmlFile <<
"</table>" << std::endl;
8087 htmlFile <<
"<br>" << std::endl;
8091 htmlFile <<
"<h2> 4. Table of estimator-values in sub-detectors for ONLY suspicious LSs </h3>" << std::endl;
8093 htmlFile <<
"<h2> 4. Table of average Nbcs in sub-detectors for ONLY suspicious LSs </h3>" << std::endl;
8094 htmlFile <<
"<table>" << std::endl;
8096 htmlFile <<
"<td class=\"s4\" align=\"center\">LS</td>" << std::endl;
8098 htmlFile <<
"<td class=\"s1\" align=\"center\">Number of events</td>" << std::endl;
8100 for (
int sub = 1; sub <= 4; sub++) {
8103 int kkkkkkmax = k_max[sub];
8104 if ((sub == 4 || sub == 2 || sub == 1) && test == 1)
8105 kkkkkkmax = k_maxupgrade[sub];
8110 for (
int k = k_min[sub]; k <= kkkkkkmax; k++)
8111 htmlFile <<
"<td class=\"s1\" align=\"center\">< Nbcs > HBdep " << k <<
" </td>" << std::endl;
8113 for (
int k = k_min[sub]; k <= kkkkkkmax; k++)
8114 htmlFile <<
"<td class=\"s1\" align=\"center\">< A > HBdepth " << k <<
" </td>" << std::endl;
8116 for (
int k = k_min[sub]; k <= kkkkkkmax; k++)
8117 htmlFile <<
"<td class=\"s1\" align=\"center\">< W > HBdepth " << k <<
" </td>" << std::endl;
8119 for (
int k = k_min[sub]; k <= kkkkkkmax; k++)
8120 htmlFile <<
"<td class=\"s1\" align=\"center\">< R > HBdepth " << k <<
" </td>" << std::endl;
8122 for (
int k = k_min[sub]; k <= kkkkkkmax; k++)
8123 htmlFile <<
"<td class=\"s1\" align=\"center\">< TSn > HBdep " << k <<
" </td>" << std::endl;
8125 for (
int k = k_min[sub]; k <= kkkkkkmax; k++)
8126 htmlFile <<
"<td class=\"s1\" align=\"center\">< TSx > HBdep " << k <<
" </td>" << std::endl;
8130 for (
int k = k_min[sub]; k <= kkkkkkmax; k++)
8131 htmlFile <<
"<td class=\"s1\" align=\"center\">< Nbcs > HEdep " << k <<
" </td>" << std::endl;
8133 for (
int k = k_min[sub]; k <= kkkkkkmax; k++)
8134 htmlFile <<
"<td class=\"s1\" align=\"center\">< A > HEdepth " << k <<
" </td>" << std::endl;
8136 for (
int k = k_min[sub]; k <= kkkkkkmax; k++)
8137 htmlFile <<
"<td class=\"s1\" align=\"center\">< W > HEdepth " << k <<
" </td>" << std::endl;
8139 for (
int k = k_min[sub]; k <= kkkkkkmax; k++)
8140 htmlFile <<
"<td class=\"s1\" align=\"center\">< R > HEdepth " << k <<
" </td>" << std::endl;
8142 for (
int k = k_min[sub]; k <= kkkkkkmax; k++)
8143 htmlFile <<
"<td class=\"s1\" align=\"center\">< TSn > HEdep " << k <<
" </td>" << std::endl;
8145 for (
int k = k_min[sub]; k <= kkkkkkmax; k++)
8146 htmlFile <<
"<td class=\"s1\" align=\"center\">< TSx > HEdep " << k <<
" </td>" << std::endl;
8150 for (
int k = k_min[sub]; k <= kkkkkkmax; k++)
8151 htmlFile <<
"<td class=\"s1\" align=\"center\">< Nbcs > HOdep " << k <<
" </td>" << std::endl;
8153 for (
int k = k_min[sub]; k <= kkkkkkmax; k++)
8154 htmlFile <<
"<td class=\"s1\" align=\"center\">< A > HOdepth " << k <<
" </td>" << std::endl;
8156 for (
int k = k_min[sub]; k <= kkkkkkmax; k++)
8157 htmlFile <<
"<td class=\"s1\" align=\"center\">< W > HOdepth " << k <<
" </td>" << std::endl;
8159 for (
int k = k_min[sub]; k <= kkkkkkmax; k++)
8160 htmlFile <<
"<td class=\"s1\" align=\"center\">< R > HOdepth " << k <<
" </td>" << std::endl;
8162 for (
int k = k_min[sub]; k <= kkkkkkmax; k++)
8163 htmlFile <<
"<td class=\"s1\" align=\"center\">< TSn > HOdep " << k <<
" </td>" << std::endl;
8165 for (
int k = k_min[sub]; k <= kkkkkkmax; k++)
8166 htmlFile <<
"<td class=\"s1\" align=\"center\">< TSx > HOdep " << k <<
" </td>" << std::endl;
8170 for (
int k = k_min[sub]; k <= kkkkkkmax; k++)
8171 htmlFile <<
"<td class=\"s1\" align=\"center\">< Nbcs > HFdep " << k <<
" </td>" << std::endl;
8173 for (
int k = k_min[sub]; k <= kkkkkkmax; k++)
8174 htmlFile <<
"<td class=\"s1\" align=\"center\">< A > HFdepth " << k <<
" </td>" << std::endl;
8176 for (
int k = k_min[sub]; k <= kkkkkkmax; k++)
8177 htmlFile <<
"<td class=\"s1\" align=\"center\">< W > HFdepth " << k <<
" </td>" << std::endl;
8179 for (
int k = k_min[sub]; k <= kkkkkkmax; k++)
8180 htmlFile <<
"<td class=\"s1\" align=\"center\">< R > HFdepth " << k <<
" </td>" << std::endl;
8182 for (
int k = k_min[sub]; k <= kkkkkkmax; k++)
8183 htmlFile <<
"<td class=\"s1\" align=\"center\">< TSn > HFdep " << k <<
" </td>" << std::endl;
8185 for (
int k = k_min[sub]; k <= kkkkkkmax; k++)
8186 htmlFile <<
"<td class=\"s1\" align=\"center\">< TSx > HFdep " << k <<
" </td>" << std::endl;
8189 htmlFile <<
"</tr>" << std::endl;
8209 for (
int i = 1; i <= MaxLum; i++) {
8212 for (
int sub = 1; sub <= 4; sub++) {
8213 int kkkkkkmax = k_max[sub];
8214 if ((sub == 4 || sub == 2 || sub == 1) && test == 1)
8215 kkkkkkmax = k_maxupgrade[sub];
8217 for (
int k = k_min[sub]; k <= kkkkkkmax; k++) {
8219 if (sub == 2 && k > 3) {
8221 if (HistNumBadChanDepth[test][sub][k]->GetBinContent(i) > Cut0[test][sub][k])
8229 raw_class =
"<td class=\"s2\" align=\"center\">";
8231 raw_class =
"<td class=\"s3\" align=\"center\">";
8232 htmlFile <<
"<tr>" << std::endl;
8233 htmlFile <<
"<td class=\"s4\" align=\"center\">" << i <<
"</td>" << std::endl;
8235 htmlFile << raw_class << LumiEv->GetBinContent(i) <<
"</td>" << std::endl;
8236 for (
int sub = 1; sub <= 4; sub++) {
8237 int kkkkkkmax = k_max[sub];
8238 if ((sub == 4 || sub == 2 || sub == 1) && test == 1)
8239 kkkkkkmax = k_maxupgrade[sub];
8241 for (
int k = k_min[sub]; k <= kkkkkkmax; k++) {
8242 if (HistNumBadChanDepth[test][sub][k]->GetBinContent(i) > Cut0[test][sub][k])
8243 htmlFile <<
"<td class=\"s6\" align=\"center\">" << HistNumBadChanDepth[
test][sub][
k]->GetBinContent(i)
8244 <<
"</td>" << std::endl;
8246 htmlFile << raw_class << HistNumBadChanDepth[
test][sub][
k]->GetBinContent(i) <<
"</td>" << std::endl;
8276 htmlFile <<
"</tr>" << std::endl;
8281 htmlFile <<
"</table>" << std::endl;
8282 htmlFile <<
"<br>" << std::endl;
8283 htmlFile <<
"</body> " << std::endl;
8284 htmlFile <<
"</html> " << std::endl;
8291 htmlFile.open(
"SummedAmplitudes_GL.html");
8292 htmlFile <<
"</html><html xmlns=\"http://www.w3.org/1999/xhtml\">" << std::endl;
8293 htmlFile <<
"<head>" << std::endl;
8294 htmlFile <<
"<meta http-equiv=\"Content-Type\" content=\"text/html\"/>" << std::endl;
8295 htmlFile <<
"<title> for summed Amplitudes of each sub-detector </title>" << std::endl;
8296 htmlFile <<
"<style type=\"text/css\">" << std::endl;
8297 htmlFile <<
" body,td{ background-color: #FFFFCC; font-family: arial, arial ce, helvetica; font-size: 12px; }"
8299 htmlFile <<
" td.s0 { font-family: arial, arial ce, helvetica; }" << std::endl;
8300 htmlFile <<
" td.s1 { font-family: arial, arial ce, helvetica; font-weight: bold; background-color: #FFC169; "
8301 "text-align: center;}"
8303 htmlFile <<
" td.s2 { font-family: arial, arial ce, helvetica; background-color: #eeeeee; }" << std::endl;
8304 htmlFile <<
" td.s3 { font-family: arial, arial ce, helvetica; background-color: #d0d0d0; }" << std::endl;
8305 htmlFile <<
" td.s4 { font-family: arial, arial ce, helvetica; background-color: #FFC169; }" << std::endl;
8306 htmlFile <<
" td.s5 { font-family: arial, arial ce, helvetica; background-color: #00FF00; }" << std::endl;
8307 htmlFile <<
" td.s6 { font-family: arial, arial ce, helvetica; background-color: #FF0000; }" << std::endl;
8309 htmlFile <<
"</style>" << std::endl;
8310 htmlFile <<
"<body>" << std::endl;
8311 htmlFile <<
"<h1> Averaged Summed Amplitudes & corresponding occupancy of each sub-detector in Global Run = "
8312 << runnumber <<
" </h1>" << std::endl;
8313 htmlFile <<
"<a name=\"Top\"></a>\n";
8314 htmlFile <<
"<b>Contents:<br>\n";
8315 htmlFile <<
"1. <a href=\"#SAhigh\">average SA&Occupancy for Signal </a><br>\n";
8316 htmlFile <<
"2. <a href=\"#SAlow\">average SA&Occupancy for NoSignal </a><br>\n";
8317 htmlFile <<
"3. <a href=\"#SAmax\"> maxSA & maxOccupancy; SA & Occupancy; </a><br>\n";
8318 htmlFile <<
"4. <a href=\"#FullTable\">Table(avA; avSA; avOccupancy; maxSA; maxOccupancy;) </a><br>\n";
8320 htmlFile <<
"<h2> Clarifying on averaged Summed Amplitude (avSA) : </h2>" << std::endl;
8321 htmlFile <<
"<h3> Summed Amplitudes (SA) are averaged over all events of each LS: avSA_LS = SUM (SA_eventsInLS) / "
8322 "N_eventsInLS ,</h3>"
8324 htmlFile <<
"<h3> where SA = SUM(A_i) ,and means that Amplitude is summed over all sub-detector channels, </h3>"
8326 htmlFile <<
"<h3> where A_i = SUM(A_depth) denotes channel amplitude summed over depths; </h3>" << std::endl;
8328 htmlFile <<
" <td><a "
8329 "href=\"https://cms-cpt-software.web.cern.ch/cms-cpt-software/General/Validation/SVSuite/"
8330 "HcalRemoteMonitoring/CMT/SAwriteup.html\"> see more details for SummedAmplitudes</a></td>"
8332 htmlFile <<
"<h2> Apply cuts on A_i to take into account channels with or/and without a'la Signal: </h2>"
8334 htmlFile <<
" <img src=\"ChannelDepthsummedAmplitudes.png\" />" << std::endl;
8335 htmlFile <<
"<br>" << std::endl;
8336 htmlFile <<
"<br>" << std::endl;
8337 htmlFile <<
"<a name=\"SAhigh\"></a>\n";
8338 htmlFile <<
"<h1> 1. for channels with signal </h1>" << std::endl;
8339 htmlFile <<
"<br>" << std::endl;
8340 htmlFile <<
"<h2> for HB: A_i> 80; </h2>" << std::endl;
8341 htmlFile <<
" <img src=\"SummedAmplitudesSignal_HB.png\" />" << std::endl;
8342 htmlFile <<
"<br>" << std::endl;
8343 htmlFile <<
"<h2> for HE: A_i> 200;</h2>" << std::endl;
8344 htmlFile <<
" <img src=\"SummedAmplitudesSignal_HE.png\" />" << std::endl;
8345 htmlFile <<
"<br>" << std::endl;
8346 htmlFile <<
"<h2> for HO: A_i> 1200;</h2>" << std::endl;
8347 htmlFile <<
" <img src=\"SummedAmplitudesSignal_HO.png\" />" << std::endl;
8348 htmlFile <<
"<br>" << std::endl;
8349 htmlFile <<
"<h2> for HF: A_i> 600;</h2>" << std::endl;
8350 htmlFile <<
" <img src=\"SummedAmplitudesSignal_HF.png\" />" << std::endl;
8351 htmlFile <<
"<br>" << std::endl;
8352 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
8354 htmlFile <<
"<a name=\"SAlow\"></a>\n";
8355 htmlFile <<
"<h1> 2. for channels w/o signal </h1>" << std::endl;
8356 htmlFile <<
"<br>" << std::endl;
8357 htmlFile <<
"<h2> for HB: A_i< 80;</h2>" << std::endl;
8358 htmlFile <<
" <img src=\"NoSignalSummedAmplitudes_HB.png\" />" << std::endl;
8359 htmlFile <<
"<br>" << std::endl;
8360 htmlFile <<
"<h2> for HE: A_i< 200;</h2>" << std::endl;
8361 htmlFile <<
" <img src=\"NoSignalSummedAmplitudes_HE.png\" />" << std::endl;
8362 htmlFile <<
"<br>" << std::endl;
8363 htmlFile <<
"<h2> for HO: A_i< 1200;</h2>" << std::endl;
8364 htmlFile <<
" <img src=\"NoSignalSummedAmplitudes_HO.png\" />" << std::endl;
8365 htmlFile <<
"<br>" << std::endl;
8366 htmlFile <<
"<h2> for HF: A_i< 600;</h2>" << std::endl;
8367 htmlFile <<
" <img src=\"NoSignalSummedAmplitudes_HF.png\" />" << std::endl;
8368 htmlFile <<
"<br>" << std::endl;
8369 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
8371 htmlFile <<
"<br>" << std::endl;
8372 htmlFile <<
"<br>" << std::endl;
8373 htmlFile <<
"<a name=\"SAmax\"></a>\n";
8374 htmlFile <<
"<h1> 3. four plots: ---1---> max SA ---2---> max Occupancy ---3---> SA ---4---> Occupancy over all "
8375 "events of LS </h1>"
8377 htmlFile <<
"<br>" << std::endl;
8379 htmlFile <<
"<h2> for HB: maxSA vs LS, masOccupancy vs LS, SA, Occupancy </h2>" << std::endl;
8380 htmlFile <<
" <img src=\"MaxxSummedAmplitudes_HB.png\" />" << std::endl;
8382 " ......(forCut:SAmax>60000) N= "
8383 << countamplmaxHB <<
" ...... (forCut:OCCUPmax>2000) N= " << countoccumaxHB <<
" </h2>" << std::endl;
8385 " ......(forCut:SA>60000) N= "
8386 << countamplHB <<
" ...... (forCut:OCCUP>2000) N= " << countoccuHB <<
" </h2>" << std::endl;
8387 htmlFile <<
"<br>" << std::endl;
8388 htmlFile <<
"<h3> ONLY for HB (cross-check): channel Amplitudes for events in the Tail (averaged): </h3>"
8390 htmlFile <<
" <img src=\"AtaildepthHB.png\" />" << std::endl;
8391 htmlFile <<
"<br>" << std::endl;
8393 htmlFile <<
"<h2> for HE: maxSA vs LS, masOccupancy vs LS, SA, Occupancy </h2>" << std::endl;
8394 htmlFile <<
" <img src=\"MaxxSummedAmplitudes_HE.png\" />" << std::endl;
8396 " ......(forCut:SAmax>60000) N= "
8397 << countamplmaxHE <<
" ...... (forCut:OCCUPmax>1200) N= " << countoccumaxHE <<
" </h2>" << std::endl;
8399 " ......(forCut:SA>60000) N= "
8400 << countamplHE <<
" ...... (forCut:OCCUP>1200) N= " << countoccuHE <<
" </h2>" << std::endl;
8401 htmlFile <<
"<br>" << std::endl;
8403 htmlFile <<
"<h2> for HO: maxSA vs LS, masOccupancy vs LS, SA, Occupancy </h2>" << std::endl;
8404 htmlFile <<
" <img src=\"MaxxSummedAmplitudes_HO.png\" />" << std::endl;
8406 " ......(forCut:SAmax>150000) N= "
8407 << countamplmaxHO <<
" ...... (forCut:OCCUPmax>2000) N= " << countoccumaxHO <<
" </h2>" << std::endl;
8409 " ......(forCut:SA>150000) N= "
8410 << countamplHO <<
" ...... (forCut:OCCUP>2000) N= " << countoccuHO <<
" </h2>" << std::endl;
8411 htmlFile <<
"<br>" << std::endl;
8413 htmlFile <<
"<h2> for HF: maxSA vs LS, masOccupancy vs LS, SA, Occupancy </h2>" << std::endl;
8414 htmlFile <<
" <img src=\"MaxxSummedAmplitudes_HF.png\" />" << std::endl;
8416 " ......(forCut:SAmax>22000) N= "
8417 << countamplmaxHF <<
" ...... (forCut:OCCUPmax>860) N= " << countoccumaxHF <<
" </h2>" << std::endl;
8419 " ......(forCut:SA>22000) N= "
8420 << countamplHF <<
" ...... (forCut:OCCUP>860) N= " << countoccuHF <<
" </h2>" << std::endl;
8421 htmlFile <<
"<br>" << std::endl;
8422 htmlFile <<
"<h2> Occupancy HF (ONLY) vs LS </h2>" << std::endl;
8423 htmlFile <<
" <img src=\"sumOccupancyHF.png\" />" << std::endl;
8424 htmlFile <<
"<br>" << std::endl;
8425 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
8427 htmlFile <<
"<a name=\"FullTable\"></a>\n";
8428 htmlFile <<
"<h2> 4.Lumisection Status: </h2>" << std::endl;
8429 htmlFile <<
"<h3> Legends: HBdepth1 red boxes correspond LSs selected with cut: <td class=\"s6\" align=\"center\">"
8430 << Cut0[1][1][1] << std::endl;
8431 htmlFile <<
"<h3> Legends: HEdepth1 red boxes correspond LSs selected with cut: <td class=\"s6\" align=\"center\">"
8432 << Cut0[1][2][1] << std::endl;
8433 htmlFile <<
"<h3> Legends: HOdepth4 red boxes correspond LSs selected with cut: <td class=\"s6\" align=\"center\">"
8434 << Cut0[1][3][4] << std::endl;
8435 htmlFile <<
"<h3> Legends: HFdepth1 red boxes correspond LSs selected with cut: <td class=\"s6\" align=\"center\">"
8436 << Cut0[1][4][1] << std::endl;
8437 htmlFile <<
"<br>" << std::endl;
8439 htmlFile <<
"<br>" << std::endl;
8440 htmlFile <<
"<table>" << std::endl;
8442 htmlFile <<
"<td class=\"s4\" align=\"center\">LS</td>" << std::endl;
8444 htmlFile <<
"<td class=\"s1\" align=\"center\"> Num.of ev.</td>" << std::endl;
8449 htmlFile <<
"<td class=\"s1\" align=\"center\">< A >HB Depth1</td>" << std::endl;
8450 htmlFile <<
"<td class=\"s1\" align=\"center\">< A >HE Depth1</td>" << std::endl;
8451 htmlFile <<
"<td class=\"s1\" align=\"center\">< A >HO Depth4</td>" << std::endl;
8452 htmlFile <<
"<td class=\"s1\" align=\"center\">< A >HF Depth1</td>" << std::endl;
8454 htmlFile <<
"<td class=\"s1\" align=\"center\">< SA >HB (Signal) </td>" << std::endl;
8455 htmlFile <<
"<td class=\"s1\" align=\"center\">< Occup. > HB (Signal) </td>" << std::endl;
8456 htmlFile <<
"<td class=\"s1\" align=\"center\">< SA >HF (Signal) </td>" << std::endl;
8457 htmlFile <<
"<td class=\"s1\" align=\"center\">< Occup. > HF (Signal) </td>" << std::endl;
8459 htmlFile <<
"<td class=\"s1\" align=\"center\">< SA >HB (NoSignal) </td>" << std::endl;
8460 htmlFile <<
"<td class=\"s1\" align=\"center\">< Occup. > HB (NoSignal) </td>" << std::endl;
8461 htmlFile <<
"<td class=\"s1\" align=\"center\">< SA >HF (NoSignal) </td>" << std::endl;
8462 htmlFile <<
"<td class=\"s1\" align=\"center\">< Occup. > HF (NoSignal) </td>" << std::endl;
8464 htmlFile <<
"<td class=\"s1\" align=\"center\"> maxSA HB </td>" << std::endl;
8465 htmlFile <<
"<td class=\"s1\" align=\"center\"> maxOccup. HB </td>" << std::endl;
8466 htmlFile <<
"<td class=\"s1\" align=\"center\"> maxSA HF </td>" << std::endl;
8467 htmlFile <<
"<td class=\"s1\" align=\"center\"> maxOccup. HF </td>" << std::endl;
8469 htmlFile <<
"</tr>" << std::endl;
8472 for (
int i = 1; i <= MaxLum; i++) {
8474 raw_class =
"<td class=\"s2\" align=\"center\">";
8476 raw_class =
"<td class=\"s3\" align=\"center\">";
8477 htmlFile <<
"<tr>" << std::endl;
8479 htmlFile <<
"<td class=\"s4\" align=\"center\">" << i <<
"</td>" << std::endl;
8482 htmlFile << raw_class << LumiEv->GetBinContent(i) <<
"</td>" << std::endl;
8487 for (
int sub = 1; sub <= 4; sub++) {
8488 for (
int k = k_min[sub]; k <= k_min[sub]; k++) {
8489 if (HistNumBadChanDepth[test][sub][k]->GetBinContent(i) > Cut0[test][sub][k])
8490 htmlFile <<
"<td class=\"s6\" align=\"center\">" << HistNumBadChanDepth[
test][sub][
k]->GetBinContent(i)
8491 <<
"</td>" << std::endl;
8494 htmlFile << raw_class << HistNumBadChanDepth[
test][sub][
k]->GetBinContent(i) <<
"</td>" << std::endl;
8497 if (SummedAmplitudeHisto[0]) {
8498 htmlFile << raw_class << SummedAmplitudeHisto[0]->GetBinContent(i) <<
"</td>" << std::endl;
8499 htmlFile << raw_class << SummedAmplitudeOccupancyHisto[0]->GetBinContent(i) <<
"</td>" << std::endl;
8500 htmlFile << raw_class << SummedAmplitudeHisto[3]->GetBinContent(i) <<
"</td>" << std::endl;
8501 htmlFile << raw_class << SummedAmplitudeOccupancyHisto[3]->GetBinContent(i) <<
"</td>" << std::endl;
8503 htmlFile << raw_class << NoSignalSummedAmplitudeHisto[0]->GetBinContent(i) <<
"</td>" << std::endl;
8504 htmlFile << raw_class << NoSignalSummedAmplitudeOccupancyHisto[0]->GetBinContent(i) <<
"</td>" << std::endl;
8505 htmlFile << raw_class << NoSignalSummedAmplitudeHisto[3]->GetBinContent(i) <<
"</td>" << std::endl;
8506 htmlFile << raw_class << NoSignalSummedAmplitudeOccupancyHisto[3]->GetBinContent(i) <<
"</td>" << std::endl;
8508 htmlFile << raw_class << MaxxSummedAmplitudeHisto[0]->GetBinContent(i) <<
"</td>" << std::endl;
8509 htmlFile << raw_class << MaxxSummedAmplitudeOccupancyHisto[0]->GetBinContent(i) <<
"</td>" << std::endl;
8510 htmlFile << raw_class << MaxxSummedAmplitudeHisto[3]->GetBinContent(i) <<
"</td>" << std::endl;
8511 htmlFile << raw_class << MaxxSummedAmplitudeOccupancyHisto[3]->GetBinContent(i) <<
"</td>" << std::endl;
8513 htmlFile <<
"</tr>" << std::endl;
8516 htmlFile <<
"</table>" << std::endl;
8517 htmlFile <<
"<a href=\"#Top\">to top</a><br>\n";
8519 htmlFile <<
"<br>" << std::endl;
8520 htmlFile <<
"</body> " << std::endl;
8521 htmlFile <<
"</html> " << std::endl;
8563 htmlFile.open(
"CMTresults.html");
8564 htmlFile <<
"</html><html xmlns=\"http://www.w3.org/1999/xhtml\">" << std::endl;
8565 htmlFile <<
"<head>" << std::endl;
8566 htmlFile <<
"<meta http-equiv=\"Content-Type\" content=\"text/html\"/>" << std::endl;
8567 htmlFile <<
"<title> Certification Monitoring Tool </title>" << std::endl;
8568 htmlFile <<
"<style type=\"text/css\">" << std::endl;
8569 htmlFile <<
" body,td{ background-color: #FFFFCC; font-family: arial, arial ce, helvetica; font-size: 12px; }"
8571 htmlFile <<
" td.s0 { font-family: arial, arial ce, helvetica; }" << std::endl;
8572 htmlFile <<
" td.s1 { font-family: arial, arial ce, helvetica; font-weight: bold; background-color: #FFC169; "
8573 "text-align: center;}"
8575 htmlFile <<
" td.s2 { font-family: arial, arial ce, helvetica; background-color: #eeeeee; }" << std::endl;
8576 htmlFile <<
" td.s3 { font-family: arial, arial ce, helvetica; background-color: #d0d0d0; }" << std::endl;
8577 htmlFile <<
" td.s4 { font-family: arial, arial ce, helvetica; background-color: #FFC169; }" << std::endl;
8578 htmlFile <<
"</style>" << std::endl;
8579 htmlFile <<
"<body>" << std::endl;
8580 htmlFile <<
"<h1> LS-certification (recommendation) from analysis of CMT-dependencies of THIS run </h1>"
8582 htmlFile <<
"<br>" << std::endl;
8583 htmlFile <<
"<br>" << std::endl;
8584 htmlFile <<
"<h2> - List of suspicious LSs: </h2> " << std::endl;
8585 htmlFile <<
"<br>" << std::endl;
8586 htmlFile <<
"<h3> to be added </h3> " << std::endl;
8587 htmlFile <<
"<br>" << std::endl;
8588 htmlFile <<
"<br>" << std::endl;
8589 htmlFile <<
"<br>" << std::endl;
8590 htmlFile <<
"<h2> - Comments: </h2> " << std::endl;
8591 htmlFile <<
"<br>" << std::endl;
8592 htmlFile <<
"<h3> to be added </h3> " << std::endl;
8593 htmlFile <<
"<br>" << std::endl;
8594 htmlFile <<
"<br>" << std::endl;
8595 htmlFile <<
"<br>" << std::endl;
8596 htmlFile <<
"</body> " << std::endl;
8597 htmlFile <<
"</html> " << std::endl;
8603 htmlFile.open(
"LumiList.html");
8604 htmlFile <<
"</html><html xmlns=\"http://www.w3.org/1999/xhtml\">" << std::endl;
8605 htmlFile <<
"<head>" << std::endl;
8606 htmlFile <<
"<meta http-equiv=\"Content-Type\" content=\"text/html\"/>" << std::endl;
8607 htmlFile <<
"<title> Certification Monitoring Tool </title>" << std::endl;
8608 htmlFile <<
"<style type=\"text/css\">" << std::endl;
8609 htmlFile <<
" body,td{ background-color: #FFFFCC; font-family: arial, arial ce, helvetica; font-size: 12px; }"
8611 htmlFile <<
" td.s0 { font-family: arial, arial ce, helvetica; }" << std::endl;
8612 htmlFile <<
" td.s1 { font-family: arial, arial ce, helvetica; font-weight: bold; background-color: #FFC169; "
8613 "text-align: center;}"
8615 htmlFile <<
" td.s2 { font-family: arial, arial ce, helvetica; background-color: #eeeeee; }" << std::endl;
8616 htmlFile <<
" td.s3 { font-family: arial, arial ce, helvetica; background-color: #d0d0d0; }" << std::endl;
8617 htmlFile <<
" td.s4 { font-family: arial, arial ce, helvetica; background-color: #FFC169; }" << std::endl;
8618 htmlFile <<
" td.s5 { font-family: arial, arial ce, helvetica; background-color: #00FF00; }" << std::endl;
8619 htmlFile <<
" td.s6 { font-family: arial, arial ce, helvetica; background-color: #FF0000; }" << std::endl;
8621 htmlFile <<
"</style>" << std::endl;
8622 htmlFile <<
"<body>" << std::endl;
8624 htmlFile <<
"<h1> Certification Monitoring Tool, GLOBAL RUN = " << runnumber <<
". </h1>" << std::endl;
8625 htmlFile <<
"<br>" << std::endl;
8626 htmlFile <<
" <td><a "
8627 "href=\"https://cms-cpt-software.web.cern.ch/cms-cpt-software/General/Validation/SVSuite/"
8628 "HcalRemoteMonitoring/CMT/GLOBAL_"
8629 << runnumber <<
"/CMTresults.html\"> CMT-analysis RESULTS (for this run) </a></td>" << std::endl;
8630 htmlFile <<
"<br>" << std::endl;
8631 htmlFile <<
"<br>" << std::endl;
8634 htmlFile <<
"<h2> 1. General information (Full number of LS = " << MaxLum <<
" ). </h2>" << std::endl;
8635 htmlFile <<
" <img src=\"LumiEvent.png\" />" << std::endl;
8636 htmlFile <<
"<br>" << std::endl;
8638 htmlFile <<
"<h2> 2. HCAL status for different criteria </h2>" << std::endl;
8640 htmlFile <<
" <td><a "
8641 "href=\"https://cms-cpt-software.web.cern.ch/cms-cpt-software/General/Validation/SVSuite/"
8642 "HcalRemoteMonitoring/CMT/HELP.html\"> Description of criteria for bad channel selection</a></td>"
8644 htmlFile <<
"<br>" << std::endl;
8645 htmlFile <<
"<table width=\"600\">" << std::endl;
8646 htmlFile <<
"<tr>" << std::endl;
8647 htmlFile <<
" <td><a "
8648 "href=\"https://cms-cpt-software.web.cern.ch/cms-cpt-software/General/Validation/SVSuite/"
8649 "HcalRemoteMonitoring/CMT/GLOBAL_"
8650 << runnumber <<
"/CapID_GL.html\">Cap ID errors</a></td>" << std::endl;
8653 htmlFile <<
" <td><a href=\"ADCampl_GL.html\">Amplitude</a></td>" << std::endl;
8654 htmlFile <<
" <td><a "
8655 "href=\"https://cms-cpt-software.web.cern.ch/cms-cpt-software/General/Validation/SVSuite/"
8656 "HcalRemoteMonitoring/CMT/GLOBAL_"
8657 << runnumber <<
"/Width_GL.html\">Width</a></td>" << std::endl;
8658 htmlFile <<
" <td><a "
8659 "href=\"https://cms-cpt-software.web.cern.ch/cms-cpt-software/General/Validation/SVSuite/"
8660 "HcalRemoteMonitoring/CMT/GLOBAL_"
8661 << runnumber <<
"/Ratio_GL.html\">Ratio</a></td>" << std::endl;
8662 htmlFile <<
" <td><a "
8663 "href=\"https://cms-cpt-software.web.cern.ch/cms-cpt-software/General/Validation/SVSuite/"
8664 "HcalRemoteMonitoring/CMT/GLOBAL_"
8665 << runnumber <<
"/Tmean_GL.html\">TS mean</a></td>" << std::endl;
8666 htmlFile <<
" <td><a "
8667 "href=\"https://cms-cpt-software.web.cern.ch/cms-cpt-software/General/Validation/SVSuite/"
8668 "HcalRemoteMonitoring/CMT/GLOBAL_"
8669 << runnumber <<
"/Tmax_GL.html\">TS max</a></td>" << std::endl;
8671 htmlFile <<
" <td><a "
8672 "href=\"https://cms-cpt-software.web.cern.ch/cms-cpt-software/General/Validation/SVSuite/"
8673 "HcalRemoteMonitoring/CMT/GLOBAL_"
8674 << runnumber <<
"/SummedAmplitudes_GL.html\">SummedAmplitudes</a></td>" << std::endl;
8676 htmlFile <<
"</tr>" << std::endl;
8677 htmlFile <<
"</table>" << std::endl;
8678 htmlFile <<
"<br>" << std::endl;
8679 htmlFile <<
"</body> " << std::endl;
8680 htmlFile <<
"</html> " << std::endl;
int copyContents(TH1F **hDest, TString hname, TString htitle, const TH1F *hSrc, int lastBin)